forked from OSchip/llvm-project
Support __has_attribute for objc_suppress_autosynthesis
which is automatic with proper spelling :). llvm-svn: 147555
This commit is contained in:
parent
d2bab35080
commit
a28a78ec2f
|
@ -525,7 +525,7 @@ def ArcWeakrefUnavailable : InheritableAttr {
|
|||
}
|
||||
|
||||
def ObjCSuppressAutosynthesis : InheritableAttr {
|
||||
let Spellings = ["objc_suppress_autosynhesis"];
|
||||
let Spellings = ["objc_suppress_autosynthesis"];
|
||||
}
|
||||
|
||||
def Unused : InheritableAttr {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue