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 | 0c2c90b1ad5e4ac703a3d817c69ec87419ccf551 (patch) | |
tree | fb21e8c7fb495a88acd503f76e0724058274c134 /clang/lib/Sema/SemaDeclAttr.cpp | |
parent | 3c88eae154417358457793b185c80b0bde201d5c (diff) | |
download | bcm5719-llvm-0c2c90b1ad5e4ac703a3d817c69ec87419ccf551.tar.gz bcm5719-llvm-0c2c90b1ad5e4ac703a3d817c69ec87419ccf551.zip |
After further discussion, rename attribute 'objc_disable_automatic_synthesis' to 'objc_requires_property_definitions'.
llvm-svn: 147622
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 8431076a247..0b8e9fa2d0f 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -1579,7 +1579,7 @@ static void handleArcWeakrefUnavailableAttr(Sema &S, Decl *D, Attr.getRange(), S.Context)); } -static void handleObjCSuppressAutosynthesisAttr(Sema &S, Decl *D, +static void handleObjCRequiresPropertyDefsAttr(Sema &S, Decl *D, const AttributeList &Attr) { if (!isa<ObjCInterfaceDecl>(D)) { S.Diag(Attr.getLoc(), diag::err_suppress_autosynthesis); @@ -1592,7 +1592,7 @@ static void handleObjCSuppressAutosynthesisAttr(Sema &S, Decl *D, return; } - D->addAttr(::new (S.Context) ObjCSuppressAutosynthesisAttr( + D->addAttr(::new (S.Context) ObjCRequiresPropertyDefsAttr( Attr.getRange(), S.Context)); } @@ -3620,8 +3620,8 @@ static void ProcessInheritableDeclAttr(Sema &S, Scope *scope, Decl *D, case AttributeList::AT_arc_weakref_unavailable: handleArcWeakrefUnavailableAttr (S, D, Attr); break; - case AttributeList::AT_objc_disable_automatic_synthesis: - handleObjCSuppressAutosynthesisAttr (S, D, Attr); + case AttributeList::AT_objc_requires_property_definitions: + handleObjCRequiresPropertyDefsAttr (S, D, Attr); break; case AttributeList::AT_unused: handleUnusedAttr (S, D, Attr); break; case AttributeList::AT_returns_twice: |