Home | History | Annotate | Download | only in ARCMigrate

Lines Matching defs:Pass

71   AutoreleasePoolRewriter(MigrationPass &pass)
72 : Body(0), Pass(pass) {
73 PoolII = &pass.Ctx.Idents.get("NSAutoreleasePool");
74 DrainSel = pass.Ctx.Selectors.getNullarySelector(
75 &pass.Ctx.Idents.get("drain"));
112 Transaction Trans(Pass.TA);
115 Pass.TA.removeStmt(info.Dcl);
126 Pass.TA.replaceStmt(*scope.Begin, "@autoreleasepool {");
127 Pass.TA.removeStmt(*scope.End);
131 Pass.Ctx);
135 Pass.TA.insertAfterToken(afterSemi, "\n}");
136 Pass.TA.increaseIndentation(
141 Pass.TA.replaceStmt(*scope.Begin, "@autoreleasepool {");
142 Pass.TA.replaceStmt(*scope.End, "}");
143 Pass.TA.increaseIndentation(scope.getIndentedRange(),
157 Pass.TA.removeStmt(*relI);
219 Pass.TA.clearDiagnostic(diag::err_unavailable,
313 findLocationAfterSemi(retS->getLocEnd(), Pass.Ctx).isValid()) {
319 nameUsedOutsideScope = !NameReferenceChecker(Pass.Ctx, scope,
330 Pass.TA.reportError("a name is referenced outside the "
332 Pass.TA.reportNote("name declared here", declarationLoc);
333 Pass.TA.reportNote("intended @autoreleasepool scope begins here",
335 Pass.TA.reportNote("intended @autoreleasepool scope ends here",
417 MigrationPass &Pass;
435 void trans::rewriteAutoreleasePool(MigrationPass &pass) {
436 BodyTransform<AutoreleasePoolRewriter> trans(pass);
437 trans.TraverseDecl(pass.Ctx.getTranslationUnitDecl());