[clang] [Sema] Suggest missing format attributes (PR #166738)
Vladimir Vuksanovic via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 24 06:25:02 PST 2025
================
@@ -7012,15 +7013,28 @@ bool Sema::CheckFormatString(const FormatMatchesAttr *Format,
return false;
}
-static void CheckMissingFormatAttributes(Sema *S, FormatStringType FormatType,
- unsigned FormatIdx, unsigned FirstArg,
- ArrayRef<const Expr *> Args,
- Sema::FormatArgumentPassingKind APK,
- unsigned CallerParamIdx,
- SourceLocation Loc) {
+std::string escapeFormatString(StringRef Input) {
+ std::string Result;
+ llvm::raw_string_ostream OS(Result);
----------------
vvuksanovic wrote:
Thank you, I couldn't find that function.
https://github.com/llvm/llvm-project/pull/166738
More information about the cfe-commits
mailing list