| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ErrnoTesterChecker.cpp | 87 C.addTransition(setErrnoValue(C.getState(), C.getLocationContext(), in evalSetErrno() 98 State->BindExpr(Call.getOriginExpr(), C.getLocationContext(), *ErrnoVal); in evalGetErrno() 109 Call.getOriginExpr(), C.getLocationContext(), SVB.makeIntVal(0, true)); in evalSetErrnoIfError() 113 Call.getOriginExpr(), C.getLocationContext(), SVB.makeIntVal(1, true)); in evalSetErrnoIfError() 126 Call.getOriginExpr(), C.getLocationContext(), SVB.makeIntVal(0, true)); in evalSetErrnoIfErrorRange() 130 Call.getOriginExpr(), C.getLocationContext(), SVB.makeIntVal(1, true)); in evalSetErrnoIfErrorRange() 132 nullptr, Call.getOriginExpr(), C.getLocationContext(), C.blockCount()); in evalSetErrnoIfErrorRange() 136 setErrnoValue(StateFailure, C.getLocationContext(), ErrnoVal, Irrelevant); in evalSetErrnoIfErrorRange() 148 Call.getOriginExpr(), C.getLocationContext(), SVB.makeIntVal(0, true)); in evalSetErrnoCheckState() 152 Call.getOriginExpr(), C.getLocationContext(), SVB.makeIntVal(1, true)); in evalSetErrnoCheckState() [all …]
|
| H A D | InvalidatedIteratorChecker.cpp | 77 SVal SubVal = State->getSVal(UO->getSubExpr(), C.getLocationContext()); in checkPreStmt() 88 SVal LVal = State->getSVal(BO->getLHS(), C.getLocationContext()); in checkPreStmt() 98 SVal LVal = State->getSVal(ASE->getLHS(), C.getLocationContext()); in checkPreStmt() 108 SVal BaseVal = State->getSVal(ME->getBase(), C.getLocationContext()); in checkPreStmt()
|
| H A D | ErrnoModeling.cpp | 145 State->getRegion(ErrnoVar, C.getLocationContext()); in checkBeginFunction() 167 nullptr, C.getLocationContext(), in checkBeginFunction() 192 State = State->BindExpr(Call.getOriginExpr(), C.getLocationContext(), in evalCall() 240 C.getLocationContext()); in setErrnoValue() 299 return setErrnoValue(State, C.getLocationContext(), ErrnoSym, Irrelevant); in setErrnoForStdFailure() 309 C.getLocationContext(), false); in setErrnoStdMustBeChecked()
|
| H A D | TraversalChecker.cpp | 42 const ParentMap &Parents = C.getLocationContext()->getParentMap(); in checkBranchCondition() 84 for (const LocationContext *LC = C.getLocationContext()->getParent(); in checkPreCall() 101 for (const LocationContext *LC = C.getLocationContext()->getParent(); in checkPostCall()
|
| H A D | SmartPtrModeling.cpp | 309 Call.getOriginExpr(), C.getLocationContext(), in evalCall() 334 *ThisRegionOpt, nullptr, State, C.getLocationContext(), in evalCall() 366 Call.getOriginExpr(), C.getLocationContext(), in evalCall() 489 const auto *LCtx = C.getLocationContext(); in handleComparisionOp() 726 State = State->BindExpr(Call.getOriginExpr(), C.getLocationContext(), in handleGet() 854 const LocationContext *LC = C.getLocationContext(); in handleBoolConversion() 861 State = State->BindExpr(CallExpr, C.getLocationContext(), in handleBoolConversion() 867 State = State->BindExpr(CallExpr, C.getLocationContext(), in handleBoolConversion() 874 State->BindExpr(CallExpr, C.getLocationContext(), in handleBoolConversion() 886 NullState = NullState->BindExpr(CallExpr, C.getLocationContext(), in handleBoolConversion() [all …]
|
| H A D | StreamChecker.cpp | 189 const LocationContext *LCtx = C.getLocationContext(); in makeRetVal() 198 State = State->BindExpr(CE, C.getLocationContext(), RetVal); in bindAndAssumeTrue() 206 State = State->BindExpr(CE, C.getLocationContext(), in bindInt() 648 State->BindExpr(CE, C.getLocationContext(), in evalFreopen() 688 State->BindExpr(CE, C.getLocationContext(), in evalFclose() 779 State->BindExpr(CE, C.getLocationContext(), RetVal); in evalFreadFwrite() 877 State->BindExpr(CE, C.getLocationContext(), in evalFgetx() 926 State->BindExpr(CE, C.getLocationContext(), RetVal); in evalFputx() 1078 State->BindExpr(CE, C.getLocationContext(), *PutVal); in evalUngetc() 1302 State->BindExpr(CE, C.getLocationContext(), RetVal); in evalFtell() [all …]
|
| H A D | DereferenceChecker.cpp | 187 State.get(), N->getLocationContext()); in reportBug() 195 State.get(), N->getLocationContext()); in reportBug() 203 State.get(), N->getLocationContext(), true); in reportBug() 211 State.get(), N->getLocationContext(), true); in reportBug() 219 State.get(), N->getLocationContext(), true); in reportBug()
|
| H A D | IteratorRangeChecker.cpp | 145 SVal SubVal = State->getSVal(UO->getSubExpr(), C.getLocationContext()); in checkPreStmt() 160 SVal LVal = State->getSVal(BO->getLHS(), C.getLocationContext()); in checkPreStmt() 165 SVal RVal = State->getSVal(BO->getRHS(), C.getLocationContext()); in checkPreStmt() 176 SVal LVal = State->getSVal(ASE->getLHS(), C.getLocationContext()); in checkPreStmt() 186 SVal BaseVal = State->getSVal(ME->getBase(), C.getLocationContext()); in checkPreStmt()
|
| H A D | ValistChecker.cpp | 226 const LocationContext *LeakContext = N->getLocationContext(); in getStartCallSite() 239 const LocationContext *NContext = N->getLocationContext(); in getStartCallSite() 289 StartCallStmt, C.getSourceManager(), StartNode->getLocationContext()); in reportLeakedVALists() 301 StartNode->getLocationContext()->getDecl()); in reportLeakedVALists() 399 N->getLocationContext()); in VisitNode()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | CoreEngine.cpp | 242 const LocationContext *LC = Pred->getLocationContext(); in HandleBlockEdge() 268 if (Blk == &(L.getLocationContext()->getCFG()->getExit())) { in HandleBlockEdge() 269 assert(L.getLocationContext()->getCFG()->getExit().empty() && in HandleBlockEdge() 293 BlockEntrance BE(Blk, Pred->getLocationContext()); in HandleBlockEdge() 309 const LocationContext *LC = Pred->getLocationContext(); in HandleBlockEntrance() 363 generateNode(BlockEdge(B, succ, Pred->getLocationContext()), in HandleBlockExit() 502 const LocationContext *LCtx = Pred->getLocationContext(); in HandleVirtualBaseBranch() 575 PostStmt Loc(CS.getStmt(), N->getLocationContext()); in enqueueStmtNode() 595 const auto *LocCtx = cast<StackFrameContext>(N->getLocationContext()); in generateCallExitBeginNode() 620 if (I->getLocationContext()->getParent()) { in enqueueEndOfFunction() [all …]
|
| H A D | ExprEngine.cpp | 136 return getLocationContext()->getDecl()->getASTContext(); in getASTContext() 652 if (I.first.getLocationContext() == LC) in areAllObjectsFullyConstructed() 698 if (Key.getLocationContext() != LCtx) in printObjectsUnderConstructionJson() 712 if (Key.getLocationContext() != LCtx) in printObjectsUnderConstructionJson() 1151 LoopExit PP(S, Pred->getLocationContext()); in ProcessLoopExit() 1161 const LocationContext *LC = Pred->getLocationContext(); in ProcessInitializer() 1569 const LocationContext *LC = Pred->getLocationContext(); in ProcessTemporaryDtor() 1648 const LocationContext *LC = Pred->getLocationContext(); in processCleanupTemporaryBranch() 1868 S, Pred->getLocationContext(), in Visit() 2921 if (I.first.getLocationContext() == LC) { in processEndOfFunction() [all …]
|
| H A D | ExprEngineC.cpp | 57 const LocationContext *LCtx = (*it)->getLocationContext(); in VisitBinaryOperator() 138 const LocationContext *LCtx = N->getLocationContext(); in VisitBinaryOperator() 308 const LocationContext *LCtx = Pred->getLocationContext(); in VisitCast() 544 const LocationContext *LCtx = Pred->getLocationContext(); in VisitCompoundLiteralExpr() 596 const LocationContext *LC = N->getLocationContext(); in VisitDeclStmt() 739 const LocationContext *LCtx = Pred->getLocationContext(); in VisitInitListExpr() 790 const LocationContext *LCtx = Pred->getLocationContext(); in VisitGuardedExpr() 898 Ex, N->getLocationContext(), in VisitUnaryExprOrTypeTraitExpr() 917 const LocationContext *LCtx = N->getLocationContext(); in handleUOExtension() 1064 const LocationContext *LCtx = Pred->getLocationContext(); in VisitIncrementDecrementOperator() [all …]
|
| H A D | ExprEngineObjC.cpp | 25 const LocationContext *LCtx = Pred->getLocationContext(); in VisitLvalObjCIvarRefExpr() 54 const LocationContext *LCtx = Pred->getLocationContext(); in populateObjCForDestinationSet() 114 SVal collectionV = state->getSVal(collection, Pred->getLocationContext()); in VisitObjCForCollectionStmt() 120 elementV = state->getLValue(elemD, Pred->getLocationContext()); in VisitObjCForCollectionStmt() 122 elementV = state->getSVal(elem, Pred->getLocationContext()); in VisitObjCForCollectionStmt() 152 ME, Pred->getState(), Pred->getLocationContext(), getCFGElementRef()); in VisitObjCMessage()
|
| H A D | Environment.cpp | 98 const LocationContext *LCtx = Entry.getLocationContext(); in getSVal() 204 if (SymReaper.isLive(E, BlkExpr.getLocationContext())) { in removeDeadBindings() 232 const LocationContext *LC = I.first.getLocationContext(); in printJson() 257 if (I->first.getLocationContext() != LC) in printJson() 274 if (I->first.getLocationContext() != LC) in printJson()
|
| H A D | LoopUnrolling.cpp | 50 const LocationContext *getLocationContext() const { return LCtx; } in getLocationContext() function 173 const LocationContext *LocCtxt = N->getLocationContext(); in isCapturedByReference() 232 N->getLocationContext()->getAnalysisDeclContext()->getASTContext(); in isPossiblyEscaped() 306 auto LCtx = Pred->getLocationContext(); in updateLoopStack() 313 LCtx == LS.getHead().getLocationContext()) { in updateLoopStack()
|
| H A D | ExprEngineCallAndReturn.cpp | 183 const LocationContext *LCtx = Pred->getLocationContext(); in removeDeadOnEndOfFunction() 256 PrettyStackTraceLocationContext CrashInfo(CEBNode->getLocationContext()); in processCallExit() 298 const LocationContext *LCtx = CEBNode->getLocationContext(); in processCallExit() 535 const LocationContext *CurLC = Pred->getLocationContext(); in inlineCall() 612 CE, Pred->getState(), Pred->getLocationContext(), getCFGElementRef()); in VisitCallExpr() 637 const LocationContext *LC = Call.getLocationContext(); in finishArgumentConstruction() 664 const LocationContext *LC = Call.getLocationContext(); in finishArgumentConstruction() 730 State = processPointerEscapedOnBind(State, Escaped, I->getLocationContext(), in evalCall() 834 State = bindReturnValue(Call, Pred->getLocationContext(), State); in conservativeEvalCall() 845 const LocationContext *CurLC = Pred->getLocationContext(); in mayInlineCallKind() [all …]
|
| H A D | ExprEngineCXX.cpp | 36 const LocationContext *LCtx = Pred->getLocationContext(); in CreateCXXTemporaryObject() 64 const LocationContext *LCtx = Pred->getLocationContext(); in performTrivialCopy() 589 const LocationContext *LCtx = Pred->getLocationContext(); in handleConstructor() 864 const LocationContext *LCtx = Pred->getLocationContext(); in VisitCXXDestructor() 892 Dest = MRMgr.getCXXTempObjectRegion(E, Pred->getLocationContext()); in VisitCXXDestructor() 927 const LocationContext *LCtx = Pred->getLocationContext(); in VisitCXXNewAllocatorCall() 1003 const LocationContext *LCtx = Pred->getLocationContext(); in VisitCXXNewExpr() 1093 State = State->BindExpr(CNE, Pred->getLocationContext(), Result); in VisitCXXNewExpr() 1157 const LocationContext *LCtx = Pred->getLocationContext(); in VisitCXXCatchStmt() 1172 const LocationContext *LCtx = Pred->getLocationContext(); in VisitCXXThisExpr() [all …]
|
| H A D | ExplodedGraph.cpp | 117 progPoint.getLocationContext() != pred->getLocationContext()) in shouldCollect() 136 const ParentMap &PM = progPoint.getLocationContext()->getParentMap(); in shouldCollect() 298 return getLocationContext() in getCFGBlock() 323 const LocationContext *LC = getLocationContext(); in getStmtForDiagnostics()
|
| H A D | CallEvent.cpp | 283 BlockCount, getLocationContext(), in invalidateRegions() 293 return PreStmt(E, getLocationContext(), Tag); in getProgramPoint() 294 return PostStmt(E, getLocationContext(), Tag); in getProgramPoint() 304 return PreImplicitCall(D, Loc, getLocationContext(), ElemRef, Tag); in getProgramPoint() 305 return PostImplicitCall(D, Loc, getLocationContext(), ElemRef, Tag); in getProgramPoint() 521 const auto *CallLocationContext = this->getLocationContext(); in getCaller() 549 getLocationContext(), CC, CallOpts); in getReturnValueUnderConstruction() 568 getLocationContext()->getAnalysisDeclContext()-> in getRuntimeDefinition() 1015 SVal SelfVal = getState()->getSelfSVal(getLocationContext()); in getReceiverSVal() 1029 SVal SelfVal = getState()->getSelfSVal(getLocationContext()); in isReceiverSelfOrSuper() [all …]
|
| H A D | BugReporterVisitors.cpp | 237 const LocationContext *LCtx = N->getLocationContext(); in getSValForVar() 381 const LocationContext *Ctx = N->getLocationContext(); in isModifiedInFrame() 469 const LocationContext *Ctx = N->getLocationContext(); in VisitNode() 960 auto *LCtx = N->getLocationContext(); in matchAssignment() 1027 if (N->getLocationContext() != CalleeSFC) in visitNodeInitial() 1291 const LocationContext *LCtx = N->getLocationContext(); in isInitializationOfVar() 2226 P.getLocationContext()); in constructNote() 2880 const LocationContext *LCtx = N->getLocationContext(); in VisitTrueTest() 3112 const LocationContext *LCtx = N->getLocationContext(); in VisitTrueTest() 3161 const LocationContext *LCtx = N->getLocationContext(); in VisitConditionVariable() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | ExplodedGraph.h | 147 const LocationContext *getLocationContext() const { in getLocationContext() function 148 return getLocation().getLocationContext(); in getLocationContext() 155 const Decl &getCodeDecl() const { return *getLocationContext()->getDecl(); } in getCodeDecl() 157 CFG &getCFG() const { return *getLocationContext()->getCFG(); } in getCFG() 162 return getLocationContext()->getParentMap(); in getParentMap() 166 return *getLocationContext()->getAnalysis<T>(); in getAnalysis() 177 return getState()->getSVal(S, getLocationContext()); in getSVal()
|
| H A D | CoreEngine.h | 215 : NodeBuilderContext(E, B, N->getLocationContext()) {} in NodeBuilderContext() 417 Pred->getLocationContext(), tag); 427 Pred->getLocationContext(), tag); 529 const LocationContext *getLocationContext() const { in getLocationContext() function 530 return Pred->getLocationContext(); in getLocationContext() 583 const LocationContext *getLocationContext() const { in getLocationContext() function 584 return Pred->getLocationContext(); in getLocationContext()
|
| H A D | CheckerContext.h | 94 const LocationContext *getLocationContext() const { in getLocationContext() function 95 return Pred->getLocationContext(); in getLocationContext() 103 bool inTopFrame() const { return getLocationContext()->inTopFrame(); } in inTopFrame() 128 return Pred->getLocationContext()->getAnalysisDeclContext(); in getCurrentAnalysisDeclContext()
|
| H A D | Environment.h | 41 const LocationContext *getLocationContext() const { return second; } in getLocationContext() function 47 ID.AddPointer(E.getLocationContext()); in Profile()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
| H A D | RetainCountDiagnostics.cpp | 479 const LocationContext *LCtx = N->getLocationContext(); in VisitNode() 537 PathDiagnosticLocation Pos(S, SM, N->getLocationContext()); in VisitNode() 590 N->getLocationContext()); in VisitNode() 672 const LocationContext *LeakContext = N->getLocationContext(); in GetAllocationSite() 680 const LocationContext *NContext = N->getLocationContext(); in GetAllocationSite() 744 AllocationNodeInCurrentOrParentContext->getLocationContext() != in GetAllocationSite() 867 UniqueingDecl = Ctx.getLocationContext()->getDecl(); in deriveParamLocation() 904 AllocStmt, SMgr, AllocNode->getLocationContext()); in deriveAllocLocation() 910 UniqueingDecl = AllocNode->getLocationContext()->getDecl(); in deriveAllocLocation()
|