]> granicus.if.org Git - clang/commit
[analyzer] Detect duplicate [super dealloc] calls
authorDevin Coughlin <dcoughlin@apple.com>
Mon, 22 Feb 2016 17:56:24 +0000 (17:56 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Mon, 22 Feb 2016 17:56:24 +0000 (17:56 +0000)
commit2fcfab471cb98540560a07f5e86267cdc3a568b2
tree199b1c2911cfd8f0b39b164d0cb5a9a1f42f3770
parent20cd05eb619b939c94a00313140fc39286808919
[analyzer] Detect duplicate [super dealloc] calls

Add an alpha path checker that warns about duplicate calls to [super dealloc].
This will form the foundation of a checker that will detect uses of
'self' after calling [super dealloc].

Part of rdar://problem/6953275.

Based on a patch by David Kilzer!

Differential Revision: http://reviews.llvm.org/D5238

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261545 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CMakeLists.txt
lib/StaticAnalyzer/Checkers/Checkers.td
lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp [new file with mode: 0644]
test/Analysis/DeallocUseAfterFreeErrors.m [new file with mode: 0644]