commit | 1cb2d742eb6635aeab6132ee5f0b5781d39487d7 | [log] [tgz] |
---|---|---|
author | Nico Weber <nicolasweber@gmx.de> | Fri Mar 02 22:01:22 2012 +0000 |
committer | Nico Weber <nicolasweber@gmx.de> | Fri Mar 02 22:01:22 2012 +0000 |
tree | 5f3a191f5044568284328c2a2dd17443de518db8 | |
parent | b0a6615cb9f5e881b81b117017b484fe91112967 [diff] |
Add -Wstring-plus-int, which warns on "str" + int and int + "str". 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151943 91177308-0d34-0410-b5e6-96231b3b80d8