================ @@ -5935,8 +5936,14 @@ static void CheckFormatString( llvm::SmallBitVector &CheckedVarArgs, UncoveredArgHandler &UncoveredArg, bool IgnoreStringsWithoutSpecifiers); -static const Expr *maybeConstEvalStringLiteral(ASTContext &Context, - const Expr *E); +enum StringLiteralConstEvalResult { + SLCER_NotEvaluated, + SLCER_NotNullTerminated, + SLCER_Evaluated, +}; + +static StringLiteralConstEvalResult +constEvalStringAsLiteral(Sema &S, const Expr *E, const StringLiteral *&SL); ---------------- cor3ntin wrote:
```suggestion enum StringLiteralConstEvalResult { SLCER_NotEvaluated, SLCER_NotNullTerminated, SLCER_Evaluated, }; static StringLiteralConstEvalResult EvaluateStringAndCreateLiteral(Sema &S, const Expr *E, const StringLiteral *&SL); ``` https://github.com/llvm/llvm-project/pull/135864 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits