summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/array-bounds-ptr-arith.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add -Wstring-plus-int, which warns on "str" + int and int + "str".Nico Weber2012-03-021-1/+1
| | | | | | | | 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
* Add the new unit test that I managed to leave out of r136997 :/Kaelyn Uhrain2011-08-101-0/+33
| | | | llvm-svn: 137242
* Revert r136046 while fixing handling of e.g. &foo[index_one_past_size]Kaelyn Uhrain2011-07-261-33/+0
| | | | llvm-svn: 136113
* Expand array bounds checking to work in the presence of unary & and *,Kaelyn Uhrain2011-07-261-0/+33
and to work with pointer arithmetic in addition to array indexing. The new pointer arithmetic porition of the array bounds checking can be turned on by -Warray-bounds-pointer-arithmetic (and is off by default). llvm-svn: 136046
OpenPOWER on IntegriCloud