Searched refs:LastStmt (Results 1 – 7 of 7) sorted by relevance
276 if (std::optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge() local277 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()); in HandleBlockEdge()
2658 const Stmt *LastStmt = CS->getStmt(); in ResolveCondition() local2659 assert(LastStmt == Condition || LastStmt == getRightmostLeaf(Condition)); in ResolveCondition()2660 return LastStmt; in ResolveCondition()
1372 const Stmt *LastStmt = nullptr; in VisitStmt() local1380 if (LastStmt && HasTerminateStmt) { in VisitStmt()1381 auto Gap = findGapAreaBetween(getEnd(LastStmt), getStart(Child)); in VisitStmt()1389 LastStmt = Child; in VisitStmt()
645 auto LastStmt = CS->body_rbegin(); in endsWithReturn() local646 if (LastStmt != CS->body_rend()) in endsWithReturn()647 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()
2098 Stmt *LastStmt = CS->body_back(); in CheckForRedundantIteration() local2099 if (!LastStmt) return; in CheckForRedundantIteration()2105 if (!ProcessIterationStmt(S, LastStmt, LastIncrement, LastDRE)) return; in CheckForRedundantIteration()
16665 if (const auto *LastStmt = in BuildStmtExpr() local16667 if (const Expr *Value = LastStmt->getExprStmt()) { in BuildStmtExpr()