Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of all Objective-C preprocessor directives in Clang

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.

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.

like image 921
lvp Avatar asked Aug 01 '13 07:08

lvp


1 Answers

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/Index-of-Directives.html#Index-of-Directives

like image 130
hagi Avatar answered Oct 13 '22 19:10

hagi