diff options
author | Patrick Beard <pcbeard@mac.com> | 2012-04-06 18:12:22 +0000 |
---|---|---|
committer | Patrick Beard <pcbeard@mac.com> | 2012-04-06 18:12:22 +0000 |
commit | acfbe9e1f22886d82c503cd0c20dc0ef3bf9f12a (patch) | |
tree | e9cefdee91276a540df86ad882a3bdf60072bdd2 /clang/lib/AST/NSAPI.cpp | |
parent | 780af51505a1fedb4e3ced8e0b5832c4d4952a27 (diff) | |
download | bcm5719-llvm-acfbe9e1f22886d82c503cd0c20dc0ef3bf9f12a.tar.gz bcm5719-llvm-acfbe9e1f22886d82c503cd0c20dc0ef3bf9f12a.zip |
Added a new attribute, objc_root_class, which informs the compiler when a root class is intentionally declared.
The warning this inhibits, -Wobjc-root-class, is opt-in for now. However, all clang unit tests that would trigger
the warning have been updated to use -Wno-objc-root-class. <rdar://problem/7446698>
llvm-svn: 154187
Diffstat (limited to 'clang/lib/AST/NSAPI.cpp')
-rw-r--r-- | clang/lib/AST/NSAPI.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/NSAPI.cpp b/clang/lib/AST/NSAPI.cpp index 8f03711f4d7..f5ea2c54ee2 100644 --- a/clang/lib/AST/NSAPI.cpp +++ b/clang/lib/AST/NSAPI.cpp @@ -18,6 +18,7 @@ NSAPI::NSAPI(ASTContext &ctx) IdentifierInfo *NSAPI::getNSClassId(NSClassIdKindKind K) const { static const char *ClassName[NumClassIds] = { + "NSObject", "NSString", "NSArray", "NSMutableArray", |