[cfe-commits] r147555 - in /cfe/trunk: include/clang/Basic/Attr.td test/SemaObjC/default-synthesize-3.m
Fariborz Jahanian
fjahanian at apple.com
Wed Jan 4 14:29:28 PST 2012
Author: fjahanian
Date: Wed Jan 4 16:29:28 2012
New Revision: 147555
URL: http://llvm.org/viewvc/llvm-project?rev=147555&view=rev
Log:
Support __has_attribute for objc_suppress_autosynthesis
which is automatic with proper spelling :).
Modified:
cfe/trunk/include/clang/Basic/Attr.td
cfe/trunk/test/SemaObjC/default-synthesize-3.m
Modified: cfe/trunk/include/clang/Basic/Attr.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Attr.td?rev=147555&r1=147554&r2=147555&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Attr.td (original)
+++ cfe/trunk/include/clang/Basic/Attr.td Wed Jan 4 16:29:28 2012
@@ -525,7 +525,7 @@
}
def ObjCSuppressAutosynthesis : InheritableAttr {
- let Spellings = ["objc_suppress_autosynhesis"];
+ let Spellings = ["objc_suppress_autosynthesis"];
}
def Unused : InheritableAttr {
Modified: cfe/trunk/test/SemaObjC/default-synthesize-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/default-synthesize-3.m?rev=147555&r1=147554&r2=147555&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/default-synthesize-3.m (original)
+++ cfe/trunk/test/SemaObjC/default-synthesize-3.m Wed Jan 4 16:29:28 2012
@@ -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
More information about the cfe-commits
mailing list