aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/NSAPI.cpp
diff options
context:
space:
mode:
authorPatrick Beard <pcbeard@mac.com>2012-04-06 18:12:22 +0000
committerPatrick Beard <pcbeard@mac.com>2012-04-06 18:12:22 +0000
commitb2f6820773aabff3c5c9e0dbb1cbbbda0d80c41f (patch)
tree69f8b2976891ffc83299227be23f82c42bc1ac97 /lib/AST/NSAPI.cpp
parentaba3f0f8658b099fabd17f29f67bf6dd8ee5ddfd (diff)
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> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/NSAPI.cpp')
-rw-r--r--lib/AST/NSAPI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/NSAPI.cpp b/lib/AST/NSAPI.cpp
index 8f03711f4d..f5ea2c54ee 100644
--- a/lib/AST/NSAPI.cpp
+++ b/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",