[PATCH] [analyzer] Detect duplicate [super dealloc] calls

David Kilzer ddkilzer at kilzer.net
Mon Sep 8 15:49:39 PDT 2014


- Updated help text in `Checkers.td` to be more generic.
- Fix false positive with classes using custom retain counting and containing an ivar that's the same type as the class. Added test case for this condition.
- Extracted duplicate code into isSuperDeallocMessage().
- Small tweaks to variable names.
- Add section headers for [super dealloc] test cases to explain what each one is testing.

http://reviews.llvm.org/D5238

Files:
  lib/StaticAnalyzer/Checkers/Checkers.td
  lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp
  test/Analysis/DeallocUseAfterFreeErrors.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5238.13425.patch
Type: text/x-patch
Size: 15675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140908/28c37aa0/attachment.bin>


More information about the cfe-commits mailing list