summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/malloc-free-after-return.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] Associate diagnostics created in checkEndFunction with a return ↵George Karpenkov2018-09-211-2/+2
| | | | | | | | | | statement, if possible If not possible, use the last line of the declaration, as before. Differential Revision: https://reviews.llvm.org/D52326 llvm-svn: 342768
* [analyzer] Detect pointers escaped after ReturnStmt execution in MallocChecker.Reka Kovacs2018-08-021-0/+21
Objects local to a function are destroyed right after the statement returning (part of) them is executed in the analyzer. This patch enables MallocChecker to warn in these cases. Differential Revision: https://reviews.llvm.org/D49361 llvm-svn: 338780
OpenPOWER on IntegriCloud