]> granicus.if.org Git - clang/commitdiff
Add __has_feature support to detect if clang supports the explicit "atomic" keyword...
authorTed Kremenek <kremenek@apple.com>
Fri, 4 Jan 2013 19:04:44 +0000 (19:04 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 4 Jan 2013 19:04:44 +0000 (19:04 +0000)
Fixes <rdar://problem/12953378>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171504 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPMacroExpansion.cpp

index 49ba601b45682fbf7a19ab1e680e7cf66f0de89b..3de6cdb39dd30fbee71dfbb68b10c9cc6a248692 100644 (file)
@@ -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)