summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/string-plus-int.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Sema: Don't diagnose string + int if the int is value dependentDavid Majnemer2014-12-151-0/+5
| | | | | | | | | | | Don't send a value dependent expression into the expression evaluator, HandleSizeof would crash. Making HandleSizeof handle dependent types would noisily warn about the operation even if everything turns out OK after instantiation. This fixes PR21848. llvm-svn: 224240
* Add a test for the -Wstring-plus-int fixit note.Nico Weber2012-03-021-0/+4
| | | | llvm-svn: 151951
* Add -Wstring-plus-int, which warns on "str" + int and int + "str".Nico Weber2012-03-021-0/+62
It doesn't warn if the integer is known at compile time and within the bounds of the string. Discussion: http://comments.gmane.org/gmane.comp.compilers.clang.scm/47203 llvm-svn: 151943
OpenPOWER on IntegriCloud