r204153 - Added a __has_feature() for 'is_constructible'

Marshall Clow mclow.lists at gmail.com
Tue Mar 18 07:13:10 PDT 2014


Author: marshall
Date: Tue Mar 18 09:13:10 2014
New Revision: 204153

URL: http://llvm.org/viewvc/llvm-project?rev=204153&view=rev
Log:
Added a __has_feature() for 'is_constructible'

Modified:
    cfe/trunk/lib/Lex/PPMacroExpansion.cpp
    cfe/trunk/test/Lexer/has_feature_type_traits.cpp

Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=204153&r1=204152&r2=204153&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Tue Mar 18 09:13:10 2014
@@ -978,6 +978,7 @@ static bool HasFeature(const Preprocesso
            .Case("is_abstract", LangOpts.CPlusPlus)
            .Case("is_base_of", LangOpts.CPlusPlus)
            .Case("is_class", LangOpts.CPlusPlus)
+           .Case("is_constructible", LangOpts.CPlusPlus)
            .Case("is_convertible_to", LangOpts.CPlusPlus)
            .Case("is_empty", LangOpts.CPlusPlus)
            .Case("is_enum", LangOpts.CPlusPlus)

Modified: cfe/trunk/test/Lexer/has_feature_type_traits.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/has_feature_type_traits.cpp?rev=204153&r1=204152&r2=204153&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/has_feature_type_traits.cpp (original)
+++ cfe/trunk/test/Lexer/has_feature_type_traits.cpp Tue Mar 18 09:13:10 2014
@@ -55,6 +55,11 @@ int is_class();
 #endif
 // CHECK: int is_class();
 
+#if __has_feature(is_constructible)
+int is_constructible();
+#endif
+// CHECK: int is_constructible();
+
 #if __has_feature(is_convertible_to)
 int is_convertible_to();
 #endif





More information about the cfe-commits mailing list