[clang] [Clang] Added clang diagnostic when snprintf/vsnprintf uses sizeof(de… (PR #170637)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 5 00:13:12 PST 2025
================
@@ -895,6 +895,10 @@ def warn_sizeof_pointer_type_memaccess : Warning<
"argument to 'sizeof' in %0 call is the same pointer type %1 as the "
"%select{destination|source}2; expected %3 or an explicit length">,
InGroup<SizeofPointerMemaccess>;
+def warn_sizeof_pointer_dest_type_memacess : Warning<
----------------
ojhunt wrote:
You should reuse warn_sizeof_pointer_type_memaccess and the associated note.
https://github.com/llvm/llvm-project/pull/170637
More information about the cfe-commits
mailing list