diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-01-05 22:47:47 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-01-05 22:47:47 +0000 |
commit | 71207fc0470e1eee40a2951cd5cc3ff47725b755 (patch) | |
tree | 681ff1ac34697a384ae49762a00469de21d4b9c1 /lib/Sema/SemaObjCProperty.cpp | |
parent | 6aeaa60217e1ed11a621409acf1b53df0d14b591 (diff) |
After further discussion, rename attribute 'objc_disable_automatic_synthesis' to 'objc_requires_property_definitions'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaObjCProperty.cpp')
-rw-r--r-- | lib/Sema/SemaObjCProperty.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index 45c4775634..6379c924e2 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -857,7 +857,7 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S, IC->addPropertyImplementation(PIDecl); if (getLangOptions().ObjCDefaultSynthProperties && getLangOptions().ObjCNonFragileABI2 && - !IDecl->isObjCSuppressAutosynthesis()) { + !IDecl->isObjCRequiresPropertyDefs()) { // Diagnose if an ivar was lazily synthesdized due to a previous // use and if 1) property is @dynamic or 2) property is synthesized // but it requires an ivar of different name. @@ -1356,7 +1356,7 @@ void Sema::DefaultSynthesizeProperties(Scope *S, Decl *D) { if (!IC) return; if (ObjCInterfaceDecl* IDecl = IC->getClassInterface()) - if (!IDecl->isObjCSuppressAutosynthesis()) + if (!IDecl->isObjCRequiresPropertyDefs()) DefaultSynthesizeProperties(S, IC, IDecl); } @@ -1396,7 +1396,7 @@ void Sema::DiagnoseUnimplementedProperties(Scope *S, ObjCImplDecl* IMPDecl, diag::note_property_declare); if (LangOpts.ObjCDefaultSynthProperties && LangOpts.ObjCNonFragileABI2) if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(CDecl)) - if (const ObjCInterfaceDecl *RID = ID->isObjCSuppressAutosynthesis()) + if (const ObjCInterfaceDecl *RID = ID->isObjCRequiresPropertyDefs()) Diag(RID->getLocation(), diag::note_suppressed_class_declare); } @@ -1411,7 +1411,7 @@ void Sema::DiagnoseUnimplementedProperties(Scope *S, ObjCImplDecl* IMPDecl, diag::note_property_declare); if (LangOpts.ObjCDefaultSynthProperties && LangOpts.ObjCNonFragileABI2) if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(CDecl)) - if (const ObjCInterfaceDecl *RID = ID->isObjCSuppressAutosynthesis()) + if (const ObjCInterfaceDecl *RID = ID->isObjCRequiresPropertyDefs()) Diag(RID->getLocation(), diag::note_suppressed_class_declare); } } |