[PATCH] [StaticAnalyzer] New checker Sizeof on expression
Anders Rönnholm
Anders.Ronnholm at evidente.se
Fri Sep 20 02:19:48 PDT 2013
Hi,
I forgot that there is i line limit of 80, i have corrected that.
//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
________________________________________
Från: Anders Rönnholm
Skickat: den 20 september 2013 10:23
Till: cfe-commits at cs.uiuc.edu
Ämne: [PATCH] [StaticAnalyzer] New checker Sizeof on expression
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: 5830 bytes
Desc: sizeofonexpression.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130920/60d3c9ef/attachment.bin>
More information about the cfe-commits
mailing list