Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clarify pointer ownership semantics by hoisting the std::unique_ptr creation ↵ | Aaron Ballman | 2015-06-23 | 1 | -5/+5 |
| | | | | | | to the caller instead of hiding it in emitReport. NFC. llvm-svn: 240400 | ||||
* | unique_ptrify BugReporter::visitors | David Blaikie | 2014-09-04 | 1 | -1/+2 |
| | | | | llvm-svn: 217205 | ||||
* | TestAfterDivZeroChecker.cpp: Avoid member initializer. It is unsupported in ↵ | NAKAMURA Takumi | 2014-07-11 | 1 | -2/+2 |
| | | | | | | msc17. llvm-svn: 212789 | ||||
* | [analyzer] Check for code testing a variable for 0 after using it as a ↵ | Jordan Rose | 2014-07-10 | 1 | -0/+264 |
denominator. This new checker, alpha.core.TestAfterDivZero, catches issues like this: int sum = ... int avg = sum / count; // potential division by zero... if (count == 0) { ... } // ...caught here Because the analyzer does not necessarily explore /all/ paths through a program, this check is restricted to only work on zero checks that immediately follow a division operation (/ % /= %=). This could later be expanded to handle checks dominated by a division operation but not necessarily in the same CFG block. Patch by Anders Rönnholm! (with very minor modifications by me) llvm-svn: 212731 |