/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineC.cpp | 39 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 …]
|
D | ExprEngineCXX.cpp | 31 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 132 SVal LValue = State->getLValue(Var, LCtx); in getRegionForConstructedObject() 146 const CXXMethodDecl *CurCtor = cast<CXXMethodDecl>(LCtx->getDecl()); in getRegionForConstructedObject() 148 LCtx->getCurrentStackFrame()); in getRegionForConstructedObject() [all …]
|
D | PrettyStackTraceLocationContext.h | 30 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()
|
D | ExprEngineObjC.cpp | 26 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()
|
D | ProgramState.cpp | 91 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 …]
|
D | ExprEngineCallAndReturn.cpp | 177 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 …]
|
D | SymbolManager.cpp | 167 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() 490 if (LCtx == nullptr) in isLive() 493 if (LCtx != ELCtx) { in isLive() 496 if (LCtx->isParentOf(ELCtx)) in isLive() 505 return LCtx->getAnalysis<RelaxedLiveVariables>()->isLive(Loc, ExprVal); in isLive() 514 if (!LCtx) in isLive() 516 const StackFrameContext *CurrentContext = LCtx->getCurrentStackFrame(); in isLive() 523 if (LCtx->getAnalysis<RelaxedLiveVariables>()->isLive(Loc, VR->getDecl())) in isLive()
|
D | ExprEngine.cpp | 577 const LocationContext *LCtx = Pred->getLocationContext(); in ProcessNewAllocator() local 578 PostImplicitCall PP(NE->getOperatorNew(), NE->getLocStart(), LCtx); in ProcessNewAllocator() 607 const LocationContext *LCtx = Pred->getLocationContext(); in ProcessDeleteDtor() local 610 SVal ArgVal = State->getSVal(Arg, LCtx); in ProcessDeleteDtor() 620 PostImplicitCall PP(Dtor, DE->getLocStart(), LCtx); in ProcessDeleteDtor() 634 const LocationContext *LCtx = Pred->getLocationContext(); in ProcessBaseDtor() local 636 const CXXDestructorDecl *CurDtor = cast<CXXDestructorDecl>(LCtx->getDecl()); in ProcessBaseDtor() 638 LCtx->getCurrentStackFrame()); in ProcessBaseDtor() 655 const LocationContext *LCtx = Pred->getLocationContext(); in ProcessMemberDtor() local 657 const CXXDestructorDecl *CurDtor = cast<CXXDestructorDecl>(LCtx->getDecl()); in ProcessMemberDtor() [all …]
|
D | SValBuilder.cpp | 111 const LocationContext *LCtx, in conjureSymbolVal() argument 119 T = LCtx->getAnalysisDeclContext()->getASTContext().getPointerType(ExType); in conjureSymbolVal() 121 return conjureSymbolVal(SymbolTag, Ex, LCtx, T, Count); in conjureSymbolVal() 126 const LocationContext *LCtx, in conjureSymbolVal() argument 132 SymbolRef sym = SymMgr.conjureSymbol(expr, LCtx, type, count, symbolTag); in conjureSymbolVal() 142 const LocationContext *LCtx, in conjureSymbolVal() argument 148 SymbolRef sym = SymMgr.conjureSymbol(stmt, LCtx, type, visitCount); in conjureSymbolVal() 158 const LocationContext *LCtx, in getConjuredHeapSymbolVal() argument 164 SymbolRef sym = SymMgr.conjureSymbol(E, LCtx, T, VisitCount); in getConjuredHeapSymbolVal()
|
D | BugReporterVisitors.cpp | 442 const LocationContext *LCtx = N->getLocationContext(); in isInitializationOfVar() local 443 return FrameSpace->getStackFrame() == LCtx->getCurrentStackFrame(); in isInitializationOfVar() 1279 const LocationContext *LCtx = N->getLocationContext(); in patternMatch() local 1282 LCtx).getAsRegion()) { in patternMatch() 1398 const LocationContext *LCtx = N->getLocationContext(); in VisitTrueTest() local 1399 PathDiagnosticLocation Loc(Cond, BRC.getSourceManager(), LCtx); in VisitTrueTest() 1434 const LocationContext *LCtx = N->getLocationContext(); in VisitConditionVariable() local 1435 PathDiagnosticLocation Loc(CondVarExpr, BRC.getSourceManager(), LCtx); in VisitConditionVariable() 1442 if (const MemRegion *R = state->getLValue(VD, LCtx).getAsRegion()) { in VisitConditionVariable() 1480 const LocationContext *LCtx = N->getLocationContext(); in VisitTrueTest() local [all …]
|
D | Environment.cpp | 72 const LocationContext *LCtx = Entry.getLocationContext(); in getSVal() local 99 return getSVal(EnvironmentEntry(RE, LCtx), svalBuilder); in getSVal() 105 return lookupExpr(EnvironmentEntry(S, LCtx)); in getSVal()
|
D | CallEvent.cpp | 620 const LocationContext *LCtx = getLocationContext(); in getSelfSVal() local 621 const ImplicitParamDecl *SelfDecl = LCtx->getSelfDecl(); in getSelfSVal() 624 return getState()->getSVal(getState()->getRegion(SelfDecl, LCtx)); in getSelfSVal() 902 const LocationContext *LCtx) { in getSimpleCall() argument 904 return create<CXXMemberCall>(MCE, State, LCtx); in getSimpleCall() 910 return create<CXXMemberOperatorCall>(OpCE, State, LCtx); in getSimpleCall() 913 return create<BlockCall>(CE, State, LCtx); in getSimpleCall() 918 return create<SimpleFunctionCall>(CE, State, LCtx); in getSimpleCall()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | CallEvent.h | 119 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() 188 return LCtx; in getLocationContext() 383 const LocationContext *LCtx) in AnyFunctionCall() argument 384 : CallEvent(E, St, LCtx) {} in AnyFunctionCall() 386 const LocationContext *LCtx) in AnyFunctionCall() argument 387 : CallEvent(D, St, LCtx) {} in AnyFunctionCall() 433 const LocationContext *LCtx) in SimpleFunctionCall() argument [all …]
|
D | SValBuilder.h | 146 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,
|
D | SymbolManager.h | 158 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 …]
|
D | ProgramState.h | 207 ProgramStateRef BindExpr(const Stmt *S, const LocationContext *LCtx, 240 unsigned BlockCount, const LocationContext *LCtx, 247 unsigned BlockCount, const LocationContext *LCtx, 276 SVal getSVal(const Stmt *S, const LocationContext *LCtx) const; 278 SVal getSValAsScalarOrLoc(const Stmt *Ex, const LocationContext *LCtx) const; 322 ProgramStateRef addTaint(const Stmt *S, const LocationContext *LCtx, 334 bool isTainted(const Stmt *S, const LocationContext *LCtx, 426 const LocationContext *LCtx, 514 const StackFrameContext *LCtx, 694 const LocationContext *LCtx) const{ in getSVal() argument [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | BuiltinFunctionChecker.cpp | 36 const LocationContext *LCtx = C.getLocationContext(); in evalCall() local 52 SVal X = state->getSVal(*(CE->arg_begin()), LCtx); in evalCall() 53 C.addTransition(state->BindExpr(CE, LCtx, X)); in evalCall() 67 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>(); in evalCall() 76 C.addTransition(state->BindExpr(CE, LCtx, loc::MemRegionVal(R))); in evalCall() 93 C.addTransition(state->BindExpr(CE, LCtx, V)); in evalCall()
|
D | CStringChecker.cpp | 350 const LocationContext *LCtx = C.getLocationContext(); in CheckBufferAccess() local 356 SVal BufVal = state->getSVal(FirstBuf, LCtx); in CheckBufferAccess() 368 SVal LengthVal = state->getSVal(Size, LCtx); in CheckBufferAccess() 394 BufVal = state->getSVal(SecondBuf, LCtx); in CheckBufferAccess() 432 const LocationContext *LCtx = C.getLocationContext(); in CheckOverlap() local 433 SVal firstVal = state->getSVal(First, LCtx); in CheckOverlap() 434 SVal secondVal = state->getSVal(Second, LCtx); in CheckOverlap() 483 SVal LengthVal = state->getSVal(Size, LCtx); in CheckOverlap() 841 const LocationContext *LCtx = C.getPredecessor()->getLocationContext(); in InvalidateBuffer() local 854 return state->invalidateRegions(R, E, C.blockCount(), LCtx, in InvalidateBuffer() [all …]
|
D | UndefResultChecker.cpp | 41 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()
|
D | PthreadLockChecker.cpp | 84 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()
|
D | PointerArithChecker.cpp | 40 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()
|
D | PointerSubChecker.cpp | 43 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()
|
D | UndefBranchChecker.cpp | 31 const LocationContext *LCtx; member 34 : St(S), LCtx(L) {} in FindUndefExpr() 51 return St->getSVal(Ex, LCtx).isUndef(); in MatchesCriteria()
|
D | StackAddrEscapeChecker.cpp | 127 const LocationContext *LCtx = C.getLocationContext(); in checkPreStmt() local 128 SVal V = C.getState()->getSVal(RetE, LCtx); in checkPreStmt() 141 const StackFrameContext *CurFrame = LCtx->getCurrentStackFrame(); in checkPreStmt()
|
/external/clang/lib/Analysis/ |
D | AnalysisDeclContext.cpp | 436 for (const LocationContext *LCtx = this; LCtx; LCtx = LCtx->getParent()) { in dumpStack() local 437 switch (LCtx->getKind()) { in dumpStack() 440 cast<StackFrameContext>(LCtx)->getDecl()->print(OS, PP); in dumpStack() 448 << cast<BlockInvocationContext>(LCtx)->getContextData() in dumpStack()
|