summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/malloc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] Always include destructors in the analysis CFG.Jordan Rose2012-09-051-0/+25
| | | | | | | | | | | | | | | | | | | | | While destructors will continue to not be inlined (unless the analyzer config option 'c++-inlining' is set to 'destructors'), leaving them out of the CFG is an incomplete model of the behavior of an object, and can cause false positive warnings (like PR13751, now working). Destructors for temporaries are still not on by default, since (a) we haven't actually checked this code to be sure it's fully correct (in particular, we probably need to be very careful with regard to lifetime-extension when a temporary is bound to a reference, C++11 [class.temporary]p5), and (b) ExprEngine doesn't actually do anything when it sees a temporary destructor in the CFG -- not even invalidate the object region. To enable temporary destructors, set the 'cfg-temporary-dtors' analyzer config option to '1'. The old -cfg-add-implicit-dtors cc1 option, which controlled all implicit destructors, has been removed. llvm-svn: 163264
* Fix analyzer tests.Ted Kremenek2012-08-241-1/+1
| | | | llvm-svn: 162588
* [analyzer] One more pointer escape test.Anna Zaks2012-05-041-0/+11
| | | | llvm-svn: 156214
* [analyzer] Allow pointers escape through calls containing callback args.Anna Zaks2012-05-031-0/+10
| | | | | | | (Since we don't have a generic pointer escape callback, modify ExprEngineCallAndReturn as well as the malloc checker.) llvm-svn: 156134
* [analyzer] Add a malloc cpp test file.Anna Zaks2012-03-291-0/+16
Includes a test from a reported false positive fixed in some earlier commit. llvm-svn: 153702
OpenPOWER on IntegriCloud