/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ConstructionContext.cpp | 74 ElidedCE = cast<CXXConstructExpr>(ElidedItem.getStmt()); in createMaterializedTemporaryFromLayers() 110 const auto *DS = cast<DeclStmt>(ParentItem.getStmt()); in createBoundTemporaryFromLayers() 120 const auto *RS = cast<ReturnStmt>(ParentItem.getStmt()); in createBoundTemporaryFromLayers() 129 const auto *MTE = cast<MaterializeTemporaryExpr>(ParentItem.getStmt()); in createBoundTemporaryFromLayers() 145 const auto *E = cast<Expr>(ParentItem.getStmt()); in createBoundTemporaryFromLayers() 161 const auto *E = cast<LambdaExpr>(ParentItem.getStmt()); in createBoundTemporaryFromLayers() 179 const auto *DS = cast<DeclStmt>(TopItem.getStmt()); in createFromLayers() 184 const auto *NE = cast<CXXNewExpr>(TopItem.getStmt()); in createFromLayers() 189 const auto *RS = cast<ReturnStmt>(TopItem.getStmt()); in createFromLayers() 193 const auto *MTE = cast<MaterializeTemporaryExpr>(TopItem.getStmt()); in createFromLayers() [all …]
|
H A D | ReachableCode.cpp | 80 if (const auto *CE = dyn_cast<CallExpr>(CS->getStmt())) { in isBuiltinAssumeFalse() 95 if (const ReturnStmt *RS = dyn_cast<ReturnStmt>(CS->getStmt())) { in isDeadReturn() 467 const Stmt *S = CS->getStmt(); in isInCoroutineStmt() 510 const Stmt *S = CS->getStmt(); in findDeadCode() 517 const Stmt *S = T.getStmt(); in findDeadCode()
|
H A D | ProgramPoint.cpp | 72 if (const ReturnStmt *RS = FEP->getStmt()) { in printJson() 187 const Stmt *S = castAs<StmtPoint>().getStmt(); in printJson()
|
H A D | CFGStmtMap.cpp | 57 CFGBlock *&Entry = SM[CS->getStmt()]; in Accumulate()
|
H A D | PathDiagnostic.cpp | 531 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller() 689 S = SP->getStmt(); in create() 717 return PathDiagnosticLocation(StmtElt->getStmt()->getBeginLoc(), SMng); in create() 729 return PathDiagnosticLocation(FE->getStmt(), SMng, in create()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UnreachableCodeChecker.cpp | 132 if (const CallExpr *CE = dyn_cast<CallExpr>(S->getStmt())) { in checkEndAnalysis() 203 if (!isa<DeclStmt>(S->getStmt())) in getUnreachableStmt() 204 return S->getStmt(); in getUnreachableStmt()
|
H A D | AnalyzerStatsChecker.cpp | 131 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
|
H A D | MallocOverflowSecurityChecker.cpp | 309 if (const CallExpr *TheCall = dyn_cast<CallExpr>(CS->getStmt())) { in checkASTCodeBody()
|
H A D | MallocChecker.cpp | 171 const Stmt *getStmt() const { return S; } in getStmt() function in __anon0957485b0211::RefState 181 return RefState(AllocatedOfSizeZero, RS->getStmt(), in getAllocatedOfSizeZero() 191 return RefState(Escaped, RS->getStmt(), RS->getAllocationFamily()); in getEscaped() 2075 const Expr *AllocExpr = cast<Expr>(RsBase->getStmt()); in FreeMemAux() 2350 const Expr *AllocExpr = cast<Expr>(RS->getStmt()); in HandleMismatchedDealloc() 3098 HandleUseZeroAlloc(C, RS->getStmt()->getSourceRange(), Sym); in checkUseZeroAllocated() 3154 RefState::getAllocated(RS->getAllocationFamily(), RS->getStmt())); in evalAssume() 3509 const Stmt *S = RSCurr->getStmt(); in VisitNode()
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | Environment.h | 40 const Stmt *getStmt() const { return first; } in getStmt() function 46 ID.AddPointer(E.getStmt()); in Profile()
|
H A D | SymbolManager.h | 101 const Stmt *getStmt() const { return S; } in getStmt() function 240 const Stmt *getStmt() const { return S; } in getStmt() function
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | JumpDiagnostics.cpp | 672 if (GS->getLabel()->getStmt()) { in VerifyJumps() 673 CheckJump(GS, GS->getLabel()->getStmt(), GS->getGotoLoc(), in VerifyJumps() 691 unsigned TargetScope = LabelAndGotoScopes[LD->getStmt()]; in VerifyJumps() 701 CheckJump(IGS, Target->getStmt(), IGS->getGotoLoc(), in VerifyJumps() 777 if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(TheLabel->getStmt()))) in VerifyIndirectJumps() 779 unsigned LabelScope = LabelAndGotoScopes[TheLabel->getStmt()]; in VerifyIndirectJumps() 873 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target) in DiagnoseIndirectOrAsmJumpStmt() 921 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target) in DiagnoseIndirectOrAsmJump()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ExplodedGraph.cpp | 122 const Expr *Ex = dyn_cast<Expr>(progPoint.castAs<PostStmt>().getStmt()); in shouldCollect() 143 if (CallEvent::isCallStmt(SP->getStmt())) in shouldCollect() 333 return SP->getStmt(); in getStmtForDiagnostics() 345 return FEP->getStmt(); in getStmtForDiagnostics()
|
H A D | BugReporterVisitors.cpp | 926 SourceLocation BugLoc = BugPoint->getStmt()->getBeginLoc(); in VisitNode() 1038 const auto *Ret = dyn_cast<ReturnStmt>(SP->getStmt()); in visitNodeInitial() 1348 cast<DeclStmt>(SI.StoreSite->getLocationAs<PostStmt>()->getStmt()); in showBRDiagnostics() 1782 const Stmt *S = PS->getStmt(); in VisitNode() 1951 CurTerminatorStmt = BE->getSrc()->getTerminator().getStmt(); in VisitNode() 1953 const Stmt *CurStmt = SP->getStmt(); in VisitNode() 1968 SourceLocation BugLoc = BugPoint->getStmt()->getBeginLoc(); in VisitNode() 2458 if (SP->getStmt() == E && CurrentSFC == PredSFC) in handle() 2731 const Stmt *S = P->getStmt(); in VisitNode() 2814 return VisitTrueTest(cast<Expr>(PS->getStmt()), BRC, BR, N, TookTrue); in VisitNodeImpl()
|
H A D | BugReporter.cpp | 1048 const Stmt *S = SP->getStmt(); in getStmtBeforeCond() 1240 if (!isa<ObjCForCollectionStmt>(PS->getStmt())) { in generatePathDiagnosticsForNode() 1242 PathDiagnosticLocation(PS->getStmt(), SM, C.getCurrLocationContext()); in generatePathDiagnosticsForNode() 2148 ErrorNodeRange(getStmt() ? getStmt()->getSourceRange() : SourceRange()), in PathSensitiveBugReport() 2395 const Stmt *PathSensitiveBugReport::getStmt() const { in getStmt() function in PathSensitiveBugReport 2417 if (Ranges.empty() && isa_and_nonnull<Expr>(getStmt())) in getRanges() 2437 if (const ReturnStmt *RS = FE->getStmt()) in getLocation()
|
H A D | CoreEngine.cpp | 265 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()); in HandleBlockEdge() 563 PostStmt Loc(CS.getStmt(), N->getLocationContext()); in enqueueStmtNode()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | AdornedCFG.cpp | 40 StmtToBlock[Stmt->getStmt()] = Block; in buildStmtToBasicBlockMap() 120 CheckChildExprs(S->getStmt(), Block); in buildContainsExprConsumedInDifferentBlock()
|
H A D | TypeErasedDataflowAnalysis.cpp | 143 Dumper.Visit(Stmt->getStmt()); in print() 316 const Stmt *S = Elt.getStmt(); in builtinTransferStatement()
|
H A D | HTMLLogger.cpp | 282 if (const Expr *E = S ? llvm::dyn_cast<Expr>(S->getStmt()) : nullptr) { in recordState() 429 CharSourceRange::getTokenRange(S->getStmt()->getSourceRange()), in writeCode()
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
H A D | CFGMatchSwitch.h | 82 return StmtMS(*Element.castAs<CFGStmt>().getStmt(), Context, S); in Build()
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/ |
H A D | CFG.h | 138 const Stmt *getStmt() const { in getStmt() function 563 Stmt *getStmt() { return Data.getPointer(); } in getStmt() function 564 const Stmt *getStmt() const { return Data.getPointer(); } in getStmt() function 1081 Stmt *getTerminatorStmt() { return Terminator.getStmt(); } in getTerminatorStmt() 1082 const Stmt *getTerminatorStmt() const { return Terminator.getStmt(); } in getTerminatorStmt() 1393 O(const_cast<Stmt *>(stmt->getStmt())); in VisitBlockStmts() 1475 return Val.getStmt();
|
H A D | ProgramPoint.h | 274 const Stmt *getStmt() const { return (const Stmt*) getData1(); } in getStmt() function 277 const T* getStmtAs() const { return dyn_cast<T>(getStmt()); } in getStmtAs() 341 const ReturnStmt *getStmt() const { in getStmt() function
|
H A D | ConstructionContext.h | 146 const Stmt *getStmt() const { in getStmt() function 152 return hasStatement() ? getStmt() : nullptr; in getStmtOrNull()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | VarBypassDetector.cpp | 141 if (const LabelStmt *LS = GS->getLabel()->getStmt()) in Detect()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
H A D | RetainCountDiagnostics.cpp | 502 const Stmt *S = N->getLocation().castAs<StmtPoint>().getStmt(); in VisitNode() 554 const Stmt *S = N->getLocation().castAs<StmtPoint>().getStmt(); in VisitNode() 588 const Stmt *S = N->getLocation().castAs<StmtPoint>().getStmt(); in VisitNode()
|