[clang] [clang] Constant-evaluate format strings as last resort (PR #135864)

via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 18 00:13:01 PDT 2025


================
@@ -17945,15 +17945,36 @@ bool Expr::tryEvaluateObjectSize(uint64_t &Result, ASTContext &Ctx,
 
 static bool EvaluateBuiltinStrLen(const Expr *E, uint64_t &Result,
----------------
cor3ntin wrote:

We probably want to rename that method to `EvaluateCString` or something like that given how we use it

https://github.com/llvm/llvm-project/pull/135864


More information about the cfe-commits mailing list