Home | History | Annotate | Download | only in ARCMigrate

Lines Matching defs:Ctx

34                                        ASTContext &Ctx) {
45 SourceManager &SM = Ctx.getSourceManager();
70 SourceLocation AfterMacroSemiLoc = findSemiAfterLocation(AfterMacroLoc, Ctx);
79 ASTContext &Ctx;
83 EmptyChecker(ASTContext &ctx, std::vector<SourceLocation> &macroLocs)
84 : Ctx(ctx), MacroLocs(macroLocs) { }
87 return isEmptyARCMTMacroStatement(S, MacroLocs, Ctx);
103 if (hasSideEffects(condE, Ctx))
115 if (hasSideEffects(condE, Ctx))
125 if (hasSideEffects(condE, Ctx))
135 if (hasSideEffects(Exp, Ctx))
172 ASTContext &getContext() { return Pass.Ctx; }
177 if (EmptyChecker(Pass.Ctx, Pass.ARCMTMacroLocs).Visit(S)) {
186 static bool isBodyEmpty(CompoundStmt *body, ASTContext &Ctx,
189 if (!EmptyChecker(Ctx, MacroLocs).Visit(I))
196 ASTContext &Ctx = pass.Ctx;
198 DeclContext *DC = Ctx.getTranslationUnitDecl();
200 Ctx.Selectors.getNullarySelector(&pass.Ctx.Idents.get("finalize"));
220 if (isBodyEmpty(DeallocM->getCompoundBody(), Ctx, pass.ARCMTMacroLocs)) {
231 if (isBodyEmpty(FinalizeM->getCompoundBody(), Ctx, pass.ARCMTMacroLocs)) {
243 EmptyStatementsRemover(pass).TraverseDecl(pass.Ctx.getTranslationUnitDecl());