[PATCH] String plus char

Anders Rönnholm Anders.Ronnholm at evidente.se
Thu Apr 17 05:19:14 PDT 2014


I have made some improvements on the string plus char warning.

It can now also handle arrays, struct members and return values from function calls.


ab->a + 'b';

foo() + 'c';

char *strArr2[] = {"ac","dc"};
str = strArr2[0] + 'c';

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stringpluschar.diff
Type: text/x-patch
Size: 3401 bytes
Desc: stringpluschar.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140417/8a623110/attachment.bin>

More information about the cfe-commits mailing list