aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorcor3ntin <corentinjabot@gmail.com>2024-12-18 17:36:47 +0100
committerGitHub <noreply@github.com>2024-12-18 17:36:47 +0100
commit72e58e00c27c7f4dd9502c719ddd13dcfef33e85 (patch)
tree1045a77c6cac4ca37d102f87c4cf74987b592a73 /clang/lib/Frontend/InitPreprocessor.cpp
parent49fd2dde21655f95309abb17ad1d3392afe4985f (diff)
downloadllvm-72e58e00c27c7f4dd9502c719ddd13dcfef33e85.zip
llvm-72e58e00c27c7f4dd9502c719ddd13dcfef33e85.tar.gz
llvm-72e58e00c27c7f4dd9502c719ddd13dcfef33e85.tar.bz2
[Clang] Set `__cpp_explicit_this_parameter` (#107451)
There are not a lot of outstanding known issues with deducing this (besides #95112), so it seems reasonable to claim full support. Fixes #82780
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index e20feed..29723b5 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -752,6 +752,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
Builder.defineMacro("__cpp_if_consteval", "202106L");
Builder.defineMacro("__cpp_multidimensional_subscript", "202211L");
Builder.defineMacro("__cpp_auto_cast", "202110L");
+ Builder.defineMacro("__cpp_explicit_this_parameter", "202110L");
}
// We provide those C++23 features as extensions in earlier language modes, so