| /llvm-project-15.0.7/clang/unittests/Analysis/ |
| H A D | CFGTest.cpp | 130 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 D | UnreachableCodeChecker.cpp | 132 if (Optional<CFGStmt> S = (*ci).getAs<CFGStmt>()) in checkEndAnalysis() 202 if (Optional<CFGStmt> S = I->getAs<CFGStmt>()) { in getUnreachableStmt()
|
| H A D | AnalyzerStatsChecker.cpp | 126 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) { in checkEndAnalysis()
|
| H A D | MallocOverflowSecurityChecker.cpp | 311 if (Optional<CFGStmt> CS = bi->getAs<CFGStmt>()) { in checkASTCodeBody()
|
| H A D | AnalysisOrderChecker.cpp | 168 if (LastElement.getAs<CFGStmt>()) in checkEndFunction()
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/ |
| H A D | TypeErasedDataflowAnalysis.cpp | 250 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 D | ControlFlowContext.cpp | 35 auto Stmt = Element.getAs<CFGStmt>(); in buildStmtToBasicBlockMap()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | CFGStmtMap.cpp | 52 Optional<CFGStmt> CS = CE.getAs<CFGStmt>(); in Accumulate()
|
| H A D | ReachableCode.cpp | 76 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 D | ThreadSafety.cpp | 778 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 D | Consumed.cpp | 65 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 D | CalledOnceCheck.cpp | 756 if (Optional<CFGStmt> S = Element.getAs<CFGStmt>()) { in check() 1268 if (Optional<CFGStmt> S = Element.getAs<CFGStmt>()) { in isPossiblyEmptyImpl()
|
| H A D | LiveVariables.cpp | 499 if (!elem.getAs<CFGStmt>()) in runOnBlock() 502 const Stmt *S = elem.castAs<CFGStmt>().getStmt(); in runOnBlock()
|
| H A D | UninitializedValues.cpp | 864 if (Optional<CFGStmt> cs = I.getAs<CFGStmt>()) in runOnBlock()
|
| H A D | PathDiagnostic.cpp | 533 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller() 715 if (auto StmtElt = BlockFront->getAs<CFGStmt>()) { in create()
|
| H A D | CFG.cpp | 5356 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 D | UseAfterMoveCheck.cpp | 262 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 D | ExprSequence.cpp | 191 if (Optional<CFGStmt> S = Elem.getAs<CFGStmt>()) in StmtToBlockMap()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/ |
| H A D | CFG.h | 132 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 D | CoreEngine.cpp | 276 if (Optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge() 575 CFGStmt CS = (*Block)[Idx].castAs<CFGStmt>(); in enqueueStmtNode()
|
| H A D | ExprEngineC.cpp | 722 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 D | TypeErasedDataflowAnalysis.h | 131 std::function<void(const CFGStmt &,
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | AnalysisBasedWarnings.cpp | 194 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 D | TestingSupport.h | 183 &Annotations](const clang::CFGStmt &Stmt,
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/ |
| H A D | ThreadSafetyCommon.h | 208 V.handleStatement(BI.castAs<CFGStmt>().getStmt()); in walk()
|