lakreite wrote:

This diagnostic already exists and only flags the very first unconsumed 
argument in printf.
My fix addresses only the case where an incomplete format specifier appears at 
the end of the format string.
HandlePrintfSpecifier is unrelated to control flow here (whether it returns 
true or false), because my change affects only the call to H.DoneProcessing(), 
which is responsible for diagnosing the first unconsumed argument.
I've merely added new tests for the edge case, and no existing diagnostics were 
removed or altered – all previous diagnostic messages remain intact.

https://github.com/llvm/llvm-project/pull/158514
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to