]> granicus.if.org Git - clang/commit
[analyzer] Teach ObjCDeallocChecker about XCTestCase
authorDevin Coughlin <dcoughlin@apple.com>
Wed, 22 Jun 2016 17:03:10 +0000 (17:03 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Wed, 22 Jun 2016 17:03:10 +0000 (17:03 +0000)
commit5cafc35373778348a8f9bd1c730139ccfb7e29e5
tree17728c6fe7f2e8dccd223bfe3e0c04ee40c2a466
parent7c0418d29ddffa1c3a8d7347fb300a9e6c7a85fd
[analyzer] Teach ObjCDeallocChecker about XCTestCase

Like with SenTestCase, subclasses of XCTestCase follow a "tear down" idiom to
release instance variables and so typically do not release ivars in -dealloc.
This commit applies the existing special casing for SenTestCase to XCTestCase
as well.

rdar://problem/25884696

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273441 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
test/Analysis/DeallocMissingRelease.m