diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-01-04 22:29:28 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-01-04 22:29:28 +0000 |
commit | fe40bf8276b8989cacd39e15f8b393fd0661915a (patch) | |
tree | eed20974e2ea35ccd332a58576f10cbe01a3763d | |
parent | d2d2088c569a15c8ad75e70f995ff5a879f4fc49 (diff) |
Support __has_attribute for objc_suppress_autosynthesis
which is automatic with proper spelling :).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147555 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/Attr.td | 2 | ||||
-rw-r--r-- | test/SemaObjC/default-synthesize-3.m | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Basic/Attr.td b/include/clang/Basic/Attr.td index bf9a6ce147..0302c5e3fd 100644 --- a/include/clang/Basic/Attr.td +++ b/include/clang/Basic/Attr.td @@ -525,7 +525,7 @@ def ArcWeakrefUnavailable : InheritableAttr { } def ObjCSuppressAutosynthesis : InheritableAttr { - let Spellings = ["objc_suppress_autosynhesis"]; + let Spellings = ["objc_suppress_autosynthesis"]; } def Unused : InheritableAttr { diff --git a/test/SemaObjC/default-synthesize-3.m b/test/SemaObjC/default-synthesize-3.m index 20e7dd28f2..8616404028 100644 --- a/test/SemaObjC/default-synthesize-3.m +++ b/test/SemaObjC/default-synthesize-3.m @@ -1,7 +1,9 @@ // 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)) +#endif @interface NoAuto @property int NoAutoProp; // expected-note 2 {{property declared here}} @end |