[cfe-commits] r126078 - in /cfe/trunk: lib/Lex/PPMacroExpansion.cpp test/Lexer/has_feature_cxx0x.cpp
Richard Smith
richard-llvm at metafoo.co.uk
Sun Feb 20 04:13:05 PST 2011
Author: rsmith
Date: Sun Feb 20 06:13:05 2011
New Revision: 126078
URL: http://llvm.org/viewvc/llvm-project?rev=126078&view=rev
Log:
Turn on __has_feature(cxx_auto_type). The feature is now fully implemented.
Modified:
cfe/trunk/lib/Lex/PPMacroExpansion.cpp
cfe/trunk/test/Lexer/has_feature_cxx0x.cpp
Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=126078&r1=126077&r2=126078&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Sun Feb 20 06:13:05 2011
@@ -553,7 +553,7 @@
.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)
Modified: cfe/trunk/test/Lexer/has_feature_cxx0x.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/has_feature_cxx0x.cpp?rev=126078&r1=126077&r2=126078&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/has_feature_cxx0x.cpp (original)
+++ cfe/trunk/test/Lexer/has_feature_cxx0x.cpp Sun Feb 20 06:13:05 2011
@@ -37,8 +37,7 @@
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
More information about the cfe-commits
mailing list