From: Richard Smith Date: Sun, 20 Feb 2011 12:13:05 +0000 (+0000) Subject: Turn on __has_feature(cxx_auto_type). The feature is now fully implemented. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=738291eedac0f3f3628e34b0b32d6155f280fab2;p=clang Turn on __has_feature(cxx_auto_type). The feature is now fully implemented. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126078 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp index cc294ee266..ba92614910 100644 --- a/lib/Lex/PPMacroExpansion.cpp +++ b/lib/Lex/PPMacroExpansion.cpp @@ -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) diff --git a/test/Lexer/has_feature_cxx0x.cpp b/test/Lexer/has_feature_cxx0x.cpp index 21950148cf..07a3ebd38d 100644 --- a/test/Lexer/has_feature_cxx0x.cpp +++ b/test/Lexer/has_feature_cxx0x.cpp @@ -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