summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-01-03 19:46:00 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-01-03 19:46:00 +0000
commit3c9707bd90a585239db5a1f118e62a1218b532f8 (patch)
tree70955f1691cf3743c1c08bf5128d3b3dd514a0e8 /clang/lib/Sema/SemaDeclObjC.cpp
parentda82e703d1d9e39fd5acdf18e06855e452c87984 (diff)
downloadbcm5719-llvm-3c9707bd90a585239db5a1f118e62a1218b532f8.tar.gz
bcm5719-llvm-3c9707bd90a585239db5a1f118e62a1218b532f8.zip
objc: use objc_suppress_autosynthesis attribute on classes
which should not be default synthesized. llvm-svn: 147468
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index bc350557221..ad230b47131 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -1665,9 +1665,10 @@ void Sema::ImplMethodsVsClassMethods(Scope *S, ObjCImplDecl* IMPDecl,
// Check and see if properties declared in the interface have either 1)
// an implementation or 2) there is a @synthesize/@dynamic implementation
// of the property in the @implementation.
- if (isa<ObjCInterfaceDecl>(CDecl) &&
- !(LangOpts.ObjCDefaultSynthProperties && LangOpts.ObjCNonFragileABI2))
- DiagnoseUnimplementedProperties(S, IMPDecl, CDecl, InsMap);
+ if (const ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(CDecl))
+ if (!(LangOpts.ObjCDefaultSynthProperties && LangOpts.ObjCNonFragileABI2) ||
+ IDecl->isObjCSuppressAutosynthesis())
+ DiagnoseUnimplementedProperties(S, IMPDecl, CDecl, InsMap);
llvm::DenseSet<Selector> ClsMap;
for (ObjCImplementationDecl::classmeth_iterator
OpenPOWER on IntegriCloud