summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/string-plus-char.c
Commit message (Collapse)AuthorAgeFilesLines
* Sema: Cleanup and improve string-plus-char checking.Daniel Marjamaki2014-12-151-0/+15
| | | | | | Patch by Anders Rönnholm llvm-svn: 224268
* Add -Wstring-plus-char, which warns when adding char literals to C strings.Jordan Rose2013-10-251-0/+15
Specifically, this warns when a character literal is added (using '+') to a variable with type 'char *' (or any other pointer to character type). Like -Wstring-plus-int, there is a fix-it to change "foo + 'a'" to "&foo['a']" iff the character literal is on the right side of the string. Patch by Anders Rönnholm! llvm-svn: 193418
OpenPOWER on IntegriCloud