]> granicus.if.org Git - clang/commitdiff
Added a __has_feature() for 'is_constructible'
authorMarshall Clow <mclow.lists@gmail.com>
Tue, 18 Mar 2014 14:13:10 +0000 (14:13 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Tue, 18 Mar 2014 14:13:10 +0000 (14:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204153 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPMacroExpansion.cpp
test/Lexer/has_feature_type_traits.cpp

index 78d4e14ccd6e541c807bfd24857f6194487cb1fb..917d434c4839244e769a5e84d0f78c025517b8b3 100644 (file)
@@ -978,6 +978,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
            .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)
index 0c2cfa56c4ad040e1e28029bd782846ab2ae96d4..f772d6d18452a9474cd47f77d221f33e95e2828d 100644 (file)
@@ -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