[cfe-commits] r131240 - in /cfe/trunk: lib/Lex/PPMacroExpansion.cpp test/Lexer/has_feature_type_traits.cpp
Howard Hinnant
hhinnant at apple.com
Thu May 12 12:52:14 PDT 2011
Author: hhinnant
Date: Thu May 12 14:52:14 2011
New Revision: 131240
URL: http://llvm.org/viewvc/llvm-project?rev=131240&view=rev
Log:
enable __has_feature(is_standard_layout)
Modified:
cfe/trunk/lib/Lex/PPMacroExpansion.cpp
cfe/trunk/test/Lexer/has_feature_type_traits.cpp
Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=131240&r1=131239&r2=131240&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Thu May 12 14:52:14 2011
@@ -593,6 +593,7 @@
.Case("is_empty", LangOpts.CPlusPlus)
.Case("is_enum", LangOpts.CPlusPlus)
.Case("is_literal", LangOpts.CPlusPlus)
+ .Case("is_standard_layout", LangOpts.CPlusPlus)
.Case("is_pod", LangOpts.CPlusPlus)
.Case("is_polymorphic", LangOpts.CPlusPlus)
.Case("is_trivial", LangOpts.CPlusPlus)
Modified: cfe/trunk/test/Lexer/has_feature_type_traits.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/has_feature_type_traits.cpp?rev=131240&r1=131239&r2=131240&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/has_feature_type_traits.cpp (original)
+++ cfe/trunk/test/Lexer/has_feature_type_traits.cpp Thu May 12 14:52:14 2011
@@ -89,3 +89,8 @@
int is_literal();
#endif
// CHECK: int is_literal();
+
+#if __has_feature(is_standard_layout)
+int is_standard_layout();
+#endif
+// CHECK: int is_standard_layout();
More information about the cfe-commits
mailing list