r333587 - As discussed with SG10, bump version of __cpp_deduction_guides macro to indicate support for P0620R0.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Wed May 30 12:54:52 PDT 2018
Author: rsmith
Date: Wed May 30 12:54:52 2018
New Revision: 333587
URL: http://llvm.org/viewvc/llvm-project?rev=333587&view=rev
Log:
As discussed with SG10, bump version of __cpp_deduction_guides macro to indicate support for P0620R0.
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=333587&r1=333586&r2=333587&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
+++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Wed May 30 12:54:52 2018
@@ -540,7 +540,7 @@ static void InitializeCPlusPlusFeatureTe
Builder.defineMacro("__cpp_noexcept_function_type", "201510");
Builder.defineMacro("__cpp_capture_star_this", "201603");
Builder.defineMacro("__cpp_if_constexpr", "201606");
- Builder.defineMacro("__cpp_deduction_guides", "201611");
+ Builder.defineMacro("__cpp_deduction_guides", "201703");
Builder.defineMacro("__cpp_template_auto", "201606");
Builder.defineMacro("__cpp_namespace_attributes", "201411");
Builder.defineMacro("__cpp_enumerator_attributes", "201411");
Modified: cfe/trunk/test/Lexer/cxx-features.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/cxx-features.cpp?rev=333587&r1=333586&r2=333587&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/cxx-features.cpp (original)
+++ cfe/trunk/test/Lexer/cxx-features.cpp Wed May 30 12:54:52 2018
@@ -57,7 +57,7 @@
// static_assert checked below
-#if check(deduction_guides, 0, 0, 0, 201611)
+#if check(deduction_guides, 0, 0, 0, 201703)
#error "wrong value for __cpp_deduction_guides"
#endif
More information about the cfe-commits
mailing list