Home
last modified time | relevance | path

Searched refs:getStmt (Results 1 – 25 of 42) sorted by relevance

12

/external/clang/include/clang/Analysis/
DCFG.h119 const Stmt *getStmt() const { in getStmt() function
310 Stmt *getStmt() { return Data.getPointer(); } in getStmt() function
311 const Stmt *getStmt() const { return Data.getPointer(); } in getStmt() function
315 operator Stmt *() { return getStmt(); }
316 operator const Stmt *() const { return getStmt(); }
318 Stmt *operator->() { return getStmt(); }
319 const Stmt *operator->() const { return getStmt(); }
321 Stmt &operator*() { return *getStmt(); }
322 const Stmt &operator*() const { return *getStmt(); }
324 explicit operator bool() const { return getStmt(); }
[all …]
DProgramPoint.h247 const Stmt *getStmt() const { return (const Stmt*) getData1(); } in getStmt() function
250 const T* getStmtAs() const { return dyn_cast<T>(getStmt()); } in getStmtAs()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DEnvironment.h39 const Stmt *getStmt() const { return first; } in getStmt() function
45 ID.AddPointer(E.getStmt()); in Profile()
DSymbolManager.h169 const Stmt *getStmt() const { return S; } in getStmt() function
279 const Stmt *getStmt() const { return S; } in getStmt() function
/external/clang/lib/StaticAnalyzer/Core/
DEnvironment.cpp71 const Stmt *S = Entry.getStmt(); in getSVal()
170 if (SymReaper.isLive(BlkExpr.getStmt(), BlkExpr.getLocationContext())) { in removeDeadBindings()
204 const Stmt *S = En.getStmt(); in print()
DBugReporterVisitors.cpp86 const Stmt *S = N->getLocationAs<PreStmt>()->getStmt(); in GetDenomExpr()
93 const Stmt *S = N->getLocationAs<PostStmt>()->getStmt(); in GetRetValExpr()
179 if (SP->getStmt() == S) in addVisitorIfNecessary()
242 const ReturnStmt *Ret = dyn_cast<ReturnStmt>(SP->getStmt()); in visitNodeInitial()
548 const Stmt *S = PS->getStmt(); in VisitNode()
921 if (ps->getStmt() == S || ps->getStmt() == Inner) in trackNullOrUndefValue()
954 if (P->getStmt() == Inner) in trackNullOrUndefValue()
1073 const Stmt *S = P->getStmt(); in VisitNode()
1195 return VisitTrueTest(cast<Expr>(PS->getStmt()), true, in VisitNodeImpl()
1198 return VisitTrueTest(cast<Expr>(PS->getStmt()), false, in VisitNodeImpl()
DExprEngineCXX.cpp117 auto *DS = cast<DeclStmt>(StmtElem->getStmt()); in getRegionForConstructedObject()
165 if (isa<DeclStmt>(StmtElem->getStmt())) { in canHaveDirectConstructor()
183 assert(isa<CXXConstructExpr>(((*B)[currStmtIdx]).castAs<CFGStmt>().getStmt())); in findElementDirectlyInitializedByCurrentConstructor()
225 if (auto *CtorExpr = dyn_cast<CXXConstructExpr>(PrevStmtElem->getStmt())) { in findDirectConstructorForCurrentCFGElement()
DExplodedGraph.cpp133 const Expr *Ex = dyn_cast<Expr>(progPoint.castAs<PostStmt>().getStmt()); in shouldCollect()
154 if (CallEvent::isCallStmt(SP->getStmt())) in shouldCollect()
DPathDiagnostic.cpp550 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller()
671 S = SP->getStmt(); in create()
694 const Stmt *PathDiagnosticLocation::getStmt(const ExplodedNode *N) { in getStmt() function in PathDiagnosticLocation
697 return SP->getStmt(); in getStmt()
712 if (const Stmt *S = getStmt(N)) { in getNextStmt()
741 const Stmt *S = getStmt(N); in createEndOfPath()
DExprEngine.cpp296 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred); in processCFGElement()
329 if (!isa<Expr>(S.getStmt())) in shouldRemoveDeadBindings()
333 if (CallEvent::isCallStmt(S.getStmt())) in shouldRemoveDeadBindings()
339 return !PM.isConsumedExpr(cast<Expr>(S.getStmt())); in shouldRemoveDeadBindings()
429 const Stmt *currStmt = S.getStmt(); in ProcessStmt()
1364 if (SP->getStmt() == CE) in replayWithoutInlining()
1555 const Stmt *LastStmt = CS->getStmt(); in ResolveCondition()
2383 if (!P.getAs<PostStmt>() || P.castAs<PostStmt>().getStmt() != Ex) { in evalEagerlyAssumeBinOpBifurcation()
2644 const Stmt *S = Loc.castAs<StmtPoint>().getStmt(); in getNodeLabel()
DBugReporter.cpp59 if (const Stmt *S = PathDiagnosticLocation::getStmt(N)) in GetPreviousStmt()
67 if (const Stmt *S = PathDiagnosticLocation::getStmt(N)) in GetCurrentOrPreviousStmt()
1341 const Stmt *S = SP->getStmt(); in getStmtBeforeCond()
1547 const Stmt *stmt = S->getStmt(); in GenerateExtensivePathDiagnostic()
1752 if (!isa<ObjCForCollectionStmt>(PS->getStmt())) { in GenerateAlternateExtensivePathDiagnostic()
1754 PathDiagnosticLocation(PS->getStmt(), SM, PDB.LC); in GenerateAlternateExtensivePathDiagnostic()
2683 const Stmt *BugReport::getStmt() const { in getStmt() function in BugReport
2696 S = PathDiagnosticLocation::getStmt(ErrorNode); in getStmt()
2705 if (const Expr *E = dyn_cast_or_null<Expr>(getStmt())) in getRanges()
DCoreEngine.cpp352 cast<CXXBindTemporaryExpr>(B->getTerminator().getStmt()), B, Pred); in HandleBlockExit()
559 PostStmt Loc(CS.getStmt(), N->getLocationContext()); in enqueueStmtNode()
DExprEngineC.cpp568 if (const BinaryOperator *Term = cast_or_null<BinaryOperator>(T.getStmt())) { in VisitLogicalExpr()
582 const Expr *RHS = cast<Expr>(Elem.getStmt()); in VisitLogicalExpr()
693 const Expr *ValEx = cast<Expr>(CS->getStmt()); in VisitGuardedExpr()
/external/clang/lib/Sema/
DJumpDiagnostics.cpp529 if (GS->getLabel()->getStmt()) { in VerifyJumps()
530 CheckJump(GS, GS->getLabel()->getStmt(), GS->getGotoLoc(), in VerifyJumps()
542 CheckJump(IGS, Target->getStmt(), IGS->getGotoLoc(), in VerifyJumps()
627 if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(TheLabel->getStmt()))) in VerifyIndirectJumps()
629 unsigned LabelScope = LabelAndGotoScopes[TheLabel->getStmt()]; in VerifyIndirectJumps()
727 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target); in DiagnoseIndirectJumpStmt()
773 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target); in DiagnoseIndirectJump()
/external/clang/lib/StaticAnalyzer/Checkers/
DUnreachableCodeChecker.cpp138 if (const CallExpr *CE = dyn_cast<CallExpr>(S->getStmt())) { in checkEndAnalysis()
199 return S->getStmt(); in getUnreachableStmt()
DUndefBranchChecker.cpp92 if (PS->getStmt() == Ex) in checkBranchCondition()
DAnalyzerStatsChecker.cpp133 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
DMallocChecker.cpp84 const Stmt *getStmt() const { return S; } in getStmt() function in __anon9d32c3be0111::RefState
94 return RefState(AllocatedOfSizeZero, RS->getStmt(), in getAllocatedOfSizeZero()
104 return RefState(Escaped, RS->getStmt(), RS->getAllocationFamily()); in getEscaped()
1416 const Expr *AllocExpr = cast<Expr>(RsBase->getStmt()); in FreeMemAux()
1681 const Expr *AllocExpr = cast<Expr>(RS->getStmt()); in ReportMismatchedDealloc()
2095 AllocationStmt = SP->getStmt(); in reportLeak()
2307 ReportUseZeroAllocated(C, RS->getStmt()->getSourceRange(), Sym); in checkUseZeroAllocated()
2362 RefState::getAllocated(RS->getAllocationFamily(), RS->getStmt())); in evalAssume()
2619 S = SP->getStmt(); in VisitNode()
DDynamicTypeChecker.cpp113 S = SP->getStmt(); in VisitNode()
DMacOSKeychainAPIChecker.cpp540 AllocStmt = PS->getStmt(); in generateAllocatedDataNotReleasedReport()
615 cast<CallExpr>(N->getLocation().castAs<StmtPoint>().getStmt()); in VisitNode()
DMallocOverflowSecurityChecker.cpp309 if (const CallExpr *TheCall = dyn_cast<CallExpr>(CS->getStmt())) { in checkASTCodeBody()
/external/clang/lib/Analysis/
DCFGStmtMap.cpp57 CFGBlock *&Entry = SM[CS->getStmt()]; in Accumulate()
DReachableCode.cpp71 if (const ReturnStmt *RS = dyn_cast<ReturnStmt>(CS->getStmt())) { in isDeadReturn()
417 const Stmt *S = CS->getStmt(); in findDeadCode()
424 const Stmt *S = T.getStmt(); in findDeadCode()
DConsumed.cpp62 return CS->getStmt()->getLocStart(); in getFirstStmtLoc()
81 return CS->getStmt()->getLocStart(); in getLastStmtLoc()
1263 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) { in splitState()
1287 dyn_cast_or_null<BinaryOperator>(CurrBlock->getTerminator().getStmt())) { in splitState()
1381 Visitor.Visit(B.castAs<CFGStmt>().getStmt()); in run()
DLiveVariables.cpp465 const Stmt *S = elem.castAs<CFGStmt>().getStmt(); in runOnBlock()
519 dyn_cast<BinaryOperator>(cs->getStmt())) { in computeLiveness()

12