Home
last modified time | relevance | path

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

/external/clang/lib/CodeGen/
DCGStmt.cpp350 const Stmt *LastStmt = S.body_back(); in EmitCompoundStmtWithoutScope() local
351 while (const LabelStmt *LS = dyn_cast<LabelStmt>(LastStmt)) { in EmitCompoundStmtWithoutScope()
353 LastStmt = LS->getSubStmt(); in EmitCompoundStmtWithoutScope()
358 QualType ExprTy = cast<Expr>(LastStmt)->getType(); in EmitCompoundStmtWithoutScope()
360 EmitAggExpr(cast<Expr>(LastStmt), AggSlot); in EmitCompoundStmtWithoutScope()
366 EmitAnyExprToMem(cast<Expr>(LastStmt), RetAlloca, Qualifiers(), in EmitCompoundStmtWithoutScope()
DCodeGenFunction.cpp646 auto LastStmt = CS->body_rbegin(); in endsWithReturn() local
647 if (LastStmt != CS->body_rend()) in endsWithReturn()
648 return isa<ReturnStmt>(*LastStmt); in endsWithReturn()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DCoreEngine.cpp246 if (Optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge() local
247 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()); in HandleBlockEdge()
DExprEngine.cpp2125 const Stmt *LastStmt = CS->getStmt(); in ResolveCondition() local
2126 assert(LastStmt == Condition || LastStmt == getRightmostLeaf(Condition)); in ResolveCondition()
2127 return LastStmt; in ResolveCondition()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp998 const Stmt *LastStmt = getLastStmt(*P); in checkFallThroughIntoBlock() local
999 if (const AttributedStmt *AS = asFallThroughAttr(LastStmt)) { in checkFallThroughIntoBlock()
1005 if (!LastStmt) { // This block contains no executable statements. in checkFallThroughIntoBlock()
DSemaStmt.cpp1584 Stmt *LastStmt = CS->body_back(); in CheckForRedundantIteration() local
1585 if (!LastStmt) return; in CheckForRedundantIteration()
1591 if (!ProcessIterationStmt(S, LastStmt, LastIncrement, LastDRE)) return; in CheckForRedundantIteration()
DSemaExpr.cpp11642 Stmt *LastStmt = Compound->body_back(); in ActOnStmtExpr() local
11645 while (LabelStmt *Label = dyn_cast<LabelStmt>(LastStmt)) { in ActOnStmtExpr()
11647 LastStmt = Label->getSubStmt(); in ActOnStmtExpr()
11650 if (Expr *LastE = dyn_cast<Expr>(LastStmt)) { in ActOnStmtExpr()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngine.cpp1571 const Stmt *LastStmt = CS->getStmt(); in ResolveCondition() local
1572 assert(LastStmt == Condition || LastStmt == getRightmostLeaf(Condition)); in ResolveCondition()
1573 return LastStmt; in ResolveCondition()
/external/llvm-project/clang/lib/Sema/
DAnalysisBasedWarnings.cpp1145 const Stmt *LastStmt = getLastStmt(*P); in checkFallThroughIntoBlock() local
1146 if (const AttributedStmt *AS = asFallThroughAttr(LastStmt)) { in checkFallThroughIntoBlock()
1152 if (!LastStmt) { // This block contains no executable statements. in checkFallThroughIntoBlock()
DSemaStmt.cpp1770 Stmt *LastStmt = CS->body_back(); in CheckForRedundantIteration() local
1771 if (!LastStmt) return; in CheckForRedundantIteration()
1777 if (!ProcessIterationStmt(S, LastStmt, LastIncrement, LastDRE)) return; in CheckForRedundantIteration()
DSemaExpr.cpp14884 if (const auto *LastStmt = in BuildStmtExpr() local
14886 if (const Expr *Value = LastStmt->getExprStmt()) { in BuildStmtExpr()
/external/llvm-project/clang/lib/CodeGen/
DCodeGenFunction.cpp642 auto LastStmt = CS->body_rbegin(); in endsWithReturn() local
643 if (LastStmt != CS->body_rend()) in endsWithReturn()
644 return isa<ReturnStmt>(*LastStmt); in endsWithReturn()