Home
last modified time | relevance | path

Searched refs:getStmt (Results 1 – 25 of 57) sorted by relevance

123

/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DConstructionContext.cpp74 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()
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()
198 const auto *BTE = cast<CXXBindTemporaryExpr>(TopItem.getStmt()); in createFromLayers()
211 const auto *E = cast<LambdaExpr>(TopItem.getStmt()); in createFromLayers()
[all …]
H A DProgramPoint.cpp72 if (const ReturnStmt *RS = FEP->getStmt()) { in printJson()
187 const Stmt *S = castAs<StmtPoint>().getStmt(); in printJson()
H A DReachableCode.cpp79 if (const auto *CE = dyn_cast<CallExpr>(CS->getStmt())) { in isBuiltinAssumeFalse()
94 if (const ReturnStmt *RS = dyn_cast<ReturnStmt>(CS->getStmt())) { in isDeadReturn()
467 const Stmt *S = CS->getStmt(); in findDeadCode()
474 const Stmt *S = T.getStmt(); in findDeadCode()
H A DCFGStmtMap.cpp57 CFGBlock *&Entry = SM[CS->getStmt()]; in Accumulate()
H A DConsumed.cpp66 return CS->getStmt()->getBeginLoc(); in getFirstStmtLoc()
85 return CS->getStmt()->getBeginLoc(); in getLastStmtLoc()
1235 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) { in splitState()
1255 dyn_cast_or_null<BinaryOperator>(CurrBlock->getTerminator().getStmt())) { in splitState()
1345 Visitor.Visit(B.castAs<CFGStmt>().getStmt()); in run()
H A DPathDiagnostic.cpp528 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller()
686 S = SP->getStmt(); in create()
714 return PathDiagnosticLocation(StmtElt->getStmt()->getBeginLoc(), SMng); in create()
726 return PathDiagnosticLocation(FE->getStmt(), SMng, in create()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DEnvironment.cpp91 const Stmt *S = Entry.getStmt(); in getSVal()
200 const Expr *E = dyn_cast<Expr>(BlkExpr.getStmt()); in removeDeadBindings()
265 const Stmt *S = I->first.getStmt(); in printJson()
277 const Stmt *S = I->first.getStmt(); in printJson()
H A DExplodedGraph.cpp122 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 DBugReporterVisitors.cpp922 SourceLocation BugLoc = BugPoint->getStmt()->getBeginLoc(); in VisitNode()
1034 const auto *Ret = dyn_cast<ReturnStmt>(SP->getStmt()); in visitNodeInitial()
1344 cast<DeclStmt>(SI.StoreSite->getLocationAs<PostStmt>()->getStmt()); in showBRDiagnostics()
1778 const Stmt *S = PS->getStmt(); in VisitNode()
1947 CurTerminatorStmt = BE->getSrc()->getTerminator().getStmt(); in VisitNode()
1949 const Stmt *CurStmt = SP->getStmt(); in VisitNode()
1964 SourceLocation BugLoc = BugPoint->getStmt()->getBeginLoc(); in VisitNode()
2454 if (SP->getStmt() == E && CurrentSFC == PredSFC) in handle()
2727 const Stmt *S = P->getStmt(); in VisitNode()
2810 return VisitTrueTest(cast<Expr>(PS->getStmt()), BRC, BR, N, TookTrue); in VisitNodeImpl()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DUnreachableCodeChecker.cpp132 if (const CallExpr *CE = dyn_cast<CallExpr>(S->getStmt())) { in checkEndAnalysis()
201 if (!isa<DeclStmt>(S->getStmt())) in getUnreachableStmt()
202 return S->getStmt(); in getUnreachableStmt()
H A DUndefBranchChecker.cpp96 if (PS->getStmt() == Ex) in checkBranchCondition()
H A DAnalyzerStatsChecker.cpp131 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
H A DDivZeroChecker.cpp43 const Stmt *S = N->getLocationAs<PreStmt>()->getStmt(); in getDenomExpr()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DEnvironment.h40 const Stmt *getStmt() const { return first; } in getStmt() function
46 ID.AddPointer(E.getStmt()); in Profile()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DJumpDiagnostics.cpp663 if (GS->getLabel()->getStmt()) { in VerifyJumps()
664 CheckJump(GS, GS->getLabel()->getStmt(), GS->getGotoLoc(), in VerifyJumps()
682 unsigned TargetScope = LabelAndGotoScopes[LD->getStmt()]; in VerifyJumps()
692 CheckJump(IGS, Target->getStmt(), IGS->getGotoLoc(), in VerifyJumps()
768 if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(TheLabel->getStmt()))) in VerifyIndirectJumps()
770 unsigned LabelScope = LabelAndGotoScopes[TheLabel->getStmt()]; in VerifyIndirectJumps()
864 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target) in DiagnoseIndirectOrAsmJumpStmt()
912 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target) in DiagnoseIndirectOrAsmJump()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DChromiumCheckModel.cpp57 auto Stmt = CS->getStmt(); in transfer()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DCFGMatchSwitch.h82 return StmtMS(*Element.castAs<CFGStmt>().getStmt(), Context, S); in Build()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/
H A DCFG.h138 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
1078 Stmt *getTerminatorStmt() { return Terminator.getStmt(); } in getTerminatorStmt()
1079 const Stmt *getTerminatorStmt() const { return Terminator.getStmt(); } in getTerminatorStmt()
1390 O(const_cast<Stmt *>(stmt->getStmt())); in VisitBlockStmts()
1472 return Val.getStmt();
H A DProgramPoint.h274 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 DConstructionContext.h146 const Stmt *getStmt() const { in getStmt() function
152 return hasStatement() ? getStmt() : nullptr; in getStmtOrNull()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DControlFlowContext.cpp40 StmtToBlock[Stmt->getStmt()] = Block; in buildStmtToBasicBlockMap()
H A DTypeErasedDataflowAnalysis.cpp207 Dumper.Visit(Stmt->getStmt()); in print()
351 const Stmt *S = Elt.getStmt(); in builtinTransferStatement()
H A DHTMLLogger.cpp274 if (const Expr *E = S ? llvm::dyn_cast<Expr>(S->getStmt()) : nullptr) { in recordState()
417 CharSourceRange::getTokenRange(S->getStmt()->getSourceRange()), in writeCode()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DVarBypassDetector.cpp141 if (const LabelStmt *LS = GS->getLabel()->getStmt()) in Detect()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.cpp502 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()

123