summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/StackAddrLeakChecker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] Refactoring: lib/Checker -> lib/GR and libclangChecker -> ↵Argyrios Kyrtzidis2010-12-221-204/+0
| | | | | | libclangGRCore llvm-svn: 122421
* [analyzer] Refactoring: include/clang/Checker -> include/clang/GRArgyrios Kyrtzidis2010-12-221-3/+3
| | | | llvm-svn: 122420
* Rename 'Generate[Node,Sink]' to 'generate[Node,Sink]'.Ted Kremenek2010-12-201-1/+1
| | | | llvm-svn: 122270
* Rename all 'EvalXXX' methods in libChecker toTed Kremenek2010-12-011-2/+2
| | | | | | 'evalXXX'. llvm-svn: 120609
* Detabify.Eli Friedman2010-08-221-1/+1
| | | | llvm-svn: 111768
* Tweak stack address checker to report multiple cases where globals may ↵Ted Kremenek2010-06-171-48/+65
| | | | | | | | reference stack memory. Also refactor the diagnostics so that we print out the kind of stack memory returned. llvm-svn: 106210
* Rework StackAddrLeakChecker to find stores of stack memory addresses to ↵Ted Kremenek2010-06-171-39/+56
| | | | | | | | | | | | | | | | global variables by inspecting the Store bindings instead of iterating over all the global variables in a translation unit. By looking at the store directly, we avoid cases where we cannot directly load from the global variable, such as an array (which can result in an assertion failure) and it also catches cases where we store stack addresses to non-scalar globals. Also, but not iterating over all the globals in the translation unit, we maintain cache locality, and the complexity of the checker becomes restricted to the complexity of the analyzed function, and doesn't scale with the size of the translation unit. This fixes PR 7383. llvm-svn: 106184
* We return Loc where we know.Zhongxing Xu2010-06-161-2/+2
| | | | llvm-svn: 106087
* Merge StackAddrLeakChecker and ReturnStackAddressChecker.Zhongxing Xu2010-06-091-5/+88
| | | | llvm-svn: 105687
* Directly compare the StackFrameContext. This greatly simplifies logic andZhongxing Xu2010-06-091-30/+23
| | | | | | improves generality. Thanks Ted. llvm-svn: 105686
* Add a checker check if a global variable holds a local variable's address afterZhongxing Xu2010-06-081-0/+94
the function call is left where the local variable is declared. llvm-svn: 105602
OpenPOWER on IntegriCloud