Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Sema] Make BreakContinueFinder handle nested loops. | Eli Friedman | 2017-07-04 | 1 | -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 Collingbourne | 2016-06-23 | 1 | -0/+6 |
| | | | | llvm-svn: 273590 | ||||
* | Add a new warning to -Wloop-analysis to detect suspicious increments or | Richard Trieu | 2013-08-06 | 1 | -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 variables | Richard Trieu | 2012-05-04 | 1 | -0/+8 |
| | | | | | | in the conditional. llvm-svn: 156148 | ||||
* | Add commas to for loop warning to separate variable names. | Richard Trieu | 2012-05-02 | 1 | -5/+5 |
| | | | | llvm-svn: 156033 | ||||
* | Add -Wloop-analysis. This warning will fire on for loops which the variables | Richard Trieu | 2012-04-30 | 1 | -0/+146 |
in the loop conditional do not change. llvm-svn: 155835 |