]> granicus.if.org Git - clang/commitdiff
Rename attribute 'objc_suppress_autosynthesis' to 'objc_disable_automatic_synthesis'.
authorTed Kremenek <kremenek@apple.com>
Wed, 4 Jan 2012 23:51:09 +0000 (23:51 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 4 Jan 2012 23:51:09 +0000 (23:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147567 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/AttributeList.h
lib/Sema/AttributeList.cpp
lib/Sema/SemaDeclAttr.cpp
test/SemaObjC/default-synthesize-3.m

index 0302c5e3fd88d47091faf5befd3bdeedb788ed07..3377fee62d5cba2f1b019d9803f2bbb74e7fed10 100644 (file)
@@ -525,7 +525,7 @@ def ArcWeakrefUnavailable : InheritableAttr {
 }
 
 def ObjCSuppressAutosynthesis : InheritableAttr {
-  let Spellings = ["objc_suppress_autosynthesis"];
+  let Spellings = ["objc_disable_automatic_synthesis"];
 }
 
 def Unused : InheritableAttr {
index d3a726ccc86a82feb4359d9c8998d606acf34d2b..e4382ec17f3158291f8c3920d35f2773ad38d178 100644 (file)
@@ -380,7 +380,7 @@ def note_implementation_declared : Note<
 def note_class_declared : Note<
   "class is declared here">;
 def note_suppressed_class_declare : Note<
-  "class with specified objc_suppress_autosynthesis attribute is declared here">;
+  "class with specified objc_disable_automatic_synthesis attribute is declared here">;
 def warn_dup_category_def : Warning<
   "duplicate definition of category %1 on interface %0">;
 def err_conflicting_super_class : Error<"conflicting super class name %0">;
@@ -1372,7 +1372,7 @@ def err_attribute_wrong_number_arguments : Error<
 def err_attribute_too_many_arguments : Error<
   "attribute takes no more than %0 argument%s0">;
 def err_suppress_autosynthesis : Error<
-  "objc_suppress_autosynthesis attribute may only be specified on a class"
+  "objc_disable_automatic_synthesis attribute may only be specified on a class"
   "to a class declaration">;
 def err_attribute_too_few_arguments : Error<
   "attribute takes at least %0 argument%s0">;
index a0d7c4a56564324b3240350924b6b5eea678333c..1d0cfd1489a48932d67516039a91f39c380b89ab 100644 (file)
@@ -169,7 +169,7 @@ public:
     AT_analyzer_noreturn,
     AT_annotate,
     AT_arc_weakref_unavailable,
-    AT_objc_suppress_autosynthesis,
+    AT_objc_disable_automatic_synthesis,
     AT_availability,      // Clang-specific
     AT_base_check,
     AT_blocks,
index a8ccbb1f5680f7250001e2e7af43df63a39c4388..6892ce2f790ed53fb470b0c548c91ffd5606e386 100644 (file)
@@ -108,7 +108,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) {
     .Case("weak", AT_weak)
     .Case("weakref", AT_weakref)
     .Case("objc_arc_weak_reference_unavailable", AT_arc_weakref_unavailable)
-    .Case("objc_suppress_autosynthesis", AT_objc_suppress_autosynthesis)
+    .Case("objc_disable_automatic_synthesis", AT_objc_disable_automatic_synthesis)
     .Case("pure", AT_pure)
     .Case("mode", AT_mode)
     .Case("used", AT_used)
index 22a2cfe8a6eb0763b6caa6837a53aa0516f41750..8431076a24736cd08059b0b247565afb2c47f0eb 100644 (file)
@@ -3620,7 +3620,7 @@ static void ProcessInheritableDeclAttr(Sema &S, Scope *scope, Decl *D,
   case AttributeList::AT_arc_weakref_unavailable: 
     handleArcWeakrefUnavailableAttr (S, D, Attr); 
     break;
-  case AttributeList::AT_objc_suppress_autosynthesis: 
+  case AttributeList::AT_objc_disable_automatic_synthesis: 
     handleObjCSuppressAutosynthesisAttr (S, D, Attr); 
     break;
   case AttributeList::AT_unused:      handleUnusedAttr      (S, D, Attr); break;
index 6eff68e20cd7fb1dcb6aaff2eb2c0e111dad03de..cba3b9aff7680047b57e737a02b10a74b2c64a33 100644 (file)
@@ -1,10 +1,10 @@
 // RUN: %clang_cc1 -x objective-c -fsyntax-only -fobjc-default-synthesize-properties -verify %s
 // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -fobjc-default-synthesize-properties -verify %s
 
-#if __has_attribute(objc_suppress_autosynthesis)
-__attribute ((objc_suppress_autosynthesis)) 
+#if __has_attribute(objc_disable_automatic_synthesis)
+__attribute ((objc_disable_automatic_synthesis)) 
 #endif
-@interface NoAuto // expected-note 2 {{class with specified objc_suppress_autosynthesis attribute is declared here}}
+@interface NoAuto // expected-note 2 {{class with specified objc_disable_automatic_synthesis attribute is declared here}}
 @property int NoAutoProp; // expected-note 2 {{property declared here}}
 @end
 
@@ -12,8 +12,8 @@ __attribute ((objc_suppress_autosynthesis))
                         // expected-warning {{property 'NoAutoProp' requires method 'setNoAutoProp:'}}
 @end
 
-__attribute ((objc_suppress_autosynthesis))  // redundant, just for testing
-@interface Sub : NoAuto  // expected-note 3 {{class with specified objc_suppress_autosynthesis attribute is declared here}}
+__attribute ((objc_disable_automatic_synthesis))  // redundant, just for testing
+@interface Sub : NoAuto  // expected-note 3 {{class with specified objc_disable_automatic_synthesis attribute is declared here}}
 @property (copy) id SubProperty; // expected-note 2 {{property declared here}}
 @end
 
@@ -33,9 +33,9 @@ __attribute ((objc_suppress_autosynthesis))  // redundant, just for testing
 - (id) DeepMustSynthProperty { return 0; }
 @end
 
-__attribute ((objc_suppress_autosynthesis)) 
+__attribute ((objc_disable_automatic_synthesis)) 
 @interface Deep(CAT)  // expected-error {{attributes may not be specified on a category}}
 @end
 
-__attribute ((objc_suppress_autosynthesis)) // expected-error {{objc_suppress_autosynthesis attribute may only be specified on a class}} 
+__attribute ((objc_disable_automatic_synthesis)) // expected-error {{objc_disable_automatic_synthesis attribute may only be specified on a class}} 
 @protocol P @end