Searched refs:LastStmt (Results 1 – 7 of 7) sorted by relevance
246 if (Optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge() local247 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()); in HandleBlockEdge()
2130 const Stmt *LastStmt = CS->getStmt(); in ResolveCondition() local2131 assert(LastStmt == Condition || LastStmt == getRightmostLeaf(Condition)); in ResolveCondition()2132 return LastStmt; in ResolveCondition()
965 const Stmt *LastStmt = nullptr; in VisitStmt() local974 if (LastStmt && HasTerminateStmt && !dyn_cast<AttributedStmt>(Child)) { in VisitStmt()975 auto Gap = findGapAreaBetween(getEnd(LastStmt), getStart(Child)); in VisitStmt()983 LastStmt = Child; in VisitStmt()
650 auto LastStmt = CS->body_rbegin(); in endsWithReturn() local651 if (LastStmt != CS->body_rend()) in endsWithReturn()652 return isa<ReturnStmt>(*LastStmt); in endsWithReturn()
1147 const Stmt *LastStmt = getLastStmt(*P); in checkFallThroughIntoBlock() local1148 if (const AttributedStmt *AS = asFallThroughAttr(LastStmt)) { in checkFallThroughIntoBlock()1154 if (!LastStmt) { // This block contains no executable statements. in checkFallThroughIntoBlock()
2050 Stmt *LastStmt = CS->body_back(); in CheckForRedundantIteration() local2051 if (!LastStmt) return; in CheckForRedundantIteration()2057 if (!ProcessIterationStmt(S, LastStmt, LastIncrement, LastDRE)) return; in CheckForRedundantIteration()
15003 if (const auto *LastStmt = in BuildStmtExpr() local15005 if (const Expr *Value = LastStmt->getExprStmt()) { in BuildStmtExpr()