Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLBuiltinTypeDeclBuilder.cpp123 enum class PlaceHolder { _0, _1, _2, _3, _4, Handle = 128, LastStmt }; enumerator
326 if (PH == PlaceHolder::LastStmt) { in convertPlaceholder()
328 Stmt *LastStmt = StmtsList.pop_back_val(); in convertPlaceholder() local
329 assert(isa<ValueStmt>(LastStmt) && "last statement does not have a value"); in convertPlaceholder()
330 return cast<ValueStmt>(LastStmt)->getExprStmt(); in convertPlaceholder()
647 .assign(PH::Handle, PH::LastStmt) in addDefaultHandleConstructor()
668 .assign(PH::Handle, PH::LastStmt) in addHandleConstructorFromBinding()
690 .assign(PH::Handle, PH::LastStmt) in addHandleConstructorFromImplicitBinding()
833 .dereference(PH::LastStmt) in addHandleAccessFunction()
849 PH::LastStmt) in addAppendMethod()
[all …]
H A DAnalysisBasedWarnings.cpp845 const Stmt *LastStmt = CS->body_back(); in CheckFallThroughForBody() local
847 if (const auto *EWC = dyn_cast<ExprWithCleanups>(LastStmt)) { in CheckFallThroughForBody()
848 LastStmt = EWC->getSubExpr(); in CheckFallThroughForBody()
850 if (const auto *CE = dyn_cast<CallExpr>(LastStmt)) { in CheckFallThroughForBody()
857 if (isa<CXXThrowExpr>(LastStmt)) { in CheckFallThroughForBody()
1313 const Stmt *LastStmt = getLastStmt(*P); in checkFallThroughIntoBlock() local
1314 if (const AttributedStmt *AS = asFallThroughAttr(LastStmt)) { in checkFallThroughIntoBlock()
1320 if (!LastStmt) { // This block contains no executable statements. in checkFallThroughIntoBlock()
H A DSemaStmt.cpp2216 Stmt *LastStmt = CS->body_back(); in CheckForRedundantIteration() local
2217 if (!LastStmt) return; in CheckForRedundantIteration()
2227 if (!ProcessIterationStmt(S, LastStmt, LastIncrement, LastDRE)) return; in CheckForRedundantIteration()
H A DSemaExpr.cpp16025 if (const auto *LastStmt = in BuildStmtExpr() local
16027 if (const Expr *Value = LastStmt->getExprStmt()) { in BuildStmtExpr()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp299 if (std::optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge() local
300 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()); in HandleBlockEdge()
H A DExprEngine.cpp2729 const Stmt *LastStmt = CS->getStmt(); in ResolveCondition() local
2730 assert(LastStmt == Condition || LastStmt == getRightmostLeaf(Condition)); in ResolveCondition()
2731 return LastStmt; in ResolveCondition()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp1485 const Stmt *LastStmt = nullptr; in VisitStmt() local
1493 if (LastStmt && HasTerminateStmt) { in VisitStmt()
1494 auto Gap = findGapAreaBetween(getEnd(LastStmt), getStart(Child)); in VisitStmt()
1502 LastStmt = Child; in VisitStmt()
H A DCodeGenFunction.cpp696 auto LastStmt = CS->body_rbegin(); in endsWithReturn() local
697 if (LastStmt != CS->body_rend()) in endsWithReturn()
698 return isa<ReturnStmt>(*LastStmt); in endsWithReturn()