Searched refs:LCtx (Results 1 - 25 of 36) sorted by relevance

12

/external/clang/lib/StaticAnalyzer/Core/
H A DPrettyStackTraceLocationContext.h30 const LocationContext *LCtx; member in class:clang::ento::PrettyStackTraceLocationContext
32 PrettyStackTraceLocationContext(const LocationContext *LC) : LCtx(LC) {
33 assert(LCtx);
38 LCtx->dumpStack(OS, "\t");
H A DExprEngineC.cpp39 const LocationContext *LCtx = (*it)->getLocationContext(); local
40 SVal LeftV = state->getSVal(LHS, LCtx);
41 SVal RightV = state->getSVal(RHS, LCtx);
50 RightV = svalBuilder.conjureSymbolVal(nullptr, B->getRHS(), LCtx,
56 evalStore(Tmp2, B, LHS, *it, state->BindExpr(B, LCtx, ExprVal),
74 RightV = svalBuilder.conjureSymbolVal(RHS, LCtx, RHS->getType(),
80 LeftV = svalBuilder.conjureSymbolVal(LHS, LCtx, LHS->getType(),
89 state = createTemporaryRegionIfNeeded(state, LCtx, LHS);
99 state = state->BindExpr(B, LCtx, Result);
131 const LocationContext *LCtx local
238 const LocationContext *LCtx = subExprNode->getLocationContext(); local
257 const LocationContext *LCtx = Pred->getLocationContext(); local
284 const LocationContext *LCtx = Pred->getLocationContext(); local
416 const LocationContext *LCtx = Pred->getLocationContext(); local
591 const LocationContext *LCtx = Pred->getLocationContext(); local
643 const LocationContext *LCtx = Pred->getLocationContext(); local
790 const LocationContext *LCtx = (*I)->getLocationContext(); local
805 const LocationContext *LCtx = (*I)->getLocationContext(); local
826 const LocationContext *LCtx = (*I)->getLocationContext(); local
838 const LocationContext *LCtx = (*I)->getLocationContext(); local
897 const LocationContext *LCtx = Pred->getLocationContext(); local
[all...]
H A DExprEngineCXX.cpp31 const LocationContext *LCtx = Pred->getLocationContext(); local
33 state = createTemporaryRegionIfNeeded(state, LCtx, tempExpr, ME);
56 const LocationContext *LCtx = Pred->getLocationContext(); local
73 PostStmt PS(CallExpr, LCtx);
78 State = State->BindExpr(CallExpr, LCtx, ThisVal);
80 State = bindReturnValue(Call, LCtx, State);
109 const LocationContext *LCtx = Pred->getLocationContext(); local
132 SVal LValue = State->getLValue(Var, LCtx);
146 const CXXMethodDecl *CurCtor = cast<CXXMethodDecl>(LCtx->getDecl());
148 LCtx
180 const LocationContext *LCtx = Pred->getLocationContext(); local
305 const LocationContext *LCtx = Pred->getLocationContext(); local
348 const LocationContext *LCtx = Pred->getLocationContext(); local
378 const LocationContext *LCtx = Pred->getLocationContext(); local
491 const LocationContext *LCtx = Pred->getLocationContext(); local
506 const LocationContext *LCtx = Pred->getLocationContext(); local
[all...]
H A DExprEngineObjC.cpp26 const LocationContext *LCtx = Pred->getLocationContext(); local
27 SVal baseVal = state->getSVal(Ex->getBase(), LCtx);
32 Bldr.generateNode(Ex, Pred, state->BindExpr(Ex, LCtx, location));
97 const LocationContext *LCtx = Pred->getLocationContext(); local
101 ProgramStateRef hasElems = state->BindExpr(S, LCtx, TrueV);
105 ProgramStateRef noElems = state->BindExpr(S, LCtx, FalseV);
115 SymbolRef Sym = SymMgr.conjureSymbol(elem, LCtx, T,
H A DExprEngineCallAndReturn.cpp177 const LocationContext *LCtx = Pred->getLocationContext(); local
178 removeDead(Pred, Dst, dyn_cast<ReturnStmt>(LastSt), LCtx,
179 LCtx->getAnalysisDeclContext()->getBody(),
246 const LocationContext *LCtx = CEBNode->getLocationContext(); local
247 SVal V = state->getSVal(RS, LCtx);
356 void ExprEngine::examineStackFrames(const Decl *D, const LocationContext *LCtx, argument
361 while (LCtx) {
362 if (const StackFrameContext *SFC = dyn_cast<StackFrameContext>(LCtx)) {
370 LCtx = LCtx
535 bindReturnValue(const CallEvent &Call, const LocationContext *LCtx, ProgramStateRef State) argument
[all...]
H A DExprEngine.cpp568 const LocationContext *LCtx = Pred->getLocationContext(); local
569 PostImplicitCall PP(NE->getOperatorNew(), NE->getLocStart(), LCtx);
598 const LocationContext *LCtx = Pred->getLocationContext(); local
601 SVal ArgVal = State->getSVal(Arg, LCtx);
611 PostImplicitCall PP(Dtor, DE->getLocStart(), LCtx);
625 const LocationContext *LCtx = Pred->getLocationContext(); local
627 const CXXDestructorDecl *CurDtor = cast<CXXDestructorDecl>(LCtx->getDecl());
629 LCtx->getCurrentStackFrame());
646 const LocationContext *LCtx = Pred->getLocationContext(); local
648 const CXXDestructorDecl *CurDtor = cast<CXXDestructorDecl>(LCtx
844 const LocationContext *LCtx = Pred->getLocationContext(); local
880 const LocationContext *LCtx = N->getLocationContext(); local
958 const LocationContext *LCtx = Pred->getLocationContext(); local
1325 RecoverCastedSymbol(ProgramStateManager& StateMgr, ProgramStateRef state, const Stmt *Condition, const LocationContext *LCtx, ASTContext &Ctx) argument
1432 const LocationContext *LCtx = Pred->getLocationContext(); local
1733 const LocationContext *LCtx = Pred->getLocationContext(); local
1797 const LocationContext *LCtx = (*it)->getLocationContext(); local
1834 const LocationContext *LCtx = (*I)->getLocationContext(); local
2147 const LocationContext *LCtx = (*NI)->getLocationContext(); local
[all...]
H A DProgramState.cpp91 const StackFrameContext *LCtx,
105 StoreRef newStore = StoreMgr->removeDeadBindings(NewState.getStore(), LCtx,
141 const LocationContext *LCtx,
151 return invalidateRegionsImpl(Values, E, Count, LCtx, CausedByPointerEscape,
158 const LocationContext *LCtx,
164 return invalidateRegionsImpl(Values, E, Count, LCtx, CausedByPointerEscape,
171 const LocationContext *LCtx,
191 = Mgr.StoreMgr->invalidateRegions(getStore(), Values, E, Count, LCtx, Call,
209 Mgr.StoreMgr->invalidateRegions(getStore(), Values, E, Count, LCtx, Call,
291 const LocationContext *LCtx,
90 removeDeadBindings(ProgramStateRef state, const StackFrameContext *LCtx, SymbolReaper& SymReaper) argument
139 invalidateRegions(RegionList Regions, const Expr *E, unsigned Count, const LocationContext *LCtx, bool CausedByPointerEscape, InvalidatedSymbols *IS, const CallEvent *Call, RegionAndSymbolInvalidationTraits *ITraits) const argument
156 invalidateRegions(ValueList Values, const Expr *E, unsigned Count, const LocationContext *LCtx, bool CausedByPointerEscape, InvalidatedSymbols *IS, const CallEvent *Call, RegionAndSymbolInvalidationTraits *ITraits) const argument
169 invalidateRegionsImpl(ValueList Values, const Expr *E, unsigned Count, const LocationContext *LCtx, bool CausedByPointerEscape, InvalidatedSymbols *IS, RegionAndSymbolInvalidationTraits *ITraits, const CallEvent *Call) const argument
290 BindExpr(const Stmt *S, const LocationContext *LCtx, SVal V, bool Invalidate) const argument
651 addTaint(const Stmt *S, const LocationContext *LCtx, TaintTagType Kind) const argument
687 isTainted(const Stmt *S, const LocationContext *LCtx, TaintTagType Kind) const argument
[all...]
H A DSymbolManager.cpp167 const LocationContext *LCtx,
172 SymbolConjured::Profile(profile, E, T, Count, LCtx, SymbolTag);
177 new (SD) SymbolConjured(SymbolCounter, E, LCtx, T, Count, SymbolTag);
490 if (LCtx == nullptr)
493 if (LCtx != ELCtx) {
496 if (LCtx->isParentOf(ELCtx))
505 return LCtx->getAnalysis<RelaxedLiveVariables>()->isLive(Loc, ExprVal);
514 if (!LCtx)
516 const StackFrameContext *CurrentContext = LCtx->getCurrentStackFrame();
523 if (LCtx
166 conjureSymbol(const Stmt *E, const LocationContext *LCtx, QualType T, unsigned Count, const void *SymbolTag) argument
[all...]
H A DSValBuilder.cpp111 const LocationContext *LCtx,
119 T = LCtx->getAnalysisDeclContext()->getASTContext().getPointerType(ExType);
121 return conjureSymbolVal(SymbolTag, Ex, LCtx, T, Count);
126 const LocationContext *LCtx,
132 SymbolRef sym = SymMgr.conjureSymbol(expr, LCtx, type, count, symbolTag);
142 const LocationContext *LCtx,
148 SymbolRef sym = SymMgr.conjureSymbol(stmt, LCtx, type, visitCount);
158 const LocationContext *LCtx,
164 SymbolRef sym = SymMgr.conjureSymbol(E, LCtx, T, VisitCount);
109 conjureSymbolVal(const void *SymbolTag, const Expr *Ex, const LocationContext *LCtx, unsigned Count) argument
124 conjureSymbolVal(const void *symbolTag, const Expr *expr, const LocationContext *LCtx, QualType type, unsigned count) argument
141 conjureSymbolVal(const Stmt *stmt, const LocationContext *LCtx, QualType type, unsigned visitCount) argument
157 getConjuredHeapSymbolVal(const Expr *E, const LocationContext *LCtx, unsigned VisitCount) argument
H A DEnvironment.cpp72 const LocationContext *LCtx = Entry.getLocationContext(); local
99 return getSVal(EnvironmentEntry(RE, LCtx), svalBuilder);
105 return lookupExpr(EnvironmentEntry(S, LCtx));
H A DBugReporterVisitors.cpp446 const LocationContext *LCtx = N->getLocationContext(); local
447 return FrameSpace->getStackFrame() == LCtx->getCurrentStackFrame();
1287 const LocationContext *LCtx = N->getLocationContext(); local
1290 LCtx).getAsRegion()) {
1406 const LocationContext *LCtx = N->getLocationContext(); local
1407 PathDiagnosticLocation Loc(Cond, BRC.getSourceManager(), LCtx);
1442 const LocationContext *LCtx = N->getLocationContext(); local
1443 PathDiagnosticLocation Loc(CondVarExpr, BRC.getSourceManager(), LCtx);
1450 if (const MemRegion *R = state->getLValue(VD, LCtx).getAsRegion()) {
1488 const LocationContext *LCtx local
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DBuiltinFunctionChecker.cpp36 const LocationContext *LCtx = C.getLocationContext(); local
50 SVal X = state->getSVal(*(CE->arg_begin()), LCtx);
51 C.addTransition(state->BindExpr(CE, LCtx, X));
65 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>();
74 C.addTransition(state->BindExpr(CE, LCtx, loc::MemRegionVal(R)));
91 C.addTransition(state->BindExpr(CE, LCtx, V));
H A DUndefResultChecker.cpp41 const LocationContext *LCtx = C.getLocationContext(); local
42 if (state->getSVal(B, LCtx).isUndef()) {
66 if (state->getSVal(B->getLHS(), LCtx).isUndef()) {
70 else if (state->getSVal(B->getRHS(), LCtx).isUndef()) {
H A DPointerArithChecker.cpp40 const LocationContext *LCtx = C.getLocationContext(); local
41 SVal LV = state->getSVal(B->getLHS(), LCtx);
42 SVal RV = state->getSVal(B->getRHS(), LCtx);
H A DPointerSubChecker.cpp43 const LocationContext *LCtx = C.getLocationContext(); local
44 SVal LV = state->getSVal(B->getLHS(), LCtx);
45 SVal RV = state->getSVal(B->getRHS(), LCtx);
H A DUndefBranchChecker.cpp31 const LocationContext *LCtx; member in struct:__anon18244::UndefBranchChecker::FindUndefExpr
34 : St(S), LCtx(L) {}
51 return St->getSVal(Ex, LCtx).isUndef();
H A DPthreadLockChecker.cpp84 const LocationContext *LCtx = C.getLocationContext(); local
95 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx),
100 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx),
105 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx),
110 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx),
116 ReleaseLock(C, CE, state->getSVal(CE->getArg(0), LCtx));
119 DestroyLock(C, CE, state->getSVal(CE->getArg(0), LCtx));
121 InitLock(C, CE, state->getSVal(CE->getArg(0), LCtx));
H A DCStringChecker.cpp350 const LocationContext *LCtx = C.getLocationContext(); local
356 SVal BufVal = state->getSVal(FirstBuf, LCtx);
368 SVal LengthVal = state->getSVal(Size, LCtx);
394 BufVal = state->getSVal(SecondBuf, LCtx);
432 const LocationContext *LCtx = C.getLocationContext(); local
433 SVal firstVal = state->getSVal(First, LCtx);
434 SVal secondVal = state->getSVal(Second, LCtx);
483 SVal LengthVal = state->getSVal(Size, LCtx);
841 const LocationContext *LCtx = C.getPredecessor()->getLocationContext(); local
854 return state->invalidateRegions(R, E, C.blockCount(), LCtx,
915 const LocationContext *LCtx = C.getLocationContext(); local
1072 const LocationContext *LCtx = C.getLocationContext(); local
1155 const LocationContext *LCtx = C.getLocationContext(); local
1330 const LocationContext *LCtx = C.getLocationContext(); local
1689 const LocationContext *LCtx = C.getLocationContext(); local
1823 const LocationContext *LCtx = C.getLocationContext(); local
[all...]
H A DDereferenceChecker.cpp46 const LocationContext *LCtx,
56 const LocationContext *LCtx,
52 AddDerefSource(raw_ostream &os, SmallVectorImpl<SourceRange> &Ranges, const Expr *Ex, const ProgramState *state, const LocationContext *LCtx, bool loadedFrom) argument
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h119 const LocationContext *LCtx; member in class:clang::ento::CallEvent
144 : State(state), LCtx(lctx), Origin(E), RefCount(0) {}
147 : State(state), LCtx(lctx), Origin(D), RefCount(0) {}
151 : State(Original.State), LCtx(Original.LCtx), Origin(Original.Origin),
188 return LCtx;
383 const LocationContext *LCtx)
384 : CallEvent(E, St, LCtx) {}
386 const LocationContext *LCtx)
387 : CallEvent(D, St, LCtx) {}
382 AnyFunctionCall(const Expr *E, ProgramStateRef St, const LocationContext *LCtx) argument
385 AnyFunctionCall(const Decl *D, ProgramStateRef St, const LocationContext *LCtx) argument
432 SimpleFunctionCall(const CallExpr *CE, ProgramStateRef St, const LocationContext *LCtx) argument
468 BlockCall(const CallExpr *CE, ProgramStateRef St, const LocationContext *LCtx) argument
526 CXXInstanceCall(const CallExpr *CE, ProgramStateRef St, const LocationContext *LCtx) argument
529 CXXInstanceCall(const FunctionDecl *D, ProgramStateRef St, const LocationContext *LCtx) argument
563 CXXMemberCall(const CXXMemberCallExpr *CE, ProgramStateRef St, const LocationContext *LCtx) argument
604 CXXMemberOperatorCall(const CXXOperatorCallExpr *CE, ProgramStateRef St, const LocationContext *LCtx) argument
652 CXXDestructorCall(const CXXDestructorDecl *DD, const Stmt *Trigger, const MemRegion *Target, bool IsBaseDestructor, ProgramStateRef St, const LocationContext *LCtx) argument
698 CXXConstructorCall(const CXXConstructExpr *CE, const MemRegion *Target, ProgramStateRef St, const LocationContext *LCtx) argument
744 CXXAllocatorCall(const CXXNewExpr *E, ProgramStateRef St, const LocationContext *LCtx) argument
797 ObjCMethodCall(const ObjCMessageExpr *Msg, ProgramStateRef St, const LocationContext *LCtx) argument
917 create(Arg A, ProgramStateRef St, const LocationContext *LCtx) argument
924 create(Arg1 A1, Arg2 A2, ProgramStateRef St, const LocationContext *LCtx) argument
931 create(Arg1 A1, Arg2 A2, Arg3 A3, ProgramStateRef St, const LocationContext *LCtx) argument
940 create(Arg1 A1, Arg2 A2, Arg3 A3, Arg4 A4, ProgramStateRef St, const LocationContext *LCtx) argument
960 getObjCMethodCall(const ObjCMessageExpr *E, ProgramStateRef State, const LocationContext *LCtx) argument
966 getCXXConstructorCall(const CXXConstructExpr *E, const MemRegion *Target, ProgramStateRef State, const LocationContext *LCtx) argument
972 getCXXDestructorCall(const CXXDestructorDecl *DD, const Stmt *Trigger, const MemRegion *Target, bool IsBase, ProgramStateRef State, const LocationContext *LCtx) argument
979 getCXXAllocatorCall(const CXXNewExpr *E, ProgramStateRef State, const LocationContext *LCtx) argument
[all...]
H A 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,
145 conjureSymbol(const Stmt *stmt, const LocationContext *LCtx, QualType type, unsigned visitCount, const void *symbolTag = nullptr) argument
153 conjureSymbol(const Expr *expr, const LocationContext *LCtx, unsigned visitCount, const void *symbolTag = nullptr) argument
H A DSymbolManager.h158 const LocationContext *LCtx; member in class:clang::ento::SymbolConjured
166 LCtx(lctx),
178 QualType T, unsigned Count, const LocationContext *LCtx,
182 profile.AddPointer(LCtx);
189 Profile(profile, S, T, Count, LCtx, SymbolTag);
498 const LocationContext *LCtx,
504 const LocationContext *LCtx,
507 return conjureSymbol(E, LCtx, E->getType(), VisitCount, SymbolTag);
573 const StackFrameContext *LCtx; member in class:clang::ento::SymbolReaper
589 : LCtx(Ct
177 Profile(llvm::FoldingSetNodeID& profile, const Stmt *S, QualType T, unsigned Count, const LocationContext *LCtx, const void *SymbolTag) argument
503 conjureSymbol(const Expr *E, const LocationContext *LCtx, unsigned VisitCount, const void *SymbolTag = nullptr) argument
[all...]
H A DProgramState.h206 ProgramStateRef BindExpr(const Stmt *S, const LocationContext *LCtx,
239 unsigned BlockCount, const LocationContext *LCtx,
246 unsigned BlockCount, const LocationContext *LCtx,
275 SVal getSVal(const Stmt *S, const LocationContext *LCtx) const;
277 SVal getSValAsScalarOrLoc(const Stmt *Ex, const LocationContext *LCtx) const;
321 ProgramStateRef addTaint(const Stmt *S, const LocationContext *LCtx,
333 bool isTainted(const Stmt *S, const LocationContext *LCtx,
425 const LocationContext *LCtx,
513 const StackFrameContext *LCtx,
693 const LocationContext *LCtx) cons
[all...]
H A DStore.h144 virtual StoreRef removeDeadBindings(Store store, const StackFrameContext *LCtx,
187 const LocationContext *LCtx,
/external/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp429 for (const LocationContext *LCtx = this; LCtx; LCtx = LCtx->getParent()) {
430 switch (LCtx->getKind()) {
433 cast<StackFrameContext>(LCtx)->getDecl()->print(OS, PP);
441 << cast<BlockInvocationContext>(LCtx)->getContextData()

Completed in 326 milliseconds

12