forked from OSchip/llvm-project
Add __has_feature support to detect if clang supports the explicit "atomic" keyword for ObjC properties.
Fixes <rdar://problem/12953378>. llvm-svn: 171504
This commit is contained in:
parent
8533dd9f58
commit
dae8f9f1a2
|
@ -818,6 +818,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
|
|||
.Case("objc_instancetype", LangOpts.ObjC2)
|
||||
.Case("objc_modules", LangOpts.ObjC2 && LangOpts.Modules)
|
||||
.Case("objc_nonfragile_abi", LangOpts.ObjCRuntime.isNonFragile())
|
||||
.Case("objc_property_explicit_atomic", true) // Does clang support explicit "atomic" keyword?
|
||||
.Case("objc_weak_class", LangOpts.ObjCRuntime.hasWeakClassImport())
|
||||
.Case("ownership_holds", true)
|
||||
.Case("ownership_returns", true)
|
||||
|
|
Loading…
Reference in New Issue