[clang] [clang] Add CLANG_ENABLE_NEW_CONST_INTERP_BY_DEFAULT cmake option (PR #199396)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue May 26 04:48:52 PDT 2026
================
@@ -385,7 +385,7 @@ LANGOPT(ConstexprCallDepth, 32, 512, Benign,
"maximum constexpr call depth")
LANGOPT(ConstexprStepLimit, 32, 1048576, Benign,
"maximum constexpr evaluation steps")
-LANGOPT(EnableNewConstInterp, 1, 0, Benign,
+LANGOPT(EnableNewConstInterp, 1, CLANG_ENABLE_NEW_CONST_INTERP_BY_DEFAULT, Benign,
----------------
AaronBallman wrote:
We could use `CLANG_ENABLE_EXPERIMENTAL_CONST_INTERP_BY_DEFAULT` if we think `experimental` is critical; the "new" is sort of implied. But I don't insist, either.
https://github.com/llvm/llvm-project/pull/199396
More information about the cfe-commits
mailing list