Home | History | Annotate | Download | only in Checkers

Lines Matching refs:Dealloc

1 //==- CheckObjCDealloc.cpp - Check ObjC -dealloc implementation --*- C++ -*-==//
12 // correctly implements -dealloc.
30 static bool scan_dealloc(Stmt *S, Selector Dealloc) {
33 if (ME->getSelector() == Dealloc) {
45 if (*I && scan_dealloc(*I, Dealloc))
144 // need to implement -dealloc. They implement tear down in another way,
154 // Get the "dealloc" selector.
155 IdentifierInfo* II = &Ctx.Idents.get("dealloc");
159 // Scan the instance methods for "dealloc".
172 if (!MD) { // No dealloc found.
175 ? "missing -dealloc"
176 : "missing -dealloc (Hybrid MM, non-GC)";
180 os << "Objective-C class '" << D << "' lacks a 'dealloc' instance method";
186 // dealloc found. Scan for missing [super dealloc].
190 ? "missing [super dealloc]"
191 : "missing [super dealloc] (Hybrid MM, non-GC)";
195 os << "The 'dealloc' instance method in Objective-C class '" << D
196 << "' does not send a 'dealloc' message to its super class"
197 " (missing [super dealloc])";
252 "wasn't released in 'dealloc'";
260 "but was released in 'dealloc'";