summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-09-28 20:42:56 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-09-28 20:42:56 +0000
commit6e4bedc0d7865d9afa36f31a12496a66238e8358 (patch)
tree42caf01c1114d371c9af5ad1a3ca0c6d15906ccc /clang/lib/Frontend/InitPreprocessor.cpp
parent5b69bb7d6b2948cf9c7c9b65e5fbfad4d9f74ca5 (diff)
downloadbcm5719-llvm-6e4bedc0d7865d9afa36f31a12496a66238e8358.tar.gz
bcm5719-llvm-6e4bedc0d7865d9afa36f31a12496a66238e8358.zip
Add a couple more tentative names for upcoming SD-6 feature checks. These might
not reflect the final chosen names, but supporting them now seems to have little downside. llvm-svn: 282629
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 0351106a0ae..0ffc0c6ee60 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -500,8 +500,12 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
// C++17 features.
if (LangOpts.CPlusPlus1z) {
Builder.defineMacro("__cpp_hex_float", "201603");
+ Builder.defineMacro("__cpp_inline_variables", "201606");
+ //Builder.defineMacro("__cpp_aligned_new", "201606");
//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");
Builder.defineMacro("__cpp_namespace_attributes", "201411");
Builder.defineMacro("__cpp_enumerator_attributes", "201411");
Builder.defineMacro("__cpp_nested_namespace_definitions", "201411");
OpenPOWER on IntegriCloud