]> granicus.if.org Git - clang/commit
[analyzer] Improve handling of noreturn destructors
authorPavel Labath <labath@google.com>
Wed, 3 Jul 2013 08:23:49 +0000 (08:23 +0000)
committerPavel Labath <labath@google.com>
Wed, 3 Jul 2013 08:23:49 +0000 (08:23 +0000)
commit2a02f4d535ddae30898f013649d8c1902082921c
treeb01c54f95413b973ec55d6ff8ddcfe1bc86c29e8
parent78148e77577ce40513dfd303da54161cdc22855e
[analyzer] Improve handling of noreturn destructors

Summary:
The analyzer incorrectly handled noreturn destructors which were hidden inside
function calls. This happened because NoReturnFunctionChecker only listened for
PostStmt events, which are not executed for destructor calls. I've changed it to
listen to PostCall events, which should catch both cases.

Reviewers: jordan_rose

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1056

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185522 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp
test/Analysis/dtor.cpp