Lines Matching refs:Pass
61 MigrationPass &Pass; member in __anon574d02e40111::UnbridgedCastRewriter
70 : Pass(pass), ParentD(nullptr), Body(nullptr) { in UnbridgedCastRewriter()
71 SelfII = &Pass.Ctx.Idents.get("self"); in UnbridgedCastRewriter()
84 UnbridgedCastRewriter(Pass).transformBody(D->getBody(), D); in TraverseBlockDecl()
105 if (castExpr->isNullPointerConstant(Pass.Ctx, in VisitCastExpr()
110 if (loc.isValid() && Pass.Ctx.getSourceManager().isInSystemHeader(loc)) in VisitCastExpr()
201 Transaction Trans(Pass.TA); in rewriteToBridgedCast()
207 TransformActions &TA = Pass.TA; in rewriteToBridgedCast()
230 if (Kind == OBC_Bridge || !Pass.CFBridgingFunctionsDefined()) { in rewriteToBridgedCast()
238 newCast += E->getType().getAsString(Pass.Ctx.getPrintingPolicy()); in rewriteToBridgedCast()
256 SourceManager &SM = Pass.Ctx.getSourceManager(); in rewriteToBridgedCast()
258 if (Lexer::isIdentifierBodyChar(PrevChar, Pass.Ctx.getLangOpts())) in rewriteToBridgedCast()
277 Transaction Trans(Pass.TA); in rewriteCastForCFRetain()
278 Pass.TA.replace(callE->getSourceRange(), callE->getArg(0)->getSourceRange()); in rewriteCastForCFRetain()
283 SourceManager &SM = Pass.Ctx.getSourceManager(); in getBlockMacroRanges()
300 Transaction Trans(Pass.TA); in rewriteBlockCopyMacro()
301 Pass.TA.replace(OuterRange, InnerRange); in rewriteBlockCopyMacro()
302 Pass.TA.insert(InnerRange.getBegin(), "["); in rewriteBlockCopyMacro()
303 Pass.TA.insertAfterToken(InnerRange.getEnd(), " copy]"); in rewriteBlockCopyMacro()
304 Pass.TA.clearDiagnostic(diag::err_arc_mismatched_cast, in rewriteBlockCopyMacro()
313 Transaction Trans(Pass.TA); in removeBlockReleaseMacro()
314 Pass.TA.clearDiagnostic(diag::err_arc_mismatched_cast, in removeBlockReleaseMacro()
317 if (!hasSideEffects(E, Pass.Ctx)) { in removeBlockReleaseMacro()
321 Pass.TA.replace(OuterRange, InnerRange); in removeBlockReleaseMacro()
331 Pass.TA.removeStmt(E); in tryRemoving()
342 Pass.Ctx.getSourceManager(), in transformObjCToNonObjCCast()
343 Pass.Ctx.getLangOpts()); in transformObjCToNonObjCCast()
367 err += E->getType().getAsString(Pass.Ctx.getPrintingPolicy()); in transformObjCToNonObjCCast()
372 Pass.TA.reportError(err, E->getLocStart(), in transformObjCToNonObjCCast()
382 note += E->getSubExpr()->getType().getAsString(Pass.Ctx.getPrintingPolicy()); in transformObjCToNonObjCCast()
384 Pass.TA.reportNote(note, retS->getLocStart()); in transformObjCToNonObjCCast()