/external/llvm-project/clang/unittests/Analysis/ |
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()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | UnreachableCodeChecker.cpp | 133 if (Optional<CFGStmt> S = (*ci).getAs<CFGStmt>()) in checkEndAnalysis() 194 if (Optional<CFGStmt> S = I->getAs<CFGStmt>()) in getUnreachableStmt()
|
D | AnalyzerStatsChecker.cpp | 126 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) { in checkEndAnalysis()
|
D | MallocOverflowSecurityChecker.cpp | 308 if (Optional<CFGStmt> CS = bi->getAs<CFGStmt>()) { in checkASTCodeBody()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | UnreachableCodeChecker.cpp | 132 if (Optional<CFGStmt> S = (*ci).getAs<CFGStmt>()) in checkEndAnalysis() 202 if (Optional<CFGStmt> S = I->getAs<CFGStmt>()) { in getUnreachableStmt()
|
D | AnalyzerStatsChecker.cpp | 127 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) { in checkEndAnalysis()
|
D | MallocOverflowSecurityChecker.cpp | 310 if (Optional<CFGStmt> CS = bi->getAs<CFGStmt>()) { in checkASTCodeBody()
|
/external/llvm-project/clang/lib/Analysis/ |
D | CFGStmtMap.cpp | 52 Optional<CFGStmt> CS = CE.getAs<CFGStmt>(); in Accumulate()
|
D | ReachableCode.cpp | 76 if (Optional<CFGStmt> CS = B->back().getAs<CFGStmt>()) { in isBuiltinAssumeFalse() 93 if (Optional<CFGStmt> CS = I->getAs<CFGStmt>()) { in isDeadReturn() 459 if (Optional<CFGStmt> CS = I->getAs<CFGStmt>()) { in findDeadCode()
|
D | LiveVariables.cpp | 473 if (!elem.getAs<CFGStmt>()) in runOnBlock() 476 const Stmt *S = elem.castAs<CFGStmt>().getStmt(); in runOnBlock() 527 if (Optional<CFGStmt> cs = bi->getAs<CFGStmt>()) { in computeLiveness()
|
D | ThreadSafety.cpp | 779 CFGStmt CS = BI.castAs<CFGStmt>(); in traverseCFG() 824 if (Optional<CFGStmt> CS = BI->getAs<CFGStmt>()) { in findBlockLocations() 836 if (Optional<CFGStmt> CS = BI.getAs<CFGStmt>()) { in findBlockLocations() 2260 if (Optional<CFGStmt> S = Last.getAs<CFGStmt>()) { in neverReturns() 2485 CFGStmt CS = BI.castAs<CFGStmt>(); in runAnalysis()
|
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()
|
/external/clang/lib/Analysis/ |
D | CFGStmtMap.cpp | 53 Optional<CFGStmt> CS = CE.getAs<CFGStmt>(); in Accumulate()
|
D | ReachableCode.cpp | 70 if (Optional<CFGStmt> CS = I->getAs<CFGStmt>()) { in isDeadReturn() 416 if (Optional<CFGStmt> CS = I->getAs<CFGStmt>()) { in findDeadCode()
|
D | LiveVariables.cpp | 462 if (!elem.getAs<CFGStmt>()) in runOnBlock() 465 const Stmt *S = elem.castAs<CFGStmt>().getStmt(); in runOnBlock() 517 if (Optional<CFGStmt> cs = bi->getAs<CFGStmt>()) { in computeLiveness()
|
D | ThreadSafety.cpp | 740 CFGStmt CS = BI->castAs<CFGStmt>(); in traverseCFG() 785 if (Optional<CFGStmt> CS = BI->getAs<CFGStmt>()) { in findBlockLocations() 798 if (Optional<CFGStmt> CS = BI->getAs<CFGStmt>()) { in findBlockLocations() 2075 if (Optional<CFGStmt> S = Last.getAs<CFGStmt>()) { in neverReturns() 2300 CFGStmt CS = BI->castAs<CFGStmt>(); in runAnalysis()
|
D | Consumed.cpp | 61 if (Optional<CFGStmt> CS = B.getAs<CFGStmt>()) in getFirstStmtLoc() 80 if (Optional<CFGStmt> CS = BI->getAs<CFGStmt>()) in getLastStmtLoc() 1387 Visitor.Visit(B.castAs<CFGStmt>().getStmt()); in run()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineCXX.cpp | 116 if (Optional<CFGStmt> StmtElem = Elem->getAs<CFGStmt>()) { in getRegionForConstructedObject() 164 if (Optional<CFGStmt> StmtElem = Elem.getAs<CFGStmt>()) { in canHaveDirectConstructor() 183 assert(isa<CXXConstructExpr>(((*B)[currStmtIdx]).castAs<CFGStmt>().getStmt())); in findElementDirectlyInitializedByCurrentConstructor() 224 if (Optional<CFGStmt> PrevStmtElem = Previous.getAs<CFGStmt>()) { in findDirectConstructorForCurrentCFGElement()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | UseAfterMoveCheck.cpp | 255 Optional<CFGStmt> S = Elem.getAs<CFGStmt>(); in getDeclRefs() 354 Optional<CFGStmt> S = Elem.getAs<CFGStmt>(); in getReinits()
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | ExprSequence.cpp | 192 if (Optional<CFGStmt> S = Elem.getAs<CFGStmt>()) in StmtToBlockMap()
|
/external/llvm-project/clang/include/clang/Analysis/ |
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() 1096 Elements.push_back(CFGStmt(statement), C); in appendStmt() 1384 if (Optional<CFGStmt> stmt = BI->getAs<CFGStmt>()) in VisitBlockStmts()
|
/external/clang/include/clang/Analysis/ |
D | CFG.h | 115 class CFGStmt : public CFGElement { 117 CFGStmt(Stmt *S) : CFGElement(Statement, S) {} in CFGStmt() function 125 CFGStmt() {} in CFGStmt() function 656 Elements.push_back(CFGStmt(statement), C); in appendStmt() 920 if (Optional<CFGStmt> stmt = BI->getAs<CFGStmt>()) in VisitBlockStmts()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | CoreEngine.cpp | 246 if (Optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge() 544 CFGStmt CS = (*Block)[Idx].castAs<CFGStmt>(); in enqueueStmtNode()
|
/external/llvm-project/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 192 const CallExpr *CE = dyn_cast<CallExpr>(B.getAs<CFGStmt>()->getStmt()); in hasRecursiveCallInPath() 327 Optional<CFGStmt> S = E.getAs<CFGStmt>(); in visitReachableThrows() 459 if (ri->getAs<CFGStmt>()) in CheckFallThrough() 474 CFGStmt CS = ri->castAs<CFGStmt>(); in CheckFallThrough() 1119 if (Optional<CFGStmt> CS = ElemIt->getAs<CFGStmt>()) { in checkFallThroughIntoBlock() 1206 if (Optional<CFGStmt> CS = ElemIt->getAs<CFGStmt>()) in getLastStmt()
|
/external/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 174 const CallExpr *CE = dyn_cast<CallExpr>(B.getAs<CFGStmt>()->getStmt()); in hasRecursiveCallInPath() 357 if (ri->getAs<CFGStmt>()) in CheckFallThrough() 371 CFGStmt CS = ri->castAs<CFGStmt>(); in CheckFallThrough() 976 if (Optional<CFGStmt> CS = ElemIt->getAs<CFGStmt>()) { in checkFallThroughIntoBlock() 1054 if (Optional<CFGStmt> CS = ElemIt->getAs<CFGStmt>()) in getLastStmt()
|