[cfe-commits] r135401 - in /cfe/trunk: lib/Lex/PPMacroExpansion.cpp test/Lexer/has_feature_type_traits.cpp

Sean Hunt scshunt at csclub.uwaterloo.ca
Mon Jul 18 10:08:00 PDT 2011


Author: coppro
Date: Mon Jul 18 12:08:00 2011
New Revision: 135401

URL: http://llvm.org/viewvc/llvm-project?rev=135401&view=rev
Log:
Remember to add a has_feature macro for __underlying_type now that it is
correctly impelmented

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=135401&r1=135400&r2=135401&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Mon Jul 18 12:08:00 2011
@@ -649,6 +649,7 @@
            .Case("is_trivially_copyable", LangOpts.CPlusPlus)
            .Case("is_union", LangOpts.CPlusPlus)
            .Case("tls", PP.getTargetInfo().isTLSSupported())
+           .Case("underlying_type", LangOpts.CPlusPlus)
            .Default(false);
 }
 

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=135401&r1=135400&r2=135401&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/has_feature_type_traits.cpp (original)
+++ cfe/trunk/test/Lexer/has_feature_type_traits.cpp Mon Jul 18 12:08:00 2011
@@ -99,3 +99,8 @@
 int is_trivially_copyable();
 #endif
 // CHECK: int is_trivially_copyable();
+
+#if __has_feature(underlying_type)
+int underlying_type();
+#endif
+// CHECK: int underlying_type();





More information about the cfe-commits mailing list