Home | History | Annotate | Download | only in Checkers

Lines Matching defs:Ctx

598   /// Ctx - The ASTContext object for the analyzed ASTs.
599 ASTContext &Ctx;
692 IdentifierInfo* ClsII = &Ctx.Idents.get(Cls);
693 Selector S = isNullary ? GetNullarySelector(name, Ctx)
694 : GetUnarySelector(name, Ctx);
700 IdentifierInfo* ClsII = &Ctx.Idents.get(Cls);
701 Selector S = GetNullarySelector(nullaryName, Ctx);
707 Selector S = getKeywordSelector(Ctx, argp);
714 addMethodSummary(&Ctx.Idents.get(Cls), ObjCMethodSummaries, Summ, argp);
721 addMethodSummary(&Ctx.Idents.get(Cls),ObjCClassMethodSummaries, Summ, argp);
734 RetainSummaryManager(ASTContext &ctx, bool gcenabled, bool usesARC)
735 : Ctx(ctx),
1571 addNSObjectMethSummary(GetNullarySelector("init", Ctx), InitSumm);
1575 addNSObjectMethSummary(GetUnarySelector("awakeAfterUsingCoder", Ctx),
1586 addNSObjectMethSummary(GetNullarySelector("retain", Ctx), Summ);
1590 addNSObjectMethSummary(GetNullarySelector("release", Ctx), Summ);
1594 addNSObjectMethSummary(GetNullarySelector("dealloc", Ctx), Summ);
1598 addNSObjectMethSummary(GetNullarySelector("autorelease", Ctx), Summ);
1827 CheckerContext &Ctx,
2392 CheckerContext &Ctx,
2406 const SourceManager& SMgr = Ctx.getSourceManager();
2409 GetAllocationSite(Ctx.getStateManager(), getErrorNode(), sym);
2448 FullSourceLoc SL(AllocStmt->getLocStart(), Ctx.getSourceManager());
2584 RetainSummaryManager &getSummaryManager(ASTContext &Ctx,
2588 bool ARCEnabled = (bool)Ctx.getLangOpts().ObjCAutoRefCount;
2591 SummariesGC.reset(new RetainSummaryManager(Ctx, true, ARCEnabled));
2597 Summaries.reset(new RetainSummaryManager(Ctx, false, ARCEnabled));
2672 const ProgramPointTag *Tag, CheckerContext &Ctx,
2677 CheckerContext &Ctx,
2915 static QualType GetReturnType(const Expr *RetE, ASTContext &Ctx) {
2930 Ctx.getObjCObjectPointerType(Ctx.getObjCInterfaceType(D));
3738 CheckerContext &Ctx,
3746 assert(!Ctx.isObjCGCEnabled() && "Autorelease counts in GC mode?");
3790 ExplodedNode *N = Ctx.generateSink(state, Pred, Tag);
3804 const LangOptions &LOpts = Ctx.getASTContext().getLangOpts();
3805 Ctx.emitReport(std::unique_ptr<BugReport>(
3844 CheckerContext &Ctx,
3847 ExplodedNode *N = Ctx.addTransition(state, Pred);
3853 const LangOptions &LOpts = Ctx.getASTContext().getLangOpts();
3854 bool GCEnabled = Ctx.isObjCGCEnabled();
3859 Ctx.emitReport(std::unique_ptr<BugReport>(
3860 new CFRefLeakReport(*BT, LOpts, GCEnabled, SummaryLog, N, *I, Ctx,
3868 void RetainCountChecker::checkEndFunction(CheckerContext &Ctx) const {
3869 ProgramStateRef state = Ctx.getState();
3871 ExplodedNode *Pred = Ctx.getPredecessor();
3881 state = handleAutoreleaseCounts(state, Pred, /*Tag=*/nullptr, Ctx,
3900 processLeaks(state, Leaked, Ctx, Pred);
4004 ASTContext &Ctx = D->getASTContext();\
4005 LangOptions L = Ctx.getLangOpts();\
4006 RetainSummaryManager M(Ctx, L.GCOnly, L.ObjCAutoRefCount);\