[PATCH] [StaticAnalyzer] New checker Sizeof on expression
Anders Rönnholm
Anders.Ronnholm at evidente.se
Fri Sep 20 01:23:39 PDT 2013
Hi,
I have another checker i would like to get reviewed. It checks for usage of sizeof on an expression. For now it only checks binary operators. Sizeof on defines does not generate a warning.
Example:
sizeof(2 + 1);
Thanks,
Anders
.......................................................................................................................
Anders Rönnholm Senior Engineer
Evidente ES East AB Warfvinges väg 34 SE-112 51 Stockholm Sweden
Mobile: +46 (0)70 912 42 54
E-mail: Anders.Ronnholm at evidente.se
www.evidente.se
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sizeofonexpression.diff
Type: text/x-patch
Size: 5900 bytes
Desc: sizeofonexpression.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130920/478e9272/attachment.bin>
More information about the cfe-commits
mailing list