]> granicus.if.org Git - clang/commit
Add -Wloop-analysis. This warning will fire on for loops which the variables
authorRichard Trieu <rtrieu@google.com>
Mon, 30 Apr 2012 18:01:30 +0000 (18:01 +0000)
committerRichard Trieu <rtrieu@google.com>
Mon, 30 Apr 2012 18:01:30 +0000 (18:01 +0000)
commit694e796f462748ab4dc7ecdf4be5da44dd2c8c94
tree2d286cc81d769fd4cf3db4ef1b27c3ff9732f0c6
parentb4ee88060a5c277085ec6da9890e4c7da3651f86
Add -Wloop-analysis.  This warning will fire on for loops which the variables
in the loop conditional do not change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155835 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaStmt.cpp
test/SemaCXX/warn-loop-analysis.cpp [new file with mode: 0644]