Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Sema: Don't diagnose string + int if the int is value dependent | David Majnemer | 2014-12-15 | 1 | -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 Weber | 2012-03-02 | 1 | -0/+4 |
| | | | | llvm-svn: 151951 | ||||
* | Add -Wstring-plus-int, which warns on "str" + int and int + "str". | Nico Weber | 2012-03-02 | 1 | -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 |