summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-loop-analysis.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] Make BreakContinueFinder handle nested loops.Eli Friedman2017-07-041-0/+12
| | | | | | | | | | | | We don't care about break or continue statements that aren't associated with the current loop, so make sure the visitor doesn't find them. Fixes https://bugs.llvm.org/show_bug.cgi?id=32648 . Differential Revision: https://reviews.llvm.org/D34568 llvm-svn: 307051
* Add a test case for the regression in -Wfor-loop-analysis caused by r273548.Peter Collingbourne2016-06-231-0/+6
| | | | llvm-svn: 273590
* Add a new warning to -Wloop-analysis to detect suspicious increments orRichard Trieu2013-08-061-0/+108
| | | | | | | | decrements inside for loops. Idea for this warning proposed in PR15636: http://llvm.org/bugs/show_bug.cgi?id=15636 llvm-svn: 187817
* Skip checking for infinite for-loops if there are global or static variablesRichard Trieu2012-05-041-0/+8
| | | | | | in the conditional. llvm-svn: 156148
* Add commas to for loop warning to separate variable names.Richard Trieu2012-05-021-5/+5
| | | | llvm-svn: 156033
* Add -Wloop-analysis. This warning will fire on for loops which the variablesRichard Trieu2012-04-301-0/+146
in the loop conditional do not change. llvm-svn: 155835
OpenPOWER on IntegriCloud