Lines Matching refs:Ctx

33                                        ASTContext &Ctx) {  in isEmptyARCMTMacroStatement()  argument
44 SourceManager &SM = Ctx.getSourceManager(); in isEmptyARCMTMacroStatement()
68 SourceLocation AfterMacroSemiLoc = findSemiAfterLocation(AfterMacroLoc, Ctx); in isEmptyARCMTMacroStatement()
77 ASTContext &Ctx; member in __anon37a044190111::EmptyChecker
82 : Ctx(ctx), MacroLocs(macroLocs) { } in EmptyChecker()
85 return isEmptyARCMTMacroStatement(S, MacroLocs, Ctx); in VisitNullStmt()
101 if (hasSideEffects(condE, Ctx)) in VisitIfStmt()
113 if (hasSideEffects(condE, Ctx)) in VisitWhileStmt()
123 if (hasSideEffects(condE, Ctx)) in VisitDoStmt()
133 if (hasSideEffects(Exp, Ctx)) in VisitObjCForCollectionStmt()
170 ASTContext &getContext() { return Pass.Ctx; } in getContext()
175 if (EmptyChecker(Pass.Ctx, Pass.ARCMTMacroLocs).Visit(S)) { in check()
184 static bool isBodyEmpty(CompoundStmt *body, ASTContext &Ctx, in isBodyEmpty() argument
187 if (!EmptyChecker(Ctx, MacroLocs).Visit(I)) in isBodyEmpty()
194 ASTContext &Ctx = pass.Ctx; in cleanupDeallocOrFinalize() local
196 DeclContext *DC = Ctx.getTranslationUnitDecl(); in cleanupDeallocOrFinalize()
198 Ctx.Selectors.getNullarySelector(&pass.Ctx.Idents.get("finalize")); in cleanupDeallocOrFinalize()
218 if (isBodyEmpty(DeallocM->getCompoundBody(), Ctx, pass.ARCMTMacroLocs)) { in cleanupDeallocOrFinalize()
229 if (isBodyEmpty(FinalizeM->getCompoundBody(), Ctx, pass.ARCMTMacroLocs)) { in cleanupDeallocOrFinalize()
241 EmptyStatementsRemover(pass).TraverseDecl(pass.Ctx.getTranslationUnitDecl()); in removeEmptyStatementsAndDeallocFinalize()