mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 04:46:27 +08:00
Support __has_attribute for objc_suppress_autosynthesis
which is automatic with proper spelling :). llvm-svn: 147555
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user