Lines Matching refs:Summ
549 const RetainSummary *Summ = I->second; in find() local
550 M[K] = Summ; in find()
551 return Summ; in find()
660 RetainSummary Summ(getArgEffects(), RetEff, DefaultEff, ReceiverEff); in getPersistentSummary() local
661 return getPersistentSummary(Summ); in getPersistentSummary()
681 void addNSObjectClsMethSummary(Selector S, const RetainSummary *Summ) { in addNSObjectClsMethSummary() argument
682 ObjCClassMethodSummaries[S] = Summ; in addNSObjectClsMethSummary()
685 void addNSObjectMethSummary(Selector S, const RetainSummary *Summ) { in addNSObjectMethSummary() argument
686 ObjCMethodSummaries[S] = Summ; in addNSObjectMethSummary()
690 const RetainSummary *Summ, bool isNullary = true) { in addClassMethSummary() argument
694 ObjCClassMethodSummaries[ObjCSummaryKey(ClsII, S)] = Summ; in addClassMethSummary()
698 const RetainSummary *Summ) { in addInstMethSummary() argument
701 ObjCMethodSummaries[ObjCSummaryKey(ClsII, S)] = Summ; in addInstMethSummary()
705 const RetainSummary *Summ, va_list argp) { in addMethodSummary() argument
707 Summaries[ObjCSummaryKey(ClsII, S)] = Summ; in addMethodSummary()
710 void addInstMethSummary(const char* Cls, const RetainSummary * Summ, ...) { in addInstMethSummary() argument
712 va_start(argp, Summ); in addInstMethSummary()
713 addMethodSummary(&Ctx.Idents.get(Cls), ObjCMethodSummaries, Summ, argp); in addInstMethSummary()
717 void addClsMethSummary(const char* Cls, const RetainSummary * Summ, ...) { in addClsMethSummary() argument
719 va_start(argp, Summ); in addClsMethSummary()
720 addMethodSummary(&Ctx.Idents.get(Cls),ObjCClassMethodSummaries, Summ, argp); in addClsMethSummary()
724 void addClsMethSummary(IdentifierInfo *II, const RetainSummary * Summ, ...) { in addClsMethSummary() argument
726 va_start(argp, Summ); in addClsMethSummary()
727 addMethodSummary(II, ObjCClassMethodSummaries, Summ, argp); in addClsMethSummary()
794 void updateSummaryFromAnnotations(const RetainSummary *&Summ,
797 void updateSummaryFromAnnotations(const RetainSummary *&Summ,
800 void updateSummaryForCall(const RetainSummary *&Summ,
874 RetainSummary *Summ = (RetainSummary *) BPAlloc.Allocate<RetainSummary>(); in getPersistentSummary() local
875 new (Summ) RetainSummary(OldSumm); in getPersistentSummary()
876 return Summ; in getPersistentSummary()
993 const RetainSummary *Summ; in getSummary() local
996 Summ = getFunctionSummary(cast<SimpleFunctionCall>(Call).getDecl()); in getSummary()
1009 Summ = getInstanceMethodSummary(Msg, State); in getSummary()
1011 Summ = getClassMethodSummary(Msg); in getSummary()
1016 updateSummaryForCall(Summ, Call); in getSummary()
1018 assert(Summ && "Unknown call type?"); in getSummary()
1019 return Summ; in getSummary()
1322 RetainSummaryManager::updateSummaryFromAnnotations(const RetainSummary *&Summ, in updateSummaryFromAnnotations() argument
1327 assert(Summ && "Must have a summary to add annotations to."); in updateSummaryFromAnnotations()
1328 RetainSummaryTemplate Template(Summ, *this); in updateSummaryFromAnnotations()
1347 RetainSummaryManager::updateSummaryFromAnnotations(const RetainSummary *&Summ, in updateSummaryFromAnnotations() argument
1352 assert(Summ && "Must have a valid summary to add annotations to"); in updateSummaryFromAnnotations()
1353 RetainSummaryTemplate Template(Summ, *this); in updateSummaryFromAnnotations()
1513 const RetainSummary *Summ = CachedSummaries.find(ID, S); in getMethodSummary() local
1515 if (!Summ) { in getMethodSummary()
1516 Summ = getStandardMethodSummary(MD, S, RetTy); in getMethodSummary()
1519 updateSummaryFromAnnotations(Summ, MD); in getMethodSummary()
1522 CachedSummaries[ObjCSummaryKey(ID, S)] = Summ; in getMethodSummary()
1525 return Summ; in getMethodSummary()
1562 const RetainSummary *Summ = getPersistentSummary(NoRet, IncRefMsg); in InitializeMethodSummaries() local
1563 addNSObjectMethSummary(GetNullarySelector("retain", Ctx), Summ); in InitializeMethodSummaries()
1566 Summ = getPersistentSummary(NoRet, DecRefMsg); in InitializeMethodSummaries()
1567 addNSObjectMethSummary(GetNullarySelector("release", Ctx), Summ); in InitializeMethodSummaries()
1570 Summ = getPersistentSummary(NoRet, Dealloc); in InitializeMethodSummaries()
1571 addNSObjectMethSummary(GetNullarySelector("dealloc", Ctx), Summ); in InitializeMethodSummaries()
1574 Summ = getPersistentSummary(NoRet, Autorelease); in InitializeMethodSummaries()
1575 addNSObjectMethSummary(GetNullarySelector("autorelease", Ctx), Summ); in InitializeMethodSummaries()
1989 if (const RetainSummary *Summ = SummaryLog.lookup(OrigNode)) { in VisitNode() local
2008 AEffects.push_back(Summ->getArg(i)); in VisitNode()
2016 AEffects.push_back(Summ->getReceiverEffect()); in VisitNode()
2599 void checkSummary(const RetainSummary &Summ, const CallEvent &Call,
2602 void processSummaryOfInlined(const RetainSummary &Summ,
2878 const RetainSummary *Summ = Summaries.getSummary(Call, C.getState()); in checkPostCall() local
2881 processSummaryOfInlined(*Summ, Call, C); in checkPostCall()
2884 checkSummary(*Summ, Call, C); in checkPostCall()
2918 void RetainCountChecker::processSummaryOfInlined(const RetainSummary &Summ, in processSummaryOfInlined() argument
2925 if (Summ.getArg(idx) == StopTrackingHard) { in processSummaryOfInlined()
2937 if (Summ.getReceiverEffect() == StopTrackingHard) { in processSummaryOfInlined()
2944 RetEffect RE = Summ.getRetEffect(); in processSummaryOfInlined()
2954 void RetainCountChecker::checkSummary(const RetainSummary &Summ, in checkSummary() argument
2969 state = updateSymbol(state, Sym, *T, Summ.getArg(idx), hasErr, C); in checkSummary()
2987 state = updateSymbol(state, Sym, *T, Summ.getReceiverEffect(), in checkSummary()
3005 RetEffect RE = Summ.getRetEffect(); in checkSummary()
3072 SummaryLog[NewNode] = &Summ; in checkSummary()
3456 const RetainSummary *Summ = Summaries.getMethodSummary(MD); in checkPreStmt() local
3457 RE = Summ->getRetEffect(); in checkPreStmt()
3460 const RetainSummary *Summ = Summaries.getFunctionSummary(FD); in checkPreStmt() local
3461 RE = Summ->getRetEffect(); in checkPreStmt()