Searched refs:LastStmt (Results 1 – 7 of 7) sorted by relevance
276 if (Optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge() local277 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()); in HandleBlockEdge()
2316 const Stmt *LastStmt = CS->getStmt(); in ResolveCondition() local2317 assert(LastStmt == Condition || LastStmt == getRightmostLeaf(Condition)); in ResolveCondition()2318 return LastStmt; in ResolveCondition()
972 const Stmt *LastStmt = nullptr; in VisitStmt() local981 if (LastStmt && HasTerminateStmt && !isa<AttributedStmt>(Child)) { in VisitStmt()982 auto Gap = findGapAreaBetween(getEnd(LastStmt), getStart(Child)); in VisitStmt()990 LastStmt = Child; in VisitStmt()
637 auto LastStmt = CS->body_rbegin(); in endsWithReturn() local638 if (LastStmt != CS->body_rend()) in endsWithReturn()639 return isa<ReturnStmt>(*LastStmt); in endsWithReturn()
1142 const Stmt *LastStmt = getLastStmt(*P); in checkFallThroughIntoBlock() local1143 if (const AttributedStmt *AS = asFallThroughAttr(LastStmt)) { in checkFallThroughIntoBlock()1149 if (!LastStmt) { // This block contains no executable statements. in checkFallThroughIntoBlock()
2088 Stmt *LastStmt = CS->body_back(); in CheckForRedundantIteration() local2089 if (!LastStmt) return; in CheckForRedundantIteration()2095 if (!ProcessIterationStmt(S, LastStmt, LastIncrement, LastDRE)) return; in CheckForRedundantIteration()
15892 if (const auto *LastStmt = in BuildStmtExpr() local15894 if (const Expr *Value = LastStmt->getExprStmt()) { in BuildStmtExpr()