Home
last modified time | relevance | path

Searched refs:CFGStmt (Results 1 – 25 of 28) sorted by relevance

12

/llvm-project-15.0.7/clang/unittests/Analysis/
H A DCFGTest.cpp130 EXPECT_TRUE(ElementRef->getAs<CFGStmt>()); in TEST()
131 EXPECT_TRUE((*ElementRef).getAs<CFGStmt>()); in TEST()
154 EXPECT_TRUE(ElementRef->getAs<CFGStmt>()); in TEST()
155 EXPECT_TRUE((*ElementRef).getAs<CFGStmt>()); in TEST()
178 EXPECT_TRUE(ElementRef->getAs<CFGStmt>()); in TEST()
179 EXPECT_TRUE((*ElementRef).getAs<CFGStmt>()); in TEST()
201 EXPECT_TRUE(ElementRef->getAs<CFGStmt>()); in TEST()
202 EXPECT_TRUE((*ElementRef).getAs<CFGStmt>()); in TEST()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DUnreachableCodeChecker.cpp132 if (Optional<CFGStmt> S = (*ci).getAs<CFGStmt>()) in checkEndAnalysis()
202 if (Optional<CFGStmt> S = I->getAs<CFGStmt>()) { in getUnreachableStmt()
H A DAnalyzerStatsChecker.cpp126 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) { in checkEndAnalysis()
H A DMallocOverflowSecurityChecker.cpp311 if (Optional<CFGStmt> CS = bi->getAs<CFGStmt>()) { in checkASTCodeBody()
H A DAnalysisOrderChecker.cpp168 if (LastElement.getAs<CFGStmt>()) in checkEndFunction()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysis.cpp250 const CFGStmt &CfgStmt, TypeErasedDataflowAnalysis &Analysis, in transferCFGStmt()
252 std::function<void(const CFGStmt &, in transferCFGStmt() argument
309 std::function<void(const CFGStmt &, in transferBlock() argument
317 transferCFGStmt(CFCtx, BlockStates, *Element.getAs<CFGStmt>(), Analysis, in transferBlock()
403 [&PostVisitStmt](const clang::CFGStmt &Stmt, in runTypeErasedDataflowAnalysis()
H A DControlFlowContext.cpp35 auto Stmt = Element.getAs<CFGStmt>(); in buildStmtToBasicBlockMap()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCFGStmtMap.cpp52 Optional<CFGStmt> CS = CE.getAs<CFGStmt>(); in Accumulate()
H A DReachableCode.cpp76 if (Optional<CFGStmt> CS = B->back().getAs<CFGStmt>()) { in isBuiltinAssumeFalse()
91 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) { in isDeadReturn()
458 if (Optional<CFGStmt> CS = I->getAs<CFGStmt>()) { in findDeadCode()
H A DThreadSafety.cpp778 CFGStmt CS = BI.castAs<CFGStmt>(); in traverseCFG()
823 if (Optional<CFGStmt> CS = BI->getAs<CFGStmt>()) { in findBlockLocations()
835 if (Optional<CFGStmt> CS = BI.getAs<CFGStmt>()) { in findBlockLocations()
2220 if (Optional<CFGStmt> S = Last.getAs<CFGStmt>()) { in neverReturns()
2403 CFGStmt CS = BI.castAs<CFGStmt>(); in runAnalysis()
H A DConsumed.cpp65 if (Optional<CFGStmt> CS = B.getAs<CFGStmt>()) in getFirstStmtLoc()
84 if (Optional<CFGStmt> CS = BI->getAs<CFGStmt>()) in getLastStmtLoc()
1345 Visitor.Visit(B.castAs<CFGStmt>().getStmt()); in run()
H A DCalledOnceCheck.cpp756 if (Optional<CFGStmt> S = Element.getAs<CFGStmt>()) { in check()
1268 if (Optional<CFGStmt> S = Element.getAs<CFGStmt>()) { in isPossiblyEmptyImpl()
H A DLiveVariables.cpp499 if (!elem.getAs<CFGStmt>()) in runOnBlock()
502 const Stmt *S = elem.castAs<CFGStmt>().getStmt(); in runOnBlock()
H A DUninitializedValues.cpp864 if (Optional<CFGStmt> cs = I.getAs<CFGStmt>()) in runOnBlock()
H A DPathDiagnostic.cpp533 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller()
715 if (auto StmtElt = BlockFront->getAs<CFGStmt>()) { in create()
H A DCFG.cpp5356 if (Optional<CFGStmt> SE = BI->getAs<CFGStmt>()) { in StmtPrinterHelper()
5691 CFGStmt CS = E.castAs<CFGStmt>(); in print_elem()
6105 if (Optional<CFGStmt> StmtElm = Elm.getAs<CFGStmt>()) in isImmediateSinkBlock()
6168 auto StmtElem = rbegin()->getAs<CFGStmt>(); in getLastCondition()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUseAfterMoveCheck.cpp262 Optional<CFGStmt> S = Elem.getAs<CFGStmt>(); in getDeclRefs()
358 Optional<CFGStmt> S = Elem.getAs<CFGStmt>(); in getReinits()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DExprSequence.cpp191 if (Optional<CFGStmt> S = Elem.getAs<CFGStmt>()) in StmtToBlockMap()
/llvm-project-15.0.7/clang/include/clang/Analysis/
H A DCFG.h132 class CFGStmt : public CFGElement {
134 explicit CFGStmt(Stmt *S, Kind K = Statement) : CFGElement(K, S) { in CFGElement()
150 CFGStmt() = default;
156 class CFGConstructor : public CFGStmt {
159 : CFGStmt(CE, Constructor) { in CFGConstructor()
184 class CFGCXXRecordTypedCall : public CFGStmt {
198 : CFGStmt(E, CXXRecordTypedCall) { in CFGCXXRecordTypedCall()
1097 Elements.push_back(CFGStmt(statement), C); in appendStmt()
1402 if (Optional<CFGStmt> stmt = BI->getAs<CFGStmt>()) in VisitBlockStmts()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp276 if (Optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge()
575 CFGStmt CS = (*Block)[Idx].castAs<CFGStmt>(); in enqueueStmtNode()
H A DExprEngineC.cpp722 CFGStmt Elem = SrcBlock->rbegin()->castAs<CFGStmt>(); in VisitLogicalExpr()
826 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) { in VisitGuardedExpr()
/llvm-project-15.0.7/clang/include/clang/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysis.h131 std::function<void(const CFGStmt &,
/llvm-project-15.0.7/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp194 const CallExpr *CE = dyn_cast<CallExpr>(B.getAs<CFGStmt>()->getStmt()); in hasRecursiveCallInPath()
329 Optional<CFGStmt> S = E.getAs<CFGStmt>(); in visitReachableThrows()
461 if (ri->getAs<CFGStmt>()) in CheckFallThrough()
476 CFGStmt CS = ri->castAs<CFGStmt>(); in CheckFallThrough()
1116 if (Optional<CFGStmt> CS = Elem.getAs<CFGStmt>()) { in checkFallThroughIntoBlock()
1201 if (Optional<CFGStmt> CS = Elem.getAs<CFGStmt>()) in getLastStmt()
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DTestingSupport.h183 &Annotations](const clang::CFGStmt &Stmt,
/llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyCommon.h208 V.handleStatement(BI.castAs<CFGStmt>().getStmt()); in walk()

12