aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorErich Keane <ekeane@nvidia.com>2024-04-09 06:59:31 -0700
committerGitHub <noreply@github.com>2024-04-09 06:59:31 -0700
commit2875e2448c147d8a2335882819acdd4c8eb97ea6 (patch)
treee9aa11479cbea6ec19c09925dff8b5fcd1be4774 /clang/lib/Frontend/InitPreprocessor.cpp
parentd022f6b8ff94bb13d12d39f23a3c3e7836e90756 (diff)
downloadllvm-2875e2448c147d8a2335882819acdd4c8eb97ea6.zip
llvm-2875e2448c147d8a2335882819acdd4c8eb97ea6.tar.gz
llvm-2875e2448c147d8a2335882819acdd4c8eb97ea6.tar.bz2
Update __cpp_concepts macro (#87998)
After discussion with a few others, and seeing the state of our concepts support, I believe it is worth trying to see if we can update this for Clang19. The forcing function is that libstdc++'s `<expected>` header is guarded by this macro, so we need to update it to support that.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 48ad920..84069e9 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -720,10 +720,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
if (LangOpts.CPlusPlus20) {
Builder.defineMacro("__cpp_aggregate_paren_init", "201902L");
- // P0848 is implemented, but we're still waiting for other concepts
- // issues to be addressed before bumping __cpp_concepts up to 202002L.
- // Refer to the discussion of this at https://reviews.llvm.org/D128619.
- Builder.defineMacro("__cpp_concepts", "201907L");
+ Builder.defineMacro("__cpp_concepts", "202002");
Builder.defineMacro("__cpp_conditional_explicit", "201806L");
Builder.defineMacro("__cpp_consteval", "202211L");
Builder.defineMacro("__cpp_constexpr_dynamic_alloc", "201907L");