r288452 - p0012r1: define corresponding feature test macro
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 1 18:02:23 PST 2016
Author: rsmith
Date: Thu Dec 1 20:02:23 2016
New Revision: 288452
URL: http://llvm.org/viewvc/llvm-project?rev=288452&view=rev
Log:
p0012r1: define corresponding feature test macro
Modified:
cfe/trunk/lib/Frontend/InitPreprocessor.cpp
cfe/trunk/test/Lexer/cxx-features.cpp
Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=288452&r1=288451&r2=288452&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
+++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Thu Dec 1 20:02:23 2016
@@ -510,7 +510,7 @@ static void InitializeCPlusPlusFeatureTe
if (LangOpts.CPlusPlus1z) {
Builder.defineMacro("__cpp_hex_float", "201603");
Builder.defineMacro("__cpp_inline_variables", "201606");
- //Builder.defineMacro("__cpp_noexcept_function_type", "201510");
+ Builder.defineMacro("__cpp_noexcept_function_type", "201510");
Builder.defineMacro("__cpp_capture_star_this", "201603");
Builder.defineMacro("__cpp_if_constexpr", "201606");
Builder.defineMacro("__cpp_template_auto", "201606");
Modified: cfe/trunk/test/Lexer/cxx-features.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/cxx-features.cpp?rev=288452&r1=288451&r2=288452&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/cxx-features.cpp (original)
+++ cfe/trunk/test/Lexer/cxx-features.cpp Thu Dec 1 20:02:23 2016
@@ -34,8 +34,7 @@
#error "wrong value for __cpp_aligned_new"
#endif
-#if check(noexcept_function_type, 0, 0, 0, 0)
-// FIXME: value shuld be 201510 for cxx1z once implemented
+#if check(noexcept_function_type, 0, 0, 0, 201510)
#error "wrong value for __cpp_noexcept_function_type"
#endif
More information about the cfe-commits
mailing list