New Objective-C Literal Syntax for NSArray, NSDictionary
Add clang support for new Objective-C literal syntax for NSDictionary, NSArray, NSNumber, and boolean literals. This includes both Sema and Codegen support. Included is also support for new Objective-C container subscripting. My apologies for the large patch. It was very difficult to break apart. The patch introduces changes to the driver as well to cause clang to link in additional runtime support when needed to support the new language features. Docs are forthcoming to document the implementation and behavior of these features. Ted KremenekMore is here …
LLVM 4.0 Compiler
Xcode now includes the Apple LLVM Compiler version 4.0, including the following new Objective-C language features:
- Default @synthesize: automatically synthesizes an @property when unimplemented
- Objective-C literals: create literals for NSArray, NSDictionary, and NSNumber, just the same as the literals for NSString
- Objective-C container subscripting: use ‘[]’ syntax to access containers such as NSArray and NSDictionary
BlockRuntime project allows to use blocks on iOS < 4
BlockRuntime project on github