]> granicus.if.org Git - clang/commitdiff
p0012r1: define corresponding feature test macro
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 2 Dec 2016 02:02:23 +0000 (02:02 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 2 Dec 2016 02:02:23 +0000 (02:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288452 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/InitPreprocessor.cpp
test/Lexer/cxx-features.cpp

index 7e078fec924b5b06aafb331c7e955dc9e93a82f7..b95741b32007ed7ba7d6273460bdac37f5110655 100644 (file)
@@ -510,7 +510,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
   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");
index c25ade3ffe7bd3c1ff019d26399e75518619579f..d38541f4db95c14ac32cc871a440f8cc65bc619e 100644 (file)
@@ -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