Home
last modified time | relevance | path

Searched refs:LCtx (Results 1 – 25 of 39) sorted by relevance

12

/external/clang/lib/StaticAnalyzer/Core/
DExprEngineC.cpp39 const LocationContext *LCtx = (*it)->getLocationContext(); in VisitBinaryOperator() local
40 SVal LeftV = state->getSVal(LHS, LCtx); in VisitBinaryOperator()
41 SVal RightV = state->getSVal(RHS, LCtx); in VisitBinaryOperator()
50 RightV = svalBuilder.conjureSymbolVal(nullptr, B->getRHS(), LCtx, in VisitBinaryOperator()
56 evalStore(Tmp2, B, LHS, *it, state->BindExpr(B, LCtx, ExprVal), in VisitBinaryOperator()
74 RightV = svalBuilder.conjureSymbolVal(RHS, LCtx, RHS->getType(), in VisitBinaryOperator()
80 LeftV = svalBuilder.conjureSymbolVal(LHS, LCtx, LHS->getType(), in VisitBinaryOperator()
89 state = createTemporaryRegionIfNeeded(state, LCtx, LHS); in VisitBinaryOperator()
99 state = state->BindExpr(B, LCtx, Result); in VisitBinaryOperator()
131 const LocationContext *LCtx = (*I)->getLocationContext(); in VisitBinaryOperator() local
[all …]
DExprEngineCXX.cpp31 const LocationContext *LCtx = Pred->getLocationContext(); in CreateCXXTemporaryObject() local
33 state = createTemporaryRegionIfNeeded(state, LCtx, tempExpr, ME); in CreateCXXTemporaryObject()
56 const LocationContext *LCtx = Pred->getLocationContext(); in performTrivialCopy() local
73 PostStmt PS(CallExpr, LCtx); in performTrivialCopy()
78 State = State->BindExpr(CallExpr, LCtx, ThisVal); in performTrivialCopy()
80 State = bindReturnValue(Call, LCtx, State); in performTrivialCopy()
109 const LocationContext *LCtx = Pred->getLocationContext(); in getRegionForConstructedObject() local
120 SVal LValue = State->getLValue(Var, LCtx); in getRegionForConstructedObject()
129 const CXXMethodDecl *CurCtor = cast<CXXMethodDecl>(LCtx->getDecl()); in getRegionForConstructedObject()
131 getSValBuilder().getCXXThis(CurCtor, LCtx->getCurrentStackFrame()); in getRegionForConstructedObject()
[all …]
DPrettyStackTraceLocationContext.h30 const LocationContext *LCtx; variable
32 PrettyStackTraceLocationContext(const LocationContext *LC) : LCtx(LC) { in PrettyStackTraceLocationContext()
33 assert(LCtx); in PrettyStackTraceLocationContext()
38 LCtx->dumpStack(OS, "\t"); in print()
DExprEngineObjC.cpp26 const LocationContext *LCtx = Pred->getLocationContext(); in VisitLvalObjCIvarRefExpr() local
27 SVal baseVal = state->getSVal(Ex->getBase(), LCtx); in VisitLvalObjCIvarRefExpr()
32 Bldr.generateNode(Ex, Pred, state->BindExpr(Ex, LCtx, location)); in VisitLvalObjCIvarRefExpr()
97 const LocationContext *LCtx = Pred->getLocationContext(); in VisitObjCForCollectionStmt() local
101 ProgramStateRef hasElems = state->BindExpr(S, LCtx, TrueV); in VisitObjCForCollectionStmt()
105 ProgramStateRef noElems = state->BindExpr(S, LCtx, FalseV); in VisitObjCForCollectionStmt()
115 SymbolRef Sym = SymMgr.conjureSymbol(elem, LCtx, T, in VisitObjCForCollectionStmt()
DProgramState.cpp91 const StackFrameContext *LCtx, in removeDeadBindings() argument
105 StoreRef newStore = StoreMgr->removeDeadBindings(NewState.getStore(), LCtx, in removeDeadBindings()
141 const LocationContext *LCtx, in invalidateRegions() argument
151 return invalidateRegionsImpl(Values, E, Count, LCtx, CausedByPointerEscape, in invalidateRegions()
158 const LocationContext *LCtx, in invalidateRegions() argument
164 return invalidateRegionsImpl(Values, E, Count, LCtx, CausedByPointerEscape, in invalidateRegions()
171 const LocationContext *LCtx, in invalidateRegionsImpl() argument
191 = Mgr.StoreMgr->invalidateRegions(getStore(), Values, E, Count, LCtx, Call, in invalidateRegionsImpl()
209 Mgr.StoreMgr->invalidateRegions(getStore(), Values, E, Count, LCtx, Call, in invalidateRegionsImpl()
291 const LocationContext *LCtx, in BindExpr() argument
[all …]
DExprEngineCallAndReturn.cpp177 const LocationContext *LCtx = Pred->getLocationContext(); in removeDeadOnEndOfFunction() local
178 removeDead(Pred, Dst, dyn_cast<ReturnStmt>(LastSt), LCtx, in removeDeadOnEndOfFunction()
179 LCtx->getAnalysisDeclContext()->getBody(), in removeDeadOnEndOfFunction()
246 const LocationContext *LCtx = CEBNode->getLocationContext(); in processCallExit() local
247 SVal V = state->getSVal(RS, LCtx); in processCallExit()
356 void ExprEngine::examineStackFrames(const Decl *D, const LocationContext *LCtx, in examineStackFrames() argument
361 while (LCtx) { in examineStackFrames()
362 if (const StackFrameContext *SFC = dyn_cast<StackFrameContext>(LCtx)) { in examineStackFrames()
370 LCtx = LCtx->getParent(); in examineStackFrames()
380 LCtx = LCtx->getParent(); in examineStackFrames()
[all …]
DLoopWidening.cpp40 const LocationContext *LCtx, in getWidenedLoopState() argument
52 const StackFrameContext *STC = LCtx->getCurrentStackFrame(); in getWidenedLoopState()
63 BlockCount, LCtx, true, nullptr, nullptr, in getWidenedLoopState()
DSymbolManager.cpp167 const LocationContext *LCtx, in conjureSymbol() argument
172 SymbolConjured::Profile(profile, E, T, Count, LCtx, SymbolTag); in conjureSymbol()
177 new (SD) SymbolConjured(SymbolCounter, E, LCtx, T, Count, SymbolTag); in conjureSymbol()
502 if (LCtx == nullptr) in isLive()
505 if (LCtx != ELCtx) { in isLive()
508 if (LCtx->isParentOf(ELCtx)) in isLive()
517 return LCtx->getAnalysis<RelaxedLiveVariables>()->isLive(Loc, ExprVal); in isLive()
526 if (!LCtx) in isLive()
528 const StackFrameContext *CurrentContext = LCtx->getCurrentStackFrame(); in isLive()
535 if (LCtx->getAnalysis<RelaxedLiveVariables>()->isLive(Loc, VR->getDecl())) in isLive()
DExprEngine.cpp582 const LocationContext *LCtx = Pred->getLocationContext(); in ProcessNewAllocator() local
583 PostImplicitCall PP(NE->getOperatorNew(), NE->getLocStart(), LCtx); in ProcessNewAllocator()
612 const LocationContext *LCtx = Pred->getLocationContext(); in ProcessDeleteDtor() local
615 SVal ArgVal = State->getSVal(Arg, LCtx); in ProcessDeleteDtor()
625 PostImplicitCall PP(Dtor, DE->getLocStart(), LCtx); in ProcessDeleteDtor()
639 const LocationContext *LCtx = Pred->getLocationContext(); in ProcessBaseDtor() local
641 const CXXDestructorDecl *CurDtor = cast<CXXDestructorDecl>(LCtx->getDecl()); in ProcessBaseDtor()
643 LCtx->getCurrentStackFrame()); in ProcessBaseDtor()
660 const LocationContext *LCtx = Pred->getLocationContext(); in ProcessMemberDtor() local
662 const CXXDestructorDecl *CurDtor = cast<CXXDestructorDecl>(LCtx->getDecl()); in ProcessMemberDtor()
[all …]
DSValBuilder.cpp114 const LocationContext *LCtx, in conjureSymbolVal() argument
125 T = LCtx->getAnalysisDeclContext()->getASTContext().getPointerType(ExType); in conjureSymbolVal()
127 return conjureSymbolVal(SymbolTag, Ex, LCtx, T, Count); in conjureSymbolVal()
132 const LocationContext *LCtx, in conjureSymbolVal() argument
141 SymbolRef sym = SymMgr.conjureSymbol(expr, LCtx, type, count, symbolTag); in conjureSymbolVal()
151 const LocationContext *LCtx, in conjureSymbolVal() argument
160 SymbolRef sym = SymMgr.conjureSymbol(stmt, LCtx, type, visitCount); in conjureSymbolVal()
170 const LocationContext *LCtx, in getConjuredHeapSymbolVal() argument
178 SymbolRef sym = SymMgr.conjureSymbol(E, LCtx, T, VisitCount); in getConjuredHeapSymbolVal()
DBugReporterVisitors.cpp442 const LocationContext *LCtx = N->getLocationContext(); in isInitializationOfVar() local
443 return FrameSpace->getStackFrame() == LCtx->getCurrentStackFrame(); in isInitializationOfVar()
1278 const LocationContext *LCtx = N->getLocationContext(); in patternMatch() local
1281 LCtx).getAsRegion()) { in patternMatch()
1397 const LocationContext *LCtx = N->getLocationContext(); in VisitTrueTest() local
1398 PathDiagnosticLocation Loc(Cond, BRC.getSourceManager(), LCtx); in VisitTrueTest()
1433 const LocationContext *LCtx = N->getLocationContext(); in VisitConditionVariable() local
1434 PathDiagnosticLocation Loc(CondVarExpr, BRC.getSourceManager(), LCtx); in VisitConditionVariable()
1441 if (const MemRegion *R = state->getLValue(VD, LCtx).getAsRegion()) { in VisitConditionVariable()
1479 const LocationContext *LCtx = N->getLocationContext(); in VisitTrueTest() local
[all …]
DEnvironment.cpp72 const LocationContext *LCtx = Entry.getLocationContext(); in getSVal() local
100 return getSVal(EnvironmentEntry(RE, LCtx), svalBuilder); in getSVal()
106 return lookupExpr(EnvironmentEntry(S, LCtx)); in getSVal()
DCallEvent.cpp678 const LocationContext *LCtx = getLocationContext(); in getSelfSVal() local
679 const ImplicitParamDecl *SelfDecl = LCtx->getSelfDecl(); in getSelfSVal()
682 return getState()->getSVal(getState()->getRegion(SelfDecl, LCtx)); in getSelfSVal()
960 const LocationContext *LCtx) { in getSimpleCall() argument
962 return create<CXXMemberCall>(MCE, State, LCtx); in getSimpleCall()
968 return create<CXXMemberOperatorCall>(OpCE, State, LCtx); in getSimpleCall()
971 return create<BlockCall>(CE, State, LCtx); in getSimpleCall()
976 return create<SimpleFunctionCall>(CE, State, LCtx); in getSimpleCall()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DCallEvent.h119 const LocationContext *LCtx; variable
144 : State(state), LCtx(lctx), Origin(E), RefCount(0) {} in CallEvent()
147 : State(state), LCtx(lctx), Origin(D), RefCount(0) {} in CallEvent()
151 : State(Original.State), LCtx(Original.LCtx), Origin(Original.Origin), in CallEvent()
189 return LCtx; in getLocationContext()
391 const LocationContext *LCtx) in AnyFunctionCall() argument
392 : CallEvent(E, St, LCtx) {} in AnyFunctionCall()
394 const LocationContext *LCtx) in AnyFunctionCall() argument
395 : CallEvent(D, St, LCtx) {} in AnyFunctionCall()
441 const LocationContext *LCtx) in SimpleFunctionCall() argument
[all …]
DSValBuilder.h146 const LocationContext *LCtx,
150 return SymMgr.conjureSymbol(stmt, LCtx, type, visitCount, symbolTag);
154 const LocationContext *LCtx,
157 return SymMgr.conjureSymbol(expr, LCtx, visitCount, symbolTag);
174 const LocationContext *LCtx,
178 const LocationContext *LCtx,
183 const LocationContext *LCtx,
190 const LocationContext *LCtx,
DSymbolManager.h158 const LocationContext *LCtx; variable
166 LCtx(lctx), in SymbolConjured()
178 QualType T, unsigned Count, const LocationContext *LCtx, in Profile() argument
182 profile.AddPointer(LCtx); in Profile()
189 Profile(profile, S, T, Count, LCtx, SymbolTag); in Profile()
498 const LocationContext *LCtx,
504 const LocationContext *LCtx,
507 return conjureSymbol(E, LCtx, E->getType(), VisitCount, SymbolTag);
573 const StackFrameContext *LCtx; variable
589 : LCtx(Ctx), Loc(s), SymMgr(symmgr), in SymbolReaper()
[all …]
DProgramState.h228 ProgramStateRef BindExpr(const Stmt *S, const LocationContext *LCtx,
261 unsigned BlockCount, const LocationContext *LCtx,
268 unsigned BlockCount, const LocationContext *LCtx,
297 SVal getSVal(const Stmt *S, const LocationContext *LCtx) const;
299 SVal getSValAsScalarOrLoc(const Stmt *Ex, const LocationContext *LCtx) const;
343 ProgramStateRef addTaint(const Stmt *S, const LocationContext *LCtx,
355 bool isTainted(const Stmt *S, const LocationContext *LCtx,
433 const LocationContext *LCtx,
521 const StackFrameContext *LCtx,
728 const LocationContext *LCtx) const{ in getSVal() argument
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DBuiltinFunctionChecker.cpp36 const LocationContext *LCtx = C.getLocationContext(); in evalCall() local
53 SVal X = state->getSVal(*(CE->arg_begin()), LCtx); in evalCall()
54 C.addTransition(state->BindExpr(CE, LCtx, X)); in evalCall()
68 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>(); in evalCall()
77 C.addTransition(state->BindExpr(CE, LCtx, loc::MemRegionVal(R))); in evalCall()
94 C.addTransition(state->BindExpr(CE, LCtx, V)); in evalCall()
DCStringChecker.cpp359 const LocationContext *LCtx = C.getLocationContext(); in CheckBufferAccess() local
365 SVal BufVal = state->getSVal(FirstBuf, LCtx); in CheckBufferAccess()
377 SVal LengthVal = state->getSVal(Size, LCtx); in CheckBufferAccess()
403 BufVal = state->getSVal(SecondBuf, LCtx); in CheckBufferAccess()
441 const LocationContext *LCtx = C.getLocationContext(); in CheckOverlap() local
442 SVal firstVal = state->getSVal(First, LCtx); in CheckOverlap()
443 SVal secondVal = state->getSVal(Second, LCtx); in CheckOverlap()
492 SVal LengthVal = state->getSVal(Size, LCtx); in CheckOverlap()
837 const LocationContext *LCtx = C.getLocationContext(); in IsFirstBufInBound() local
841 SVal BufVal = state->getSVal(FirstBuf, LCtx); in IsFirstBufInBound()
[all …]
DUndefResultChecker.cpp41 const LocationContext *LCtx = C.getLocationContext(); in checkPostStmt() local
42 if (state->getSVal(B, LCtx).isUndef()) { in checkPostStmt()
66 if (state->getSVal(B->getLHS(), LCtx).isUndef()) { in checkPostStmt()
70 else if (state->getSVal(B->getRHS(), LCtx).isUndef()) { in checkPostStmt()
DPthreadLockChecker.cpp84 const LocationContext *LCtx = C.getLocationContext(); in REGISTER_LIST_WITH_PROGRAMSTATE() local
95 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE()
100 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE()
105 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE()
110 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE()
116 ReleaseLock(C, CE, state->getSVal(CE->getArg(0), LCtx)); in REGISTER_LIST_WITH_PROGRAMSTATE()
119 DestroyLock(C, CE, state->getSVal(CE->getArg(0), LCtx)); in REGISTER_LIST_WITH_PROGRAMSTATE()
121 InitLock(C, CE, state->getSVal(CE->getArg(0), LCtx)); in REGISTER_LIST_WITH_PROGRAMSTATE()
DPointerArithChecker.cpp40 const LocationContext *LCtx = C.getLocationContext(); in checkPreStmt() local
41 SVal LV = state->getSVal(B->getLHS(), LCtx); in checkPreStmt()
42 SVal RV = state->getSVal(B->getRHS(), LCtx); in checkPreStmt()
DPointerSubChecker.cpp43 const LocationContext *LCtx = C.getLocationContext(); in checkPreStmt() local
44 SVal LV = state->getSVal(B->getLHS(), LCtx); in checkPreStmt()
45 SVal RV = state->getSVal(B->getRHS(), LCtx); in checkPreStmt()
DUndefBranchChecker.cpp31 const LocationContext *LCtx; member
34 : St(S), LCtx(L) {} in FindUndefExpr()
49 return St->getSVal(Ex, LCtx).isUndef(); in MatchesCriteria()
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp453 for (const LocationContext *LCtx = this; LCtx; LCtx = LCtx->getParent()) { in dumpStack() local
454 switch (LCtx->getKind()) { in dumpStack()
457 cast<StackFrameContext>(LCtx)->getDecl()->print(OS, PP); in dumpStack()
465 << cast<BlockInvocationContext>(LCtx)->getContextData() in dumpStack()

12