]> granicus.if.org Git - clang/commitdiff
Turn on __has_feature(cxx_auto_type). The feature is now fully implemented.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 20 Feb 2011 12:13:05 +0000 (12:13 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 20 Feb 2011 12:13:05 +0000 (12:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126078 91177308-0d34-0410-b5e6-96231b3b80d8

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

index cc294ee2665c46ef70d1d2f6e88c46d616c38a35..ba92614910303c8914e5eb29fe9eaabfa5abfb37 100644 (file)
@@ -553,7 +553,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
            .Case("ownership_takes", true)
            // C++0x features
            .Case("cxx_attributes", LangOpts.CPlusPlus0x)
-         //.Case("cxx_auto_type", false)
+           .Case("cxx_auto_type", LangOpts.CPlusPlus0x)
            .Case("cxx_decltype", LangOpts.CPlusPlus0x)
            .Case("cxx_default_function_template_args", LangOpts.CPlusPlus0x)
            .Case("cxx_deleted_functions", LangOpts.CPlusPlus0x)
index 21950148cfecadf9610d6d92a6d07ee312aacfdc..07a3ebd38d3a6960c40df900cbd7552ef3cefbb2 100644 (file)
@@ -37,8 +37,7 @@ int has_auto_type();
 int no_auto_type();
 #endif
 
-// FIXME: We don't implement "auto" well enough to turn on this feature test
-// CHECK-0X: no_auto_type
+// CHECK-0X: has_auto_type
 // CHECK-NO-0X: no_auto_type