[PATCH] [analyzer] Fix ObjC Dealloc Checker to operate only on classes with retained properties

David Kilzer ddkilzer at kilzer.net
Sat Aug 30 01:35:46 PDT 2014


Properly address Jordan's comment about this checker not running with ARC, and address all but one of Anna's comments.

Note that I can't move the check for the setter not being 'assign' into isSynthesizedWritablePointerProperty() since I need that value separately (not logically and-ed with the other checks) in both places where  isSynthesizedWritablePointerPropert() is called.

http://reviews.llvm.org/D5023

Files:
  lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
  test/Analysis/DeallocMissingRelease.m
  test/Analysis/MissingDealloc.m
  test/Analysis/PR2978.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5023.13121.patch
Type: text/x-patch
Size: 18513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140830/8319e947/attachment.bin>


More information about the cfe-commits mailing list