Lines Matching defs:Pass
38 MigrationPass &Pass;
46 RetainReleaseDeallocRemover(MigrationPass &pass)
47 : Body(nullptr), Pass(pass) {
49 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("delegate"));
51 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("finalize"));
74 Pass.TA.reportError("it is not safe to remove an unused 'autorelease' "
80 // Pass through.
91 Pass.TA.reportError(err, rec->getLocStart());
100 Pass.TA.reportError(err, rec->getLocStart());
105 Pass.TA.reportError("it is not safe to remove 'retain' "
120 Transaction Trans(Pass.TA);
124 Pass.TA.replace(E->getSourceRange(), "self");
134 Transaction Trans(Pass.TA);
146 Pass.TA.replace(RecContainer->getSourceRange(), RecRange);
148 str += getNilString(Pass.Ctx);
149 Pass.TA.insertAfterToken(RecRange.getEnd(), str);
153 if (!hasSideEffects(rec, Pass.Ctx)) {
157 Pass.TA.replace(RecContainer->getSourceRange(), RecRange);
336 SourceManager &SM = Pass.Ctx.getSourceManager();
338 Pass.Ctx.getLangOpts());
395 Pass.TA.clearDiagnostic(diag::err_arc_illegal_explicit_message,
434 Pass.TA.removeStmt(E);
450 Pass.TA.replace(bopE->getSourceRange(), bopE->getRHS()->getSourceRange());
462 void trans::removeRetainReleaseDeallocFinalize(MigrationPass &pass) {
463 BodyTransform<RetainReleaseDeallocRemover> trans(pass);
464 trans.TraverseDecl(pass.Ctx.getTranslationUnitDecl());