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

David Kilzer ddkilzer at kilzer.net
Fri Aug 29 16:28:18 PDT 2014


================
Comment at: test/Analysis/DeallocMissingRelease.m:142
@@ +141,3 @@
+
+// RUN: not %clang_cc1 -analyze -analyzer-checker=alpha.osx.cocoa.Dealloc -fblocks -triple x86_64-apple-darwin10 -fobjc-arc %s 2>&1 | FileCheck -check-prefix=CHECK-ARC %s
+// CHECK-ARC: DeallocMissingRelease.m:32:17: error: ARC forbids explicit message send of 'retain'
----------------
ddkilzer wrote:
> zaks.anna wrote:
> > All of the run lines are usually placed in the front of the test file.
> Just the RUN lines, but not the CHECK* lines?  Or both of them together?  (Sorry, I was working off a poor example when I moved them to the end of the file.)
> 
Ignore me.  I found the answer in more recent test files:  All the Thingsā„¢ at the top.

http://reviews.llvm.org/D5023






More information about the cfe-commits mailing list