Clang中所有Objective-C预处理器指令列表 [英] List of all Objective-C preprocessor directives in Clang

查看:175
本文介绍了Clang中所有Objective-C预处理器指令列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Clang中是否有一些所有Objective-C预处理器指令的列表?我在说 #pragma mark - Section I #pragma unused(variableName) #warning - message

Is there some list of all Objective-C preprocessor directives in Clang? I'm talking about #pragma mark - Section I or #pragma unused (variableName) or #warning - message.

我想知道更多的改进我的代码,但Googlingllvm预处理指令给了我此链接: http://clang.llvm.org/docs/UsersManual.html ,其中不列出所有这些指令。

I would like to know more of them to improve my code, but Googling "llvm preprocessor directives" gave me this link: http://clang.llvm.org/docs/UsersManual.html, which does not list all the directives.

推荐答案

大多数都没有在LLVM / Clang中引入,而是继承自GCC。因此,搜索 gcc预处理器指令可能会导致更好的结果。下面的文档可以给你一些提示,但它似乎不完整(缺少一些上面提到的编译指示),也不是特定于Objective-C:

Most of them have not been introduced in LLVM/Clang, but were inherited from GCC. Therefore, searching for gcc preprocessor directives may lead to better results. The following document could give you some hints, but it does not seem to be complete (missing some of the above mentioned pragmas) nor is it specific to Objective-C:

http://gcc.gnu.org/onlinedocs/cpp/index.html#Top

此索引可能更快地浏览:

This index may be faster to browse:

http://gcc.gnu.org/onlinedocs/cpp/Indexofof-Directives .html#指令索引

这篇关于Clang中所有Objective-C预处理器指令列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆