summaryrefslogtreecommitdiff
path: root/test/SemaCXX/warn-loop-analysis.cpp
Commit message (Collapse)AuthorAge
* Add a new warning to -Wloop-analysis to detect suspicious increments orRichard Trieu2013-08-06
| | | | | | | | | decrements inside for loops. Idea for this warning proposed in PR15636: http://llvm.org/bugs/show_bug.cgi?id=15636 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187817 91177308-0d34-0410-b5e6-96231b3b80d8
* Skip checking for infinite for-loops if there are global or static variablesRichard Trieu2012-05-04
| | | | | | | in the conditional. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156148 91177308-0d34-0410-b5e6-96231b3b80d8
* Add commas to for loop warning to separate variable names.Richard Trieu2012-05-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156033 91177308-0d34-0410-b5e6-96231b3b80d8
* Add -Wloop-analysis. This warning will fire on for loops which the variablesRichard Trieu2012-04-30
in the loop conditional do not change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155835 91177308-0d34-0410-b5e6-96231b3b80d8