=?utf-8?q?Félix?= Cloutier <fclout...@apple.com>, =?utf-8?q?Félix?= Cloutier <fclout...@apple.com>, =?utf-8?q?Félix?= Cloutier <fclout...@apple.com>, =?utf-8?q?Félix?= Cloutier <fclout...@apple.com> Message-ID: In-Reply-To: <llvm.org/llvm/llvm-project/pull/116...@github.com>
================ @@ -10134,6 +10137,24 @@ def note_format_fix_specifier : Note<"did you mean to use '%0'?">; def note_printf_c_str: Note<"did you mean to call the %0 method?">; def note_format_security_fixit: Note< "treat the string as an argument to avoid this">; +def warn_format_cmp_role_mismatch : Warning< + "format argument is %select{a value|an indirect field width|an indirect " + "precision|an auxiliary value}0, but it should be %select{a value|an indirect " + "field width|an indirect precision|an auxiliary value}1">, InGroup<Format>; +def warn_format_cmp_modifierfor_mismatch : Warning< ---------------- shafik wrote: I don't see a test for this diagnostic, maybe I missed it. https://github.com/llvm/llvm-project/pull/116708 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits