Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DConstructionContext.cpp74 ElidedCE = cast<CXXConstructExpr>(ElidedItem.getStmt()); in createMaterializedTemporaryFromLayers()
110 const auto *DS = cast<DeclStmt>(ParentItem.getStmt()); in createBoundTemporaryFromLayers()
120 const auto *RS = cast<ReturnStmt>(ParentItem.getStmt()); in createBoundTemporaryFromLayers()
129 const auto *MTE = cast<MaterializeTemporaryExpr>(ParentItem.getStmt()); in createBoundTemporaryFromLayers()
145 const auto *E = cast<Expr>(ParentItem.getStmt()); in createBoundTemporaryFromLayers()
173 const auto *DS = cast<DeclStmt>(TopItem.getStmt()); in createFromLayers()
178 const auto *NE = cast<CXXNewExpr>(TopItem.getStmt()); in createFromLayers()
183 const auto *RS = cast<ReturnStmt>(TopItem.getStmt()); in createFromLayers()
187 const auto *MTE = cast<MaterializeTemporaryExpr>(TopItem.getStmt()); in createFromLayers()
192 const auto *BTE = cast<CXXBindTemporaryExpr>(TopItem.getStmt()); in createFromLayers()
[all …]
H A DProgramPoint.cpp72 if (const ReturnStmt *RS = FEP->getStmt()) { in printJson()
187 const Stmt *S = castAs<StmtPoint>().getStmt(); in printJson()
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()
460 const Stmt *S = CS->getStmt(); in findDeadCode()
467 const Stmt *S = T.getStmt(); in findDeadCode()
H A DUninitializedValues.cpp597 if (const auto *as = dyn_cast_or_null<GCCAsmStmt>(term.getStmt())) { in getUninitUse()
604 return label->getLabel()->getStmt() == B->Label && in getUninitUse()
857 tf.Visit(const_cast<Stmt *>(cs->getStmt())); in runOnBlock()
860 if (auto *as = dyn_cast_or_null<GCCAsmStmt>(terminator.getStmt())) in runOnBlock()
H A DCFGStmtMap.cpp56 CFGBlock *&Entry = SM[CS->getStmt()]; in Accumulate()
H A DConsumed.cpp66 return CS->getStmt()->getBeginLoc(); in getFirstStmtLoc()
85 return CS->getStmt()->getBeginLoc(); in getLastStmtLoc()
1235 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) { in splitState()
1255 dyn_cast_or_null<BinaryOperator>(CurrBlock->getTerminator().getStmt())) { in splitState()
1345 Visitor.Visit(B.castAs<CFGStmt>().getStmt()); in run()
H A DPathDiagnostic.cpp533 return PathDiagnosticLocation(Source.castAs<CFGStmt>().getStmt(), in getLocationForCaller()
689 S = SP->getStmt(); in create()
716 return PathDiagnosticLocation(StmtElt->getStmt()->getBeginLoc(), SMng); in create()
727 return PathDiagnosticLocation(FE->getStmt(), SMng, in create()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DEnvironment.cpp88 const Stmt *S = Entry.getStmt(); in getSVal()
198 const Expr *E = dyn_cast<Expr>(BlkExpr.getStmt()); in removeDeadBindings()
263 const Stmt *S = I->first.getStmt(); in printJson()
275 const Stmt *S = I->first.getStmt(); in printJson()
H A DExplodedGraph.cpp123 const Expr *Ex = dyn_cast<Expr>(progPoint.castAs<PostStmt>().getStmt()); in shouldCollect()
144 if (CallEvent::isCallStmt(SP->getStmt())) in shouldCollect()
335 return SP->getStmt(); in getStmtForDiagnostics()
347 return FEP->getStmt(); in getStmtForDiagnostics()
H A DBugReporterVisitors.cpp838 SourceLocation BugLoc = BugPoint->getStmt()->getBeginLoc(); in VisitNode()
980 if (SP->getStmt() == S && CurrentSFC == PredSFC) in addVisitorIfNecessary()
1035 const auto *Ret = dyn_cast<ReturnStmt>(SP->getStmt()); in visitNodeInitial()
1573 const Stmt *S = PS->getStmt(); in VisitNode()
1768 CurTerminatorStmt = BE->getSrc()->getTerminator().getStmt(); in VisitNode()
1770 const Stmt *CurStmt = SP->getStmt(); in VisitNode()
1785 SourceLocation BugLoc = BugPoint->getStmt()->getBeginLoc(); in VisitNode()
2228 const Stmt *S = P->getStmt(); in VisitNode()
2311 return VisitTrueTest(cast<Expr>(PS->getStmt()), BRC, BR, N, TookTrue); in VisitNodeImpl()
H A DBugReporter.cpp1035 const Stmt *S = SP->getStmt(); in getStmtBeforeCond()
1227 if (!isa<ObjCForCollectionStmt>(PS->getStmt())) { in generatePathDiagnosticsForNode()
1229 PathDiagnosticLocation(PS->getStmt(), SM, C.getCurrLocationContext()); in generatePathDiagnosticsForNode()
2134 ErrorNodeRange(getStmt() ? getStmt()->getSourceRange() : SourceRange()), in PathSensitiveBugReport()
2357 const Stmt *PathSensitiveBugReport::getStmt() const { in getStmt() function in PathSensitiveBugReport
2379 if (Ranges.empty() && isa_and_nonnull<Expr>(getStmt())) in getRanges()
2399 if (const ReturnStmt *RS = FE->getStmt()) in getLocation()
H A DCoreEngine.cpp247 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()); in HandleBlockEdge()
546 PostStmt Loc(CS.getStmt(), N->getLocationContext()); in enqueueStmtNode()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DUnreachableCodeChecker.cpp133 if (const CallExpr *CE = dyn_cast<CallExpr>(S->getStmt())) { in checkEndAnalysis()
203 if (!isa<DeclStmt>(S->getStmt())) in getUnreachableStmt()
204 return S->getStmt(); in getUnreachableStmt()
H A DUndefBranchChecker.cpp97 if (PS->getStmt() == Ex) in checkBranchCondition()
H A DDivZeroChecker.cpp37 const Stmt *S = N->getLocationAs<PreStmt>()->getStmt(); in getDenomExpr()
H A DAnalyzerStatsChecker.cpp134 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
H A DMallocChecker.cpp160 const Stmt *getStmt() const { return S; } in getStmt() function in __anon093a02e60211::RefState
170 return RefState(AllocatedOfSizeZero, RS->getStmt(), in getAllocatedOfSizeZero()
180 return RefState(Escaped, RS->getStmt(), RS->getAllocationFamily()); in getEscaped()
1821 const Expr *AllocExpr = cast<Expr>(RsBase->getStmt()); in FreeMemAux()
2094 const Expr *AllocExpr = cast<Expr>(RS->getStmt()); in HandleMismatchedDealloc()
2836 HandleUseZeroAlloc(C, RS->getStmt()->getSourceRange(), Sym); in checkUseZeroAllocated()
2892 RefState::getAllocated(RS->getAllocationFamily(), RS->getStmt())); in evalAssume()
3234 const Stmt *S = RSCurr->getStmt(); in VisitNode()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DEnvironment.h40 const Stmt *getStmt() const { return first; } in getStmt() function
46 ID.AddPointer(E.getStmt()); in Profile()
H A DSymbolManager.h98 const Stmt *getStmt() const { return S; } in getStmt() function
230 const Stmt *getStmt() const { return S; } in getStmt() function
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DJumpDiagnostics.cpp654 if (GS->getLabel()->getStmt()) { in VerifyJumps()
655 CheckJump(GS, GS->getLabel()->getStmt(), GS->getGotoLoc(), in VerifyJumps()
667 CheckJump(IGS, Target->getStmt(), IGS->getGotoLoc(), in VerifyJumps()
756 if (CHECK_PERMISSIVE(!LabelAndGotoScopes.count(TheLabel->getStmt()))) in VerifyIndirectOrAsmJumps()
758 unsigned LabelScope = LabelAndGotoScopes[TheLabel->getStmt()]; in VerifyIndirectOrAsmJumps()
858 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target) in DiagnoseIndirectOrAsmJumpStmt()
906 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target) in DiagnoseIndirectOrAsmJump()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Analysis/
H A DCFG.h138 const Stmt *getStmt() const { in getStmt() function
535 Stmt *getStmt() { return Data.getPointer(); } in getStmt() function
536 const Stmt *getStmt() const { return Data.getPointer(); } in getStmt() function
1050 Stmt *getTerminatorStmt() { return Terminator.getStmt(); } in getTerminatorStmt()
1051 const Stmt *getTerminatorStmt() const { return Terminator.getStmt(); } in getTerminatorStmt()
1397 O(const_cast<Stmt *>(stmt->getStmt())); in VisitBlockStmts()
1477 return Val.getStmt();
H A DProgramPoint.h279 const Stmt *getStmt() const { return (const Stmt*) getData1(); } in getStmt() function
282 const T* getStmtAs() const { return dyn_cast<T>(getStmt()); } in getStmtAs()
346 const ReturnStmt *getStmt() const { in getStmt() function
H A DConstructionContext.h139 const Stmt *getStmt() const { in getStmt() function
145 return hasStatement() ? getStmt() : nullptr; in getStmtOrNull()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DVarBypassDetector.cpp141 if (const LabelStmt *LS = GS->getLabel()->getStmt()) in Detect()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.cpp508 const Stmt *S = N->getLocation().castAs<StmtPoint>().getStmt(); in VisitNode()
560 const Stmt *S = N->getLocation().castAs<StmtPoint>().getStmt(); in VisitNode()
594 const Stmt *S = N->getLocation().castAs<StmtPoint>().getStmt(); in VisitNode()

12