How constexpr get evaluated in clang?

Currently working on fix https://github.com/llvm/llvm-project/issues/55805, is there a general interface or somehow a function call that process constexpr value? It is possible to evaluate the format string, before performing this checking?

I’m looking at that part of the code right now. The relevant code is in AST/ExprConstant.cpp and the interface is implemented via Expr::Evaluate*, e.g. Expr::EvaluateAsConstantExpr() as far as I can see.

Thanks! :stuck_out_tongue: