summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-02-20 12:13:05 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-02-20 12:13:05 +0000
commit7ee0d5664e4a9259ddf5b98d509f9333df7c3ef7 (patch)
tree40003c9b55eed5413e39fd039abd872cdbfa4b12
parentc8a1569950128cbaf9264f37210be4cdea5f4bd8 (diff)
downloadbcm5719-llvm-7ee0d5664e4a9259ddf5b98d509f9333df7c3ef7.tar.gz
bcm5719-llvm-7ee0d5664e4a9259ddf5b98d509f9333df7c3ef7.zip
Turn on __has_feature(cxx_auto_type). The feature is now fully implemented.
llvm-svn: 126078
-rw-r--r--clang/lib/Lex/PPMacroExpansion.cpp2
-rw-r--r--clang/test/Lexer/has_feature_cxx0x.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp
index cc294ee2665..ba926149103 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/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/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp
index 21950148cfe..07a3ebd38d3 100644
--- a/clang/test/Lexer/has_feature_cxx0x.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud