summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/simple-stream-checks.c
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] Report leaks at the closing brace of a function body.Jordan Rose2012-11-151-2/+2
| | | | | | | | | | | | | | | | | | | | This fixes a few cases where we'd emit path notes like this: +---+ 1| v p = malloc(len); ^ |2 +---+ In general this should make path notes more consistent and more correct, especially in cases where the leak happens on the false branch of an if that jumps directly to the end of the function. There are a couple places where the leak is reported farther away from the cause; these are usually cases where there are several levels of nested braces before the end of the function. This still matches our current behavior for when there /is/ a statement after all the braces, though. llvm-svn: 168070
* [analyzer] Add symbol escapes logic to the SimpleStreamChecker.Anna Zaks2012-11-061-8/+21
| | | | llvm-svn: 167439
* [analyzer] Run remove dead on end of path.Anna Zaks2012-11-031-0/+14
| | | | | | | | | | | | | This will simplify checkers that need to register for leaks. Currently, they have to register for both: check dead and check end of path. I've modified the SymbolReaper to consider everything on the stack dead if the input StackLocationContext is 0. (This is a bit disruptive, so I'd like to flash out all the issues asap.) llvm-svn: 167352
* [analyzer] SimpleStreamChecker - remove evalAssume and other refinementsAnna Zaks2012-10-311-0/+7
| | | | llvm-svn: 167099
* [analyzer] Add SimpleStreamChecker.Anna Zaks2012-10-291-0/+44
This is an example checker for catching fopen fclose API misuses. llvm-svn: 166976
OpenPOWER on IntegriCloud