[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 1 12:35:44 PDT 2025
================
@@ -376,6 +376,7 @@ LANGOPT(ConstexprCallDepth, 32, 512, Benign,
"maximum constexpr call depth")
LANGOPT(ConstexprStepLimit, 32, 1048576, Benign,
"maximum constexpr evaluation steps")
+LANGOPT(MaxTemplateForExpansions, 32, 256, Benign, "maximum template for expansions")
LANGOPT(EnableNewConstInterp, 1, 0, Benign,
----------------
cor3ntin wrote:
I am not sure we need a limit here - we are constrained by the number of statements, the number of expansions, etc. And all of these things should be consistent
https://github.com/llvm/llvm-project/pull/165195
More information about the cfe-commits
mailing list