Home
last modified time | relevance | path

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

12

/external/clang/include/clang/Analysis/
DCFG.h110 const Stmt *getStmt() const { in getStmt() function
258 Stmt *getStmt() { return Data.getPointer(); } in getStmt() function
259 const Stmt *getStmt() const { return Data.getPointer(); } in getStmt() function
263 operator Stmt *() { return getStmt(); }
264 operator const Stmt *() const { return getStmt(); }
266 Stmt *operator->() { return getStmt(); }
267 const Stmt *operator->() const { return getStmt(); }
269 Stmt &operator*() { return *getStmt(); }
270 const Stmt &operator*() const { return *getStmt(); }
272 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.cpp70 const Stmt *S = Entry.getStmt(); in getSVal()
196 if (SymReaper.isLive(BlkExpr.getStmt(), BlkExpr.getLocationContext())) { in removeDeadBindings()
234 const Stmt *S = En.getStmt(); in print()
DBugReporterVisitors.cpp79 const Stmt *S = N->getLocationAs<PreStmt>()->getStmt(); in GetDenomExpr()
86 const Stmt *S = N->getLocationAs<PostStmt>()->getStmt(); in GetRetValExpr()
175 if (SP->getStmt() == S) in addVisitorIfNecessary()
237 const ReturnStmt *Ret = dyn_cast<ReturnStmt>(SP->getStmt()); in visitNodeInitial()
505 const Stmt *S = PS->getStmt(); in VisitNode()
820 if (ps->getStmt() == S || ps->getStmt() == Inner) in trackNullOrUndefValue()
846 if (P->getStmt() == Inner) in trackNullOrUndefValue()
1091 return VisitTrueTest(cast<Expr>(PS->getStmt()), true, in VisitNodeImpl()
1094 return VisitTrueTest(cast<Expr>(PS->getStmt()), false, in VisitNodeImpl()
1398 const Stmt *S = BR.getStmt(); in getEndPath()
DExplodedGraph.cpp132 const Expr *Ex = dyn_cast<Expr>(ps.getStmt()); in shouldCollect()
153 if (CallEvent::isCallStmt(SP->getStmt())) in shouldCollect()
DExprEngine.cpp254 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred); in processCFGElement()
283 if (!isa<Expr>(S.getStmt())) in shouldRemoveDeadBindings()
287 if (CallEvent::isCallStmt(S.getStmt())) in shouldRemoveDeadBindings()
293 return !PM.isConsumedExpr(cast<Expr>(S.getStmt())); in shouldRemoveDeadBindings()
383 const Stmt *currStmt = S.getStmt(); in ProcessStmt()
1094 if (SP->getStmt() == CE) in replayWithoutInlining()
1236 if (CS->getStmt() != Condition) in ResolveCondition()
1986 if (!P.getAs<PostStmt>() || P.castAs<PostStmt>().getStmt() != Ex) { in evalEagerlyAssumeBinOpBifurcation()
2166 const Stmt *S = L->getStmt(); in getNodeLabel()
DExprEngineC.cpp542 if (const BinaryOperator *Term = cast_or_null<BinaryOperator>(T.getStmt())) { in VisitLogicalExpr()
556 const Expr *RHS = cast<Expr>(Elem.getStmt()); in VisitLogicalExpr()
663 const Expr *ValEx = cast<Expr>(CS->getStmt()); in VisitGuardedExpr()
DPathDiagnostic.cpp480 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller()
588 S = SP->getStmt(); in create()
619 S = PS->getStmt(); in createEndOfPath()
DBugReporter.cpp57 return SP->getStmt(); in GetStmt()
1339 const Stmt *S = SP->getStmt(); in getStmtBeforeCond()
1538 const Stmt *stmt = S->getStmt(); in GenerateExtensivePathDiagnostic()
1748 const Stmt *BugReport::getStmt() const { in getStmt() function in BugReport
1771 if (const Expr *E = dyn_cast_or_null<Expr>(getStmt())) in getRanges()
/external/clang/lib/Sema/
DJumpDiagnostics.cpp493 CheckJump(GS, GS->getLabel()->getStmt(), GS->getGotoLoc(), in VerifyJumps()
503 CheckJump(IGS, Target->getStmt(), IGS->getGotoLoc(), in VerifyJumps()
587 assert(LabelAndGotoScopes.count(TheLabel->getStmt()) && in VerifyIndirectJumps()
589 unsigned LabelScope = LabelAndGotoScopes[TheLabel->getStmt()]; in VerifyIndirectJumps()
687 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target); in DiagnoseIndirectJumpStmt()
731 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target); in DiagnoseIndirectJump()
/external/clang/lib/StaticAnalyzer/Checkers/
DUnreachableCodeChecker.cpp135 if (const CallExpr *CE = dyn_cast<CallExpr>(S->getStmt())) { in checkEndAnalysis()
193 return S->getStmt(); in getUnreachableStmt()
DUndefBranchChecker.cpp94 if (PS->getStmt() == Ex) in checkBranchCondition()
DAnalyzerStatsChecker.cpp133 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
DIdempotentOperationChecker.cpp336 C.getPredecessor()->getLocation().castAs<StmtPoint>().getStmt(); in checkPostStmt()
586 B = CBM->getBlock(SP->getStmt()); in pathWasCompletelyAnalyzed()
DMallocOverflowSecurityChecker.cpp240 if (const CallExpr *TheCall = dyn_cast<CallExpr>(CS->getStmt())) { in checkASTCodeBody()
DMacOSKeychainAPIChecker.cpp532 AllocStmt = PS->getStmt(); in generateAllocatedDataNotReleasedReport()
606 cast<CallExpr>(N->getLocation().castAs<StmtPoint>().getStmt()); in VisitNode()
DMallocChecker.cpp55 const Stmt *getStmt() const { return S; } in getStmt() function in __anon15b5c5a30111::RefState
1169 AllocationStmt = SP->getStmt(); in reportLeak()
1383 RefState::getAllocated(RS->getStmt())); in evalAssume()
1595 S = SP->getStmt(); in VisitNode()
/external/clang/lib/Analysis/
DCFGStmtMap.cpp57 CFGBlock *&Entry = SM[CS->getStmt()]; in Accumulate()
DReachableCode.cpp99 const Stmt *S = CS->getStmt(); in findDeadCode()
105 const Stmt *S = T.getStmt(); in findDeadCode()
DLiveVariables.cpp486 const Stmt *S = elem.castAs<CFGStmt>().getStmt(); in runOnBlock()
540 dyn_cast<BinaryOperator>(cs->getStmt())) { in computeLiveness()
DThreadSafety.cpp1354 VMapBuilder.Visit(const_cast<Stmt*>(CS.getStmt())); in traverseCFG()
1401 CurrBlockInfo->ExitLoc = CS->getStmt()->getLocStart(); in findBlockLocations()
1414 CurrBlockInfo->EntryLoc = CS->getStmt()->getLocStart(); in findBlockLocations()
2238 if (isa<CXXThrowExpr>(S->getStmt())) in neverReturns()
2448 LocksetBuilder.Visit(const_cast<Stmt*>(CS.getStmt())); in runAnalysis()
DCFG.cpp3409 FindSubExprAssignments(S->getStmt(), SubExprAssignments); in PopulateBlkExprMap()
3420 if (const Expr *Exp = dyn_cast<Expr>(CS->getStmt())) { in PopulateBlkExprMap()
3490 dyn_cast_or_null<SwitchStmt>(From->getTerminator().getStmt())) { in FilterEdge()
3534 const Stmt *stmt= SE->getStmt(); in StmtPrinterHelper()
3724 const Stmt *S = CS->getStmt(); in print_elem()
3907 TPrinter.Visit(const_cast<Stmt*>(B.getTerminator().getStmt())); in print_block()
4024 TPrinter.Visit(const_cast<Stmt*>(getTerminator().getStmt())); in printTerminator()
/external/clang/include/clang/Analysis/FlowSensitive/
DDataflowSolver.h281 ProcessStmt(S->getStmt(), recordStmtValues, AnalysisDirTag());
297 ProcessStmt(S->getStmt(), recordStmtValues, AnalysisDirTag());

12