Clang中所有Objective-C预处理指令列表

6
有没有Clang中所有Objective-C预处理器指令的列表?我说的是#pragma mark - Section I#pragma unused(variableName)#warning - message等等。 我想了解更多,以改进我的代码,但是在Google搜索“llvm预处理器指令”后得到的链接是:http://clang.llvm.org/docs/UsersManual.html,该链接并未列出所有指令。
2个回答

2

1

Interfaces & Implementation

@interface...@end
@implementation...@end
@class

实例变量可见性
@public
@package
@protected
@private

属性

@property
@synthesize
@dynamic

Protocols

@protocol
@required
@optional

Exception Handling

@try
@catch
@finally
@throw

对象字面量

@""
@42, @3.14, @YES, @'Z'
@[]
@{}
@()

Objective-C 字面量
@selector()
@protocol()

C文字面量
@encode()
@defs()

Optimizations

@autoreleasepool{}
@synchronized{}

兼容性。
@compatibility_alias

从以下链接中获取,其中包含大量指令及其描述:NSHipster - @ Compiler Directives

4
这些都不是预处理指令。 - yiding

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接