[PATCH] Warn on mismatching types to sizeof for memset and friends where length is of the form sizeof(Type) * factor.
Oliver Chang
ochang at google.com
Tue Apr 7 15:26:29 PDT 2015
Hi thakis,
Slightly cleaned up patch stolen from thakis at .
http://reviews.llvm.org/D8881
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Analysis/taint-generic.c
test/SemaCXX/warn-memset-bad-sizeof.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8881.23373.patch
Type: text/x-patch
Size: 8748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150407/b92a1a4f/attachment.bin>
More information about the cfe-commits
mailing list