[cfe-commits] r171504 - /cfe/trunk/lib/Lex/PPMacroExpansion.cpp

Ted Kremenek kremenek at apple.com
Fri Jan 4 11:04:45 PST 2013


Author: kremenek
Date: Fri Jan  4 13:04:44 2013
New Revision: 171504

URL: http://llvm.org/viewvc/llvm-project?rev=171504&view=rev
Log:
Add __has_feature support to detect if clang supports the explicit "atomic" keyword for ObjC properties.

Fixes <rdar://problem/12953378>.

Modified:
    cfe/trunk/lib/Lex/PPMacroExpansion.cpp

Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=171504&r1=171503&r2=171504&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Fri Jan  4 13:04:44 2013
@@ -818,6 +818,7 @@
            .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)





More information about the cfe-commits mailing list