diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-02-20 12:13:05 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-02-20 12:13:05 +0000 |
commit | 738291eedac0f3f3628e34b0b32d6155f280fab2 (patch) | |
tree | cf1cc7a09ce30685b1fbfde84c6d5081fd636f67 | |
parent | 6a9505a1d815c27df56a863341f577e01a81a9ba (diff) |
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
-rw-r--r-- | lib/Lex/PPMacroExpansion.cpp | 2 | ||||
-rw-r--r-- | test/Lexer/has_feature_cxx0x.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
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 |