summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-05-30 19:54:52 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-05-30 19:54:52 +0000
commit51055730411d61cbeb64f4d08e3077e7beec0a7c (patch)
treebbf0135c984fcf0b4b91103a796822c5503fca43 /clang
parent159bd7444edb8510e89241fcc4b07deb79642ea0 (diff)
downloadbcm5719-llvm-51055730411d61cbeb64f4d08e3077e7beec0a7c.tar.gz
bcm5719-llvm-51055730411d61cbeb64f4d08e3077e7beec0a7c.zip
As discussed with SG10, bump version of __cpp_deduction_guides macro to indicate support for P0620R0.
llvm-svn: 333587
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp2
-rw-r--r--clang/test/Lexer/cxx-features.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 5bdfa14884d..6fbc810ca55 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -540,7 +540,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
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");
diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp
index 352f08e73b3..a0058511eb1 100644
--- a/clang/test/Lexer/cxx-features.cpp
+++ b/clang/test/Lexer/cxx-features.cpp
@@ -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
OpenPOWER on IntegriCloud