Home
last modified time | relevance | path

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

123

/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DConstructionContext.cpp75 ElidedCE = cast<CXXConstructExpr>(ElidedItem.getStmt()); in createMaterializedTemporaryFromLayers()
111 const auto *DS = cast<DeclStmt>(ParentItem.getStmt()); in createBoundTemporaryFromLayers()
121 const auto *RS = cast<ReturnStmt>(ParentItem.getStmt()); in createBoundTemporaryFromLayers()
130 const auto *MTE = cast<MaterializeTemporaryExpr>(ParentItem.getStmt()); in createBoundTemporaryFromLayers()
146 const auto *E = cast<Expr>(ParentItem.getStmt()); in createBoundTemporaryFromLayers()
174 const auto *DS = cast<DeclStmt>(TopItem.getStmt()); in createFromLayers()
179 const auto *NE = cast<CXXNewExpr>(TopItem.getStmt()); in createFromLayers()
184 const auto *RS = cast<ReturnStmt>(TopItem.getStmt()); in createFromLayers()
188 const auto *MTE = cast<MaterializeTemporaryExpr>(TopItem.getStmt()); in createFromLayers()
193 const auto *BTE = cast<CXXBindTemporaryExpr>(TopItem.getStmt()); in createFromLayers()
[all …]
H A DProgramPoint.cpp73 if (const ReturnStmt *RS = FEP->getStmt()) { in print()
196 const Stmt *S = castAs<StmtPoint>().getStmt(); in print()
H A DReachableCode.cpp77 if (const auto *CE = dyn_cast<CallExpr>(CS->getStmt())) { in isBuiltinAssumeFalse()
94 if (const ReturnStmt *RS = dyn_cast<ReturnStmt>(CS->getStmt())) { in isDeadReturn()
459 const Stmt *S = CS->getStmt(); in findDeadCode()
466 const Stmt *S = T.getStmt(); in findDeadCode()
H A DCFGStmtMap.cpp57 CFGBlock *&Entry = SM[CS->getStmt()]; in Accumulate()
H A DConsumed.cpp67 return CS->getStmt()->getBeginLoc(); in getFirstStmtLoc()
86 return CS->getStmt()->getBeginLoc(); in getLastStmtLoc()
1236 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) { in splitState()
1256 dyn_cast_or_null<BinaryOperator>(CurrBlock->getTerminator().getStmt())) { in splitState()
1346 Visitor.Visit(B.castAs<CFGStmt>().getStmt()); in run()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Analysis/
H A DCFG.h133 const Stmt *getStmt() const { in getStmt() function
510 Stmt *getStmt() { return Data.getPointer(); } in getStmt() function
515 operator Stmt *() { return getStmt(); }
516 operator const Stmt *() const { return getStmt(); }
518 Stmt *operator->() { return getStmt(); }
519 const Stmt *operator->() const { return getStmt(); }
521 Stmt &operator*() { return *getStmt(); }
522 const Stmt &operator*() const { return *getStmt(); }
524 explicit operator bool() const { return getStmt(); }
1160 O(const_cast<Stmt*>(stmt->getStmt())); in VisitBlockStmts()
[all …]
H A DProgramPoint.h281 const Stmt *getStmt() const { return (const Stmt*) getData1(); } in getStmt() function
284 const T* getStmtAs() const { return dyn_cast<T>(getStmt()); } in getStmtAs()
348 const ReturnStmt *getStmt() const { in getStmt() function
H A DConstructionContext.h137 const Stmt *getStmt() const { in getStmt() function
143 return hasStatement() ? getStmt() : nullptr; in getStmtOrNull()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DEnvironment.cpp87 const Stmt *S = Entry.getStmt(); in getSVal()
190 if (SymReaper.isLive(BlkExpr.getStmt(), BlkExpr.getLocationContext())) { in removeDeadBindings()
234 const Stmt *S = I.first.getStmt(); in print()
H A DPathDiagnostic.cpp589 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller()
720 S = SP->getStmt(); in create()
741 return PathDiagnosticLocation(StmtElt->getStmt()->getBeginLoc(), SMng); in create()
767 const Stmt *PathDiagnosticLocation::getStmt(const ExplodedNode *N) { in getStmt() function in PathDiagnosticLocation
780 return SP->getStmt(); in getStmt()
792 return FEP->getStmt(); in getStmt()
799 if (const Stmt *S = getStmt(N)) { in getNextStmt()
828 const Stmt *S = getStmt(N); in createEndOfPath()
836 if (const ReturnStmt *RS = FE->getStmt()) in createEndOfPath()
H A DBugReporterVisitors.cpp724 const Stmt *S = PathDiagnosticLocation::getStmt(N); in matchAssignment()
803 if (SP->getStmt() == S) in addVisitorIfNecessary()
859 const auto *Ret = dyn_cast<ReturnStmt>(SP->getStmt()); in visitNodeInitial()
1280 const Stmt *S = PS->getStmt(); in VisitNode()
1471 const Stmt *CurStmt = SP->getStmt(); in VisitNode()
1486 SourceLocation BugLoc = BugPoint->getStmt()->getBeginLoc(); in VisitNode()
1591 if (PathDiagnosticLocation::getStmt(N) == Inner) in findNodeForExpression()
1739 const Stmt *S = P->getStmt(); in VisitNode()
1854 return VisitTrueTest(cast<Expr>(PS->getStmt()), true, in VisitNodeImpl()
1857 return VisitTrueTest(cast<Expr>(PS->getStmt()), false, in VisitNodeImpl()
[all …]
H A DExplodedGraph.cpp124 const Expr *Ex = dyn_cast<Expr>(progPoint.castAs<PostStmt>().getStmt()); in shouldCollect()
145 if (CallEvent::isCallStmt(SP->getStmt())) in shouldCollect()
H A DCoreEngine.cpp230 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()); in HandleBlockEdge()
286 cast<CXXBindTemporaryExpr>(B->getTerminator().getStmt()), B, Pred); in HandleBlockExit()
495 PostStmt Loc(CS.getStmt(), N->getLocationContext()); in enqueueStmtNode()
H A DBugReporter.cpp94 if (const Stmt *S = PathDiagnosticLocation::getStmt(N)) in GetPreviousStmt()
102 if (const Stmt *S = PathDiagnosticLocation::getStmt(N)) in GetCurrentOrPreviousStmt()
925 const Stmt *S = SP->getStmt(); in getStmtBeforeCond()
1150 if (!isa<ObjCForCollectionStmt>(PS->getStmt())) { in generatePathDiagnosticsForNode()
1152 PathDiagnosticLocation(PS->getStmt(), SM, PDB.LC); in generatePathDiagnosticsForNode()
2178 const Stmt *BugReport::getStmt() const { in getStmt() function in BugReport
2191 S = PathDiagnosticLocation::getStmt(ErrorNode); in getStmt()
2200 if (const auto *E = dyn_cast_or_null<Expr>(getStmt())) in getRanges()
2756 if (const Stmt *S = PathDiagnosticLocation::getStmt(N)) in findBlockForNode()
2781 if (isa<CXXThrowExpr>(StmtElm->getStmt())) in isImmediateSinkBlock()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DEnvironment.h41 const Stmt *getStmt() const { return first; } in getStmt() function
47 ID.AddPointer(E.getStmt()); in Profile()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DUnreachableCodeChecker.cpp134 if (const CallExpr *CE = dyn_cast<CallExpr>(S->getStmt())) { in checkEndAnalysis()
204 if (!isa<DeclStmt>(S->getStmt())) in getUnreachableStmt()
205 return S->getStmt(); in getUnreachableStmt()
H A DUndefBranchChecker.cpp93 if (PS->getStmt() == Ex) in checkBranchCondition()
H A DDivZeroChecker.cpp36 const Stmt *S = N->getLocationAs<PreStmt>()->getStmt(); in getDenomExpr()
H A DDeleteWithNonVirtualDtorChecker.cpp112 const Stmt *S = PathDiagnosticLocation::getStmt(N); in VisitNode()
H A DAnalyzerStatsChecker.cpp135 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
H A DValistChecker.cpp286 if (const Stmt *StartCallStmt = PathDiagnosticLocation::getStmt(StartNode)) in reportLeakedVALists()
383 const Stmt *S = PathDiagnosticLocation::getStmt(N); in VisitNode()
H A DMallocChecker.cpp87 const Stmt *getStmt() const { return S; } in getStmt() function in __anon98725bea0111::RefState
97 return RefState(AllocatedOfSizeZero, RS->getStmt(), in getAllocatedOfSizeZero()
107 return RefState(Escaped, RS->getStmt(), RS->getAllocationFamily()); in getEscaped()
1594 const Expr *AllocExpr = cast<Expr>(RsBase->getStmt()); in FreeMemAux()
1868 const Expr *AllocExpr = cast<Expr>(RS->getStmt()); in ReportMismatchedDealloc()
2322 const Stmt *AllocationStmt = PathDiagnosticLocation::getStmt(AllocNode); in reportLeak()
2551 ReportUseZeroAllocated(C, RS->getStmt()->getSourceRange(), Sym); in checkUseZeroAllocated()
2606 RefState::getAllocated(RS->getAllocationFamily(), RS->getStmt())); in evalAssume()
2880 const Stmt *S = PathDiagnosticLocation::getStmt(N); in VisitNode()
2947 const Stmt *S = RS->getStmt(); in VisitNode()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DJumpDiagnostics.cpp595 if (GS->getLabel()->getStmt()) { in VerifyJumps()
596 CheckJump(GS, GS->getLabel()->getStmt(), GS->getGotoLoc(), in VerifyJumps()
608 CheckJump(IGS, Target->getStmt(), IGS->getGotoLoc(), in VerifyJumps()
693 if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(TheLabel->getStmt()))) in VerifyIndirectJumps()
695 unsigned LabelScope = LabelAndGotoScopes[TheLabel->getStmt()]; in VerifyIndirectJumps()
793 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target); in DiagnoseIndirectJumpStmt()
839 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target); in DiagnoseIndirectJump()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.cpp388 const Stmt *S = N->getLocation().castAs<StmtPoint>().getStmt(); in VisitNode()
436 const Stmt *S = N->getLocation().castAs<StmtPoint>().getStmt(); in VisitNode()
470 const Stmt *S = N->getLocation().castAs<StmtPoint>().getStmt(); in VisitNode()
748 AllocStmt = PathDiagnosticLocation::getStmt(AllocNode); in deriveAllocLocation()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DVarBypassDetector.cpp142 if (const LabelStmt *LS = GS->getLabel()->getStmt()) in Detect()

123