Home
last modified time | relevance | path

Searched refs:LastStmt (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp276 if (Optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge() local
277 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()); in HandleBlockEdge()
H A DExprEngine.cpp2316 const Stmt *LastStmt = CS->getStmt(); in ResolveCondition() local
2317 assert(LastStmt == Condition || LastStmt == getRightmostLeaf(Condition)); in ResolveCondition()
2318 return LastStmt; in ResolveCondition()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp972 const Stmt *LastStmt = nullptr; in VisitStmt() local
981 if (LastStmt && HasTerminateStmt && !isa<AttributedStmt>(Child)) { in VisitStmt()
982 auto Gap = findGapAreaBetween(getEnd(LastStmt), getStart(Child)); in VisitStmt()
990 LastStmt = Child; in VisitStmt()
H A DCodeGenFunction.cpp637 auto LastStmt = CS->body_rbegin(); in endsWithReturn() local
638 if (LastStmt != CS->body_rend()) in endsWithReturn()
639 return isa<ReturnStmt>(*LastStmt); in endsWithReturn()
/llvm-project-15.0.7/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp1142 const Stmt *LastStmt = getLastStmt(*P); in checkFallThroughIntoBlock() local
1143 if (const AttributedStmt *AS = asFallThroughAttr(LastStmt)) { in checkFallThroughIntoBlock()
1149 if (!LastStmt) { // This block contains no executable statements. in checkFallThroughIntoBlock()
H A DSemaStmt.cpp2088 Stmt *LastStmt = CS->body_back(); in CheckForRedundantIteration() local
2089 if (!LastStmt) return; in CheckForRedundantIteration()
2095 if (!ProcessIterationStmt(S, LastStmt, LastIncrement, LastDRE)) return; in CheckForRedundantIteration()
H A DSemaExpr.cpp15892 if (const auto *LastStmt = in BuildStmtExpr() local
15894 if (const Expr *Value = LastStmt->getExprStmt()) { in BuildStmtExpr()