Searched refs:LastStmt (Results 1 – 7 of 7) sorted by relevance
264 if (std::optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge() local265 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()); in HandleBlockEdge()
2670 const Stmt *LastStmt = CS->getStmt(); in ResolveCondition() local2671 assert(LastStmt == Condition || LastStmt == getRightmostLeaf(Condition)); in ResolveCondition()2672 return LastStmt; in ResolveCondition()
1448 const Stmt *LastStmt = nullptr; in VisitStmt() local1456 if (LastStmt && HasTerminateStmt) { in VisitStmt()1457 auto Gap = findGapAreaBetween(getEnd(LastStmt), getStart(Child)); in VisitStmt()1465 LastStmt = Child; in VisitStmt()
690 auto LastStmt = CS->body_rbegin(); in endsWithReturn() local691 if (LastStmt != CS->body_rend()) in endsWithReturn()692 return isa<ReturnStmt>(*LastStmt); in endsWithReturn()
1170 const Stmt *LastStmt = getLastStmt(*P); in checkFallThroughIntoBlock() local1171 if (const AttributedStmt *AS = asFallThroughAttr(LastStmt)) { in checkFallThroughIntoBlock()1177 if (!LastStmt) { // This block contains no executable statements. in checkFallThroughIntoBlock()
2121 Stmt *LastStmt = CS->body_back(); in CheckForRedundantIteration() local2122 if (!LastStmt) return; in CheckForRedundantIteration()2128 if (!ProcessIterationStmt(S, LastStmt, LastIncrement, LastDRE)) return; in CheckForRedundantIteration()
15659 if (const auto *LastStmt = in BuildStmtExpr() local15661 if (const Expr *Value = LastStmt->getExprStmt()) { in BuildStmtExpr()