[clang] [Clang] use constant evaluation context for constexpr if conditions (PR #123667)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 21 07:19:08 PST 2025
================
@@ -2203,6 +2203,12 @@ Parser::ParseCXXCondition(StmtResult *InitStmt, SourceLocation Loc,
return ParseCXXCondition(nullptr, Loc, CK, MissingOK);
}
+ EnterExpressionEvaluationContext Eval(
----------------
a-tarasyuk wrote:
Do you mean using the extra context for this case would introduce unnecessary overhead? Should the `if constexpr` be parsed within the same context, but with different parsing logic?
https://github.com/llvm/llvm-project/pull/123667
More information about the cfe-commits
mailing list