[clang] [clang] Implement __attribute__((format_matches)) (PR #116708)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 27 13:51:47 PST 2025


=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>,
=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>,
=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>,
=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/116708 at 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<
----------------
shafik wrote:

This diagnostic has a lot of combinations but it looks like you only test two of them. We should cover all of them.

https://github.com/llvm/llvm-project/pull/116708


More information about the cfe-commits mailing list