Home | History | Annotate | Download | only in Checkers

Lines Matching full:dealloc

1 //==- CheckObjCDealloc.cpp - Check ObjC -dealloc implementation --*- C++ -*-==//
12 // correctly implements -dealloc.
31 static bool scan_dealloc(Stmt *S, Selector Dealloc) {
34 if (ME->getSelector() == Dealloc) {
46 if (*I && scan_dealloc(*I, Dealloc))
145 // need to implement -dealloc. They implement tear down in another way,
155 // Get the "dealloc" selector.
156 IdentifierInfo* II = &Ctx.Idents.get("dealloc");
160 // Scan the instance methods for "dealloc".
173 if (!MD) { // No dealloc found.
176 ? "missing -dealloc"
177 : "missing -dealloc (Hybrid MM, non-GC)";
181 os << "Objective-C class '" << *D << "' lacks a 'dealloc' instance method";
188 // dealloc found. Scan for missing [super dealloc].
192 ? "missing [super dealloc]"
193 : "missing [super dealloc] (Hybrid MM, non-GC)";
197 os << "The 'dealloc' instance method in Objective-C class '" << *D
198 << "' does not send a 'dealloc' message to its super class"
199 " (missing [super dealloc])";
253 "wasn't released in 'dealloc'";
261 "but was released in 'dealloc'";