Home
last modified time | relevance | path

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

123

/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 …]
/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.cpp87 const Stmt *S = N->getLocationAs<PreStmt>()->getStmt(); in GetDenomExpr()
94 const Stmt *S = N->getLocationAs<PostStmt>()->getStmt(); in GetRetValExpr()
180 if (SP->getStmt() == S) in addVisitorIfNecessary()
243 const ReturnStmt *Ret = dyn_cast<ReturnStmt>(SP->getStmt()); in visitNodeInitial()
552 const Stmt *S = PS->getStmt(); in VisitNode()
849 SourceLocation BugLoc = BugPoint->getStmt()->getLocStart(); in VisitNode()
856 CurTerminatorStmt = BE->getSrc()->getTerminator().getStmt(); in VisitNode()
858 const Stmt *CurStmt = SP->getStmt(); in VisitNode()
979 if (ps->getStmt() == S || ps->getStmt() == Inner) in trackNullOrUndefValue()
1012 if (P->getStmt() == Inner) in trackNullOrUndefValue()
[all …]
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()
DPathDiagnostic.cpp548 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller()
666 S = SP->getStmt(); in create()
689 const Stmt *PathDiagnosticLocation::getStmt(const ExplodedNode *N) { in getStmt() function in PathDiagnosticLocation
692 return SP->getStmt(); in getStmt()
707 if (const Stmt *S = getStmt(N)) { in getNextStmt()
736 const Stmt *S = getStmt(N); in createEndOfPath()
DExplodedGraph.cpp133 const Expr *Ex = dyn_cast<Expr>(progPoint.castAs<PostStmt>().getStmt()); in shouldCollect()
154 if (CallEvent::isCallStmt(SP->getStmt())) in shouldCollect()
DExprEngine.cpp297 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred); in processCFGElement()
330 if (!isa<Expr>(S.getStmt())) in shouldRemoveDeadBindings()
334 if (CallEvent::isCallStmt(S.getStmt())) in shouldRemoveDeadBindings()
340 return !PM.isConsumedExpr(cast<Expr>(S.getStmt())); in shouldRemoveDeadBindings()
430 const Stmt *currStmt = S.getStmt(); in ProcessStmt()
1380 if (SP->getStmt() == CE) in replayWithoutInlining()
1571 const Stmt *LastStmt = CS->getStmt(); in ResolveCondition()
2445 if (!P.getAs<PostStmt>() || P.castAs<PostStmt>().getStmt() != Ex) { in evalEagerlyAssumeBinOpBifurcation()
2706 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.cpp364 cast<CXXBindTemporaryExpr>(B->getTerminator().getStmt()), B, Pred); in HandleBlockExit()
576 PostStmt Loc(CS.getStmt(), N->getLocationContext()); in enqueueStmtNode()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DEnvironment.h40 const Stmt *getStmt() const { return first; } in getStmt() function
46 ID.AddPointer(E.getStmt()); in Profile()
DSymbolManager.h86 const Stmt *getStmt() const { return S; } in getStmt() function
197 const Stmt *getStmt() const { return S; } in getStmt() function
/external/clang/lib/Sema/
DJumpDiagnostics.cpp583 if (GS->getLabel()->getStmt()) { in VerifyJumps()
584 CheckJump(GS, GS->getLabel()->getStmt(), GS->getGotoLoc(), in VerifyJumps()
596 CheckJump(IGS, Target->getStmt(), IGS->getGotoLoc(), in VerifyJumps()
681 if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(TheLabel->getStmt()))) in VerifyIndirectJumps()
683 unsigned LabelScope = LabelAndGotoScopes[TheLabel->getStmt()]; in VerifyIndirectJumps()
781 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target); in DiagnoseIndirectJumpStmt()
827 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target); in DiagnoseIndirectJump()
/external/clang/lib/StaticAnalyzer/Checkers/
DUnreachableCodeChecker.cpp134 if (const CallExpr *CE = dyn_cast<CallExpr>(S->getStmt())) { in checkEndAnalysis()
195 return S->getStmt(); in getUnreachableStmt()
DUndefBranchChecker.cpp93 if (PS->getStmt() == Ex) in checkBranchCondition()
DAnalyzerStatsChecker.cpp133 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
DMallocChecker.cpp85 const Stmt *getStmt() const { return S; } in getStmt() function in __anon42261f860111::RefState
95 return RefState(AllocatedOfSizeZero, RS->getStmt(), in getAllocatedOfSizeZero()
105 return RefState(Escaped, RS->getStmt(), RS->getAllocationFamily()); in getEscaped()
1424 const Expr *AllocExpr = cast<Expr>(RsBase->getStmt()); in FreeMemAux()
1689 const Expr *AllocExpr = cast<Expr>(RS->getStmt()); in ReportMismatchedDealloc()
2103 AllocationStmt = SP->getStmt(); in reportLeak()
2315 ReportUseZeroAllocated(C, RS->getStmt()->getSourceRange(), Sym); in checkUseZeroAllocated()
2370 RefState::getAllocated(RS->getAllocationFamily(), RS->getStmt())); in evalAssume()
2637 S = SP->getStmt(); in VisitNode()
DDynamicTypeChecker.cpp113 S = SP->getStmt(); in VisitNode()
DMacOSKeychainAPIChecker.cpp532 AllocStmt = PS->getStmt(); in generateAllocatedDataNotReleasedReport()
607 cast<CallExpr>(N->getLocation().castAs<StmtPoint>().getStmt()); in VisitNode()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/stmt/
DLabeledStmt.java63 public Statement getStmt() { in getStmt() method in LabeledStmt
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/stmt/
DLabeledStmt.java63 public Statement getStmt() { in getStmt() method in LabeledStmt
/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()
1269 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) { in splitState()
1293 dyn_cast_or_null<BinaryOperator>(CurrBlock->getTerminator().getStmt())) { in splitState()
1387 Visitor.Visit(B.castAs<CFGStmt>().getStmt()); in run()
/external/v8/tools/clang/base_bind_rewriters/
DBaseBindRewriters.cpp286 top_stmts_.insert(stmt->getStmt()); in ExtractCFGContentToMembers()
306 recursive_set_enclosing(block, stmt->getStmt()); in ExtractCFGContentToMembers()
541 if (!visit_stmt(s->getStmt())) { in ForEachFollowingStmts()
/external/clang/include/clang/StaticAnalyzer/Checkers/
DSValExplainer.h102 "' conjured at statement '" + printStmt(S->getStmt()) + "'"; in VisitSymbolConjured()

123