[PATCH] [StaticAnalyzer] New checker StringPlusChar
Anders Rönnholm
Anders.Ronnholm at evidente.se
Fri Sep 20 02:20:28 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 19 september 2013 16:46
Till: cfe-commits at cs.uiuc.edu
Ämne: [PATCH] [StaticAnalyzer] New checker StringPlusChar
Hi,
This is a new check i want to get reviewed. It checks for char literal additions on strings.
Example:
char* str;
str = str + 'c';
This is a suspicious pointer arithmetic, probably string addition was intended.
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: stringpluschar.diff
Type: text/x-patch
Size: 5815 bytes
Desc: stringpluschar.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130920/976a376b/attachment.bin>
More information about the cfe-commits
mailing list