gpt4 book ai didi

xcode - Clang Pragma 综合列表

转载 作者:行者123 更新时间:2023-12-04 15:21:10 26 4
gpt4 key购买 nike

在哪里可以找到 的文档全部 可能的#pragma s 在 Xcode 的 Clang/LLVM 中可用吗?

我找到了this in the Clang user manual , that at NSHipster ,甚至尝试通过svn repo grepping ,但仍然找不到诸如 _Pragma("clang assume_nonnull begin") 之类的文档.

任何提示在哪里看?

最佳答案

你做的一切都是正确的,你唯一缺少的是:我们在 Xcode 中拥有的 Clang 与我们可以在 http://clang.llvm.org 下载的 Clang 不同。 .

您可以在 http://opensource.apple.com 获得 Apple 版本的编译器。在“开发人员工具”下,但通常有相当旧的版本。

每当 Apple 工程师在编译器中引入新的东西时,它通常还不会公开发布,但他们会在接下来的几个月里将这些功能推送到公共(public)存储库中。

以前它发生在 arm64 上,现在发生在可空性限定符上。

再次查看公共(public) repo ,他们几天前开始推送可空性限定符,也可以随时订阅 Clang Developers Mailing List更新。

关于xcode - Clang Pragma 综合列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30910603/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com