Home
last modified time | relevance | path

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

12

/external/llvm-project/clang/unittests/Analysis/
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()
/external/clang/lib/StaticAnalyzer/Checkers/
DUnreachableCodeChecker.cpp133 if (Optional<CFGStmt> S = (*ci).getAs<CFGStmt>()) in checkEndAnalysis()
194 if (Optional<CFGStmt> S = I->getAs<CFGStmt>()) in getUnreachableStmt()
DAnalyzerStatsChecker.cpp126 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) { in checkEndAnalysis()
DMallocOverflowSecurityChecker.cpp308 if (Optional<CFGStmt> CS = bi->getAs<CFGStmt>()) { in checkASTCodeBody()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DUnreachableCodeChecker.cpp132 if (Optional<CFGStmt> S = (*ci).getAs<CFGStmt>()) in checkEndAnalysis()
202 if (Optional<CFGStmt> S = I->getAs<CFGStmt>()) { in getUnreachableStmt()
DAnalyzerStatsChecker.cpp127 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) { in checkEndAnalysis()
DMallocOverflowSecurityChecker.cpp310 if (Optional<CFGStmt> CS = bi->getAs<CFGStmt>()) { in checkASTCodeBody()
/external/llvm-project/clang/lib/Analysis/
DCFGStmtMap.cpp52 Optional<CFGStmt> CS = CE.getAs<CFGStmt>(); in Accumulate()
DReachableCode.cpp76 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()
DLiveVariables.cpp473 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()
DThreadSafety.cpp779 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()
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()
/external/clang/lib/Analysis/
DCFGStmtMap.cpp53 Optional<CFGStmt> CS = CE.getAs<CFGStmt>(); in Accumulate()
DReachableCode.cpp70 if (Optional<CFGStmt> CS = I->getAs<CFGStmt>()) { in isDeadReturn()
416 if (Optional<CFGStmt> CS = I->getAs<CFGStmt>()) { in findDeadCode()
DLiveVariables.cpp462 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()
DThreadSafety.cpp740 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()
DConsumed.cpp61 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/
DExprEngineCXX.cpp116 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/
DUseAfterMoveCheck.cpp255 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/
DExprSequence.cpp192 if (Optional<CFGStmt> S = Elem.getAs<CFGStmt>()) in StmtToBlockMap()
/external/llvm-project/clang/include/clang/Analysis/
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()
1096 Elements.push_back(CFGStmt(statement), C); in appendStmt()
1384 if (Optional<CFGStmt> stmt = BI->getAs<CFGStmt>()) in VisitBlockStmts()
/external/clang/include/clang/Analysis/
DCFG.h115 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/
DCoreEngine.cpp246 if (Optional<CFGStmt> LastStmt = LastElement.getAs<CFGStmt>()) { in HandleBlockEdge()
544 CFGStmt CS = (*Block)[Idx].castAs<CFGStmt>(); in enqueueStmtNode()
/external/llvm-project/clang/lib/Sema/
DAnalysisBasedWarnings.cpp192 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/
DAnalysisBasedWarnings.cpp174 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()

12