================
@@ -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);
----------------
apple-fcloutier wrote:
This is fine, but OS.write_escaped does something pretty similar to this loop.
https://github.com/llvm/llvm-project/pull/166738
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits