/external/clang/lib/StaticAnalyzer/Core/ |
PrettyStackTraceLocationContext.h | 30 const LocationContext *LCtx; 32 PrettyStackTraceLocationContext(const LocationContext *LC) : LCtx(LC) { 33 assert(LCtx); 38 LCtx->dumpStack(OS, "\t");
|
Environment.cpp | 71 const LocationContext *LCtx = Entry.getLocationContext(); 98 return getSVal(EnvironmentEntry(RE, LCtx), svalBuilder); 104 return lookupExpr(EnvironmentEntry(S, LCtx));
|
ExprEngineObjC.cpp | 26 const LocationContext *LCtx = Pred->getLocationContext(); 27 SVal baseVal = state->getSVal(Ex->getBase(), LCtx); 32 Bldr.generateNode(Ex, Pred, state->BindExpr(Ex, LCtx, location)); 97 const LocationContext *LCtx = Pred->getLocationContext(); 101 ProgramStateRef hasElems = state->BindExpr(S, LCtx, TrueV); 105 ProgramStateRef noElems = state->BindExpr(S, LCtx, FalseV); 115 SymbolRef Sym = SymMgr.conjureSymbol(elem, LCtx, T,
|
ExprEngineCXX.cpp | 31 const LocationContext *LCtx = Pred->getLocationContext(); 33 state = createTemporaryRegionIfNeeded(state, LCtx, tempExpr, ME); 56 const LocationContext *LCtx = Pred->getLocationContext(); 73 PostStmt PS(CallExpr, LCtx); 78 State = State->BindExpr(CallExpr, LCtx, ThisVal); 80 State = bindReturnValue(Call, LCtx, State); 108 const LocationContext *LCtx = Pred->getLocationContext(); 130 SVal LValue = State->getLValue(Var, LCtx); 144 const CXXMethodDecl *CurCtor = cast<CXXMethodDecl>(LCtx->getDecl()); 146 LCtx->getCurrentStackFrame()) [all...] |
ExprEngineC.cpp | 39 const LocationContext *LCtx = (*it)->getLocationContext(); 40 SVal LeftV = state->getSVal(LHS, LCtx); 41 SVal RightV = state->getSVal(RHS, LCtx); 50 RightV = svalBuilder.conjureSymbolVal(0, B->getRHS(), LCtx, Count); 55 evalStore(Tmp2, B, LHS, *it, state->BindExpr(B, LCtx, ExprVal), 73 RightV = svalBuilder.conjureSymbolVal(RHS, LCtx, RHS->getType(), 79 LeftV = svalBuilder.conjureSymbolVal(LHS, LCtx, LHS->getType(), 92 state = state->BindExpr(B, LCtx, Result); 124 const LocationContext *LCtx = (*I)->getLocationContext(); 125 SVal V = state->getSVal(LHS, LCtx); [all...] |
CallEvent.cpp | 631 const LocationContext *LCtx = getLocationContext(); 632 const ImplicitParamDecl *SelfDecl = LCtx->getSelfDecl(); 635 return getState()->getSVal(getState()->getRegion(SelfDecl, LCtx)); 890 const LocationContext *LCtx) { 892 return create<CXXMemberCall>(MCE, State, LCtx); 898 return create<CXXMemberOperatorCall>(OpCE, State, LCtx); 901 return create<BlockCall>(CE, State, LCtx); 906 return create<FunctionCall>(CE, State, LCtx); [all...] |
ExprEngineCallAndReturn.cpp | 177 const LocationContext *LCtx = Pred->getLocationContext(); 178 removeDead(Pred, Dst, dyn_cast<ReturnStmt>(LastSt), LCtx, 179 LCtx->getAnalysisDeclContext()->getBody(), 246 const LocationContext *LCtx = CEBNode->getLocationContext(); 247 SVal V = state->getSVal(RS, LCtx); 356 void ExprEngine::examineStackFrames(const Decl *D, const LocationContext *LCtx, 361 while (LCtx) { 362 if (const StackFrameContext *SFC = dyn_cast<StackFrameContext>(LCtx)) { 370 LCtx = LCtx->getParent() [all...] |
BugReporterVisitors.cpp | 446 const LocationContext *LCtx = N->getLocationContext(); 447 return FrameSpace->getStackFrame() == LCtx->getCurrentStackFrame(); [all...] |
PathDiagnostic.cpp | [all...] |
ExprEngine.cpp | 567 const LocationContext *LCtx = Pred->getLocationContext(); 570 const CXXDestructorDecl *CurDtor = cast<CXXDestructorDecl>(LCtx->getDecl()); 572 LCtx->getCurrentStackFrame()); 589 const LocationContext *LCtx = Pred->getLocationContext(); 591 const CXXDestructorDecl *CurDtor = cast<CXXDestructorDecl>(LCtx->getDecl()); 593 LCtx->getCurrentStackFrame()); 772 const LocationContext *LCtx = Pred->getLocationContext(); 776 State = State->BindExpr(S, LCtx, *ConstantVal); 778 State = createTemporaryRegionIfNeeded(State, LCtx, 808 const LocationContext *LCtx = N->getLocationContext() [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
PointerArithChecker.cpp | 40 const LocationContext *LCtx = C.getLocationContext(); 41 SVal LV = state->getSVal(B->getLHS(), LCtx); 42 SVal RV = state->getSVal(B->getRHS(), LCtx);
|
UndefResultChecker.cpp | 41 const LocationContext *LCtx = C.getLocationContext(); 42 if (state->getSVal(B, LCtx).isUndef()) { 65 if (state->getSVal(B->getLHS(), LCtx).isUndef()) { 69 else if (state->getSVal(B->getRHS(), LCtx).isUndef()) {
|
BuiltinFunctionChecker.cpp | 36 const LocationContext *LCtx = C.getLocationContext(); 52 SVal X = state->getSVal(*(CE->arg_begin()), LCtx); 53 C.addTransition(state->BindExpr(CE, LCtx, X)); 67 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>(); 76 C.addTransition(state->BindExpr(CE, LCtx, loc::MemRegionVal(R)));
|
PointerSubChecker.cpp | 43 const LocationContext *LCtx = C.getLocationContext(); 44 SVal LV = state->getSVal(B->getLHS(), LCtx); 45 SVal RV = state->getSVal(B->getRHS(), LCtx);
|
UndefBranchChecker.cpp | 31 const LocationContext *LCtx; 34 : St(S), LCtx(L) {} 51 return St->getSVal(Ex, LCtx).isUndef();
|
PthreadLockChecker.cpp | 52 const LocationContext *LCtx = C.getLocationContext(); 63 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), 68 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), 73 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), 78 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), 84 ReleaseLock(C, CE, state->getSVal(CE->getArg(0), LCtx));
|
StackAddrEscapeChecker.cpp | 127 const LocationContext *LCtx = C.getLocationContext(); 128 SVal V = C.getState()->getSVal(RetE, LCtx); 141 const StackFrameContext *CurFrame = LCtx->getCurrentStackFrame();
|
CallAndMessageChecker.cpp | 228 const LocationContext *LCtx = C.getLocationContext(); 229 SVal L = State->getSVal(Callee, LCtx); 435 const LocationContext *LCtx = C.getLocationContext(); 440 C.addTransition(state->BindExpr(Msg.getOriginExpr(), LCtx, V), &Tag); 478 C.addTransition(state->BindExpr(Msg.getOriginExpr(), LCtx, V), &Tag);
|
IdempotentOperationChecker.cpp | 148 const LocationContext *LCtx = C.getLocationContext(); 149 SVal LHSVal = state->getSVal(LHS, LCtx); 150 SVal RHSVal = state->getSVal(RHS, LCtx);
|
StreamChecker.cpp | 212 const LocationContext *LCtx = C.getPredecessor()->getLocationContext(); 213 DefinedSVal RetVal = svalBuilder.conjureSymbolVal(0, CE, LCtx, C.blockCount())
|
BasicObjCFoundationChecks.cpp | 410 const LocationContext *LCtx = C.getLocationContext(); 411 SVal TheTypeVal = state->getSVal(CE->getArg(1), LCtx); 431 SVal TheValueExpr = state->getSVal(CE->getArg(2), LCtx); 876 const LocationContext *LCtx = C.getLocationContext(); 884 ElementLoc = State->getLValue(ElemDecl, LCtx); 886 ElementLoc = State->getSVal(Element, LCtx).getAs<Loc>(); [all...] |
CStringChecker.cpp | 345 const LocationContext *LCtx = C.getLocationContext(); 351 SVal BufVal = state->getSVal(FirstBuf, LCtx); 363 SVal LengthVal = state->getSVal(Size, LCtx); 389 BufVal = state->getSVal(SecondBuf, LCtx); 427 const LocationContext *LCtx = C.getLocationContext(); 428 SVal firstVal = state->getSVal(First, LCtx); 429 SVal secondVal = state->getSVal(Second, LCtx); 478 SVal LengthVal = state->getSVal(Size, LCtx); 819 const LocationContext *LCtx = C.getPredecessor()->getLocationContext(); 820 return state->invalidateRegions(R, E, C.blockCount(), LCtx, [all...] |
MallocChecker.cpp | 756 const LocationContext *LCtx = C.getPredecessor()->getLocationContext(); 757 DefinedSVal RetVal = svalBuilder.getConjuredHeapSymbolVal(CE, LCtx, Count) [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
CallEvent.h | 121 const LocationContext *LCtx; 145 CallEvent(const Expr *E, ProgramStateRef state, const LocationContext *lctx) 146 : State(state), LCtx(lctx), Origin(E), RefCount(0) {} 148 CallEvent(const Decl *D, ProgramStateRef state, const LocationContext *lctx) 149 : State(state), LCtx(lctx), Origin(D), RefCount(0) {} 153 : State(Original.State), LCtx(Original.LCtx), Origin(Original.Origin), 190 return LCtx; [all...] |
SymbolManager.h | 161 const LocationContext *LCtx; 165 SymbolConjured(SymbolID sym, const Stmt *s, const LocationContext *lctx, 169 LCtx(lctx), 181 QualType T, unsigned Count, const LocationContext *LCtx, 185 profile.AddPointer(LCtx); 192 Profile(profile, S, T, Count, LCtx, SymbolTag); 501 const LocationContext *LCtx, 507 const LocationContext *LCtx, 510 return conjureSymbol(E, LCtx, E->getType(), VisitCount, SymbolTag) [all...] |