Searched refs:Stmt (Results 101 - 125 of 320) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DUndefinedAssignmentChecker.cpp29 void checkBind(SVal location, SVal val, const Stmt *S,
35 const Stmt *StoreE,
H A DMallocSizeofChecker.cpp31 typedef llvm::PointerUnion<const Stmt *, const VarDecl *> ExprParent;
59 void VisitChild(ExprParent Parent, const Stmt *S) {
66 void VisitChildren(const Stmt *S) {
67 for (const Stmt *Child : S->children())
85 TypeCallPair VisitStmt(const Stmt *S) {
H A DNonnullGlobalConstantsChecker.cpp44 void checkLocation(SVal l, bool isLoad, const Stmt *S,
70 const Stmt *S,
H A DNullabilityChecker.cpp95 void checkBind(SVal L, SVal V, const Stmt *S, CheckerContext &C) const;
103 void checkLocation(SVal Location, bool IsLoad, const Stmt *S,
163 const Stmt *ValueExpr = nullptr,
168 const Stmt *ValueExpr = nullptr) const {
203 NullabilityState(Nullability Nullab, const Stmt *Source = nullptr)
206 const Stmt *getNullabilitySource() const { return Source; }
225 const Stmt *Source;
314 const Stmt *S = TrackedNullab->getNullabilitySource();
439 const MemRegion *Region, CheckerContext &C, const Stmt *ValueExpr,
527 const Stmt *
[all...]
H A DCStringSyntaxChecker.cpp108 void VisitChildren(Stmt *S);
109 void VisitStmt(Stmt *S) {
272 void WalkAST::VisitChildren(Stmt *S) {
273 for (Stmt *Child : S->children())
H A DObjCSuperDeallocChecker.cpp46 void checkLocation(SVal l, bool isLoad, const Stmt *S,
53 void reportUseAfterDealloc(SymbolRef Sym, StringRef Desc, const Stmt *S,
130 void ObjCSuperDeallocChecker::checkLocation(SVal L, bool IsLoad, const Stmt *S,
177 const Stmt *S,
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DStmtIterator.cpp109 Stmt*& StmtIteratorBase::GetDeclExpr() const {
112 return const_cast<Stmt*&>(VAPtr->SizeExpr);
H A DParentMapContext.cpp9 // Similar to ParentMap.cpp, but generalizes to non-Stmt nodes, which can have
63 llvm::PointerUnion<const Decl *, const Stmt *,
70 llvm::PointerUnion<const Decl *, const Stmt *,
81 if (const auto *S = U.dyn_cast<const Stmt *>())
178 const auto *S = It->second.dyn_cast<const Stmt *>();
215 /// FIXME: Currently only builds up the map using \c Stmt and \c Decl nodes.
251 else if (const auto *S = ParentStack.back().get<Stmt>())
287 bool TraverseStmt(Stmt *StmtNode) {
H A DStmtProfile.cpp1 //===---- StmtProfile.cpp - Profile implementation for Stmt ASTs ----------===//
9 // This file implements the Stmt::Profile method, which builds a unique bit
39 void VisitStmt(const Stmt *S);
41 virtual void HandleStmtClass(Stmt::StmtClass SC) = 0;
85 void HandleStmtClass(Stmt::StmtClass SC) override {
172 void HandleStmtClass(Stmt::StmtClass SC) override {
173 if (SC == Stmt::UnresolvedLookupExprClass) {
176 ID.AddInteger(Stmt::DeclRefExprClass);
218 void StmtProfiler::VisitStmt(const Stmt *S) {
219 assert(S && "Requires non-null Stmt pointe
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp22 ProgramPoint ProgramPoint::getProgramPoint(const Stmt *S, ProgramPoint::Kind K,
136 const Stmt *T = E.getSrc()->getTerminatorStmt();
153 if (const Stmt *Label = E.getDst()->getLabel()) {
156 if (const Stmt *LHS = C->getLHS()) {
163 if (const Stmt *RHS = C->getRHS()) {
187 const Stmt *S = castAs<StmtPoint>().getStmt();
188 assert(S != nullptr && "Expecting non-null Stmt");
H A DAnalysisDeclContext.cpp25 #include "clang/AST/Stmt.h"
93 Stmt *AnalysisDeclContext::getBody(bool &IsAutosynthesized) const {
96 Stmt *Body = FD->getBody();
100 Stmt *SynthesizedBody = ADCMgr->getBodyFarm().getBody(FD);
109 Stmt *Body = MD->getBody();
111 Stmt *SynthesizedBody = ADCMgr->getBodyFarm().getBody(MD);
126 Stmt *AnalysisDeclContext::getBody() const {
139 Stmt *Body = getBody(Tmp);
180 void AnalysisDeclContext::registerForcedBlockExpression(const Stmt *stmt) {
190 AnalysisDeclContext::getBlockForRegisteredExpression(const Stmt *stm
[all...]
H A DPathDiagnostic.cpp24 #include "clang/AST/Stmt.h"
146 // We need to flatten the locations (convert Stmt* to locations) because
464 const Stmt *S, LocationOrAnalysisDeclContext LAC, bool UseEndOfStatement) {
481 const Stmt *Parent = S;
490 const Stmt *Body = ADC->getBody();
537 if (const Stmt *CallerBody = CallerInfo->getBody())
571 PathDiagnosticLocation::createBegin(const Stmt *S,
579 PathDiagnosticLocation::createEnd(const Stmt *S,
652 const Stmt* S = nullptr;
764 const Stmt *
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerManager.h34 class Stmt;
235 /// Run checkers handling Decls containing a Stmt body.
251 const Stmt *S,
264 const Stmt *S,
273 const Stmt *S, ExprEngine &Eng,
335 const Stmt *NodeEx,
336 const Stmt *BoundEx,
343 const Stmt *S, ExprEngine &Eng,
364 void runCheckersForBranchCondition(const Stmt *condition,
388 SymbolReaper &SymReaper, const Stmt *
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaAvailability.cpp580 bool isBodyLikeChildStmt(const Stmt *S, const Stmt *Parent) {
582 case Stmt::IfStmtClass:
585 case Stmt::WhileStmtClass:
587 case Stmt::DoStmtClass:
589 case Stmt::ForStmtClass:
591 case Stmt::CXXForRangeStmtClass:
593 case Stmt::ObjCForCollectionStmtClass:
595 case Stmt::CaseStmtClass:
596 case Stmt
[all...]
H A DAnalysisBasedWarnings.cpp136 for (const Stmt *SubStmt : E->children())
187 // Process all the Stmt's in this block to find any calls to FD.
254 const Stmt *Body, AnalysisDeclContext &AC) {
415 const Stmt *Term = B->getTerminatorStmt();
464 const Stmt *Term = B.getTerminatorStmt();
475 const Stmt *S = CS.getStmt();
636 static void CheckFallThroughForBody(Sema &S, const Decl *D, const Stmt *Body,
786 static void CreateIfFixit(Sema &S, const Stmt *If, const Stmt *Then,
787 const Stmt *Els
1050 markFallthroughVisited(const AttributedStmt *Stmt) argument
[all...]
H A DSemaStmt.cpp58 return StmtResult(FE.getAs<Stmt>());
218 void Sema::DiagnoseUnusedExprResult(const Stmt *S) {
397 ArrayRef<Stmt *> Elts, bool isStmtExpr) {
514 void Sema::ActOnCaseStmtBody(Stmt *S, Stmt *SubStmt) {
520 Stmt *SubStmt, Scope *CurScope) {
533 SourceLocation ColonLoc, Stmt *SubStmt) {
557 Stmt *SubStmt) {
578 Sema::ActOnIfStmt(SourceLocation IfLoc, bool IsConstexpr, Stmt *InitStmt,
580 Stmt *thenStm
[all...]
H A DScopeInfo.cpp75 case Stmt::DeclRefExprClass:
79 case Stmt::MemberExprClass: {
85 case Stmt::ObjCIvarRefExprClass: {
91 case Stmt::PseudoObjectExprClass: {
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSymbolManager.h33 class Stmt;
76 const Stmt *S;
83 SymbolConjured(SymbolID sym, const Stmt *s, const LocationContext *lctx,
96 const Stmt *getStmt() const { return S; }
104 static void Profile(llvm::FoldingSetNodeID& profile, const Stmt *S,
203 const Stmt *S;
210 SymbolMetadata(SymbolID sym, const MemRegion* r, const Stmt *s, QualType t,
222 const Stmt *getStmt() const { return S; }
232 const Stmt *S, QualType T, const LocationContext *LCtx,
433 const SymbolConjured* conjureSymbol(const Stmt *
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DOwnership.h9 // This file contains classes for managing ownership of Stmt and Expr nodes.
37 class Stmt;
253 template<> struct IsResultPtrLowBitFree<Stmt*> {
264 using StmtResult = ActionResult<Stmt *>;
274 using MultiStmtArg = MutableArrayRef<Stmt *>;
294 inline Stmt *AssertSuccess(StmtResult R) {
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DOpenMPClause.h23 #include "clang/AST/Stmt.h"
113 Stmt *PreInit = nullptr;
125 setPreInitStmt(Stmt *S,
133 const Stmt *getPreInitStmt() const { return PreInit; }
136 Stmt *getPreInitStmt() { return PreInit; }
274 Stmt *Allocator = nullptr;
399 return child_range(reinterpret_cast<Stmt **>(varlist_begin()),
400 reinterpret_cast<Stmt **>(varlist_end()));
434 Stmt *Condition = nullptr;
470 OMPIfClause(OpenMPDirectiveKind NameModifier, Expr *Cond, Stmt *HelperCon
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerManager.cpp15 #include "clang/AST/Stmt.h"
157 const Stmt *S;
162 const Stmt *s, ExprEngine &eng, bool wasInlined = false)
187 const Stmt *S,
319 const Stmt *NodeEx; /* Will become a CFGStmt */
320 const Stmt *BoundEx;
324 SVal loc, bool isLoad, const Stmt *NodeEx,
325 const Stmt *BoundEx,
353 const Stmt *NodeEx,
354 const Stmt *BoundE
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DConsumed.h36 class Stmt;
149 const Stmt *From = nullptr;
189 void setSource(const Stmt *Source) { this->From = Source; }
H A DThreadSafetyCommon.h55 class Stmt;
120 void handleStatement(const Stmt *S) {}
379 til::SExpr *translate(const Stmt *S, CallingContext *Ctx);
382 til::SExpr *lookupStmt(const Stmt *S);
426 using StatementMap = llvm::DenseMap<const Stmt *, til::SExpr *>;
456 void handleStatement(const Stmt *S);
465 void insertStmt(const Stmt *S, til::SExpr *E) {
471 til::SExpr *addStatement(til::SExpr *E, const Stmt *S,
494 // Map from Stmt to TIL Variables
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DModelInjector.cpp31 Stmt *ModelInjector::getBody(const FunctionDecl *D) {
36 Stmt *ModelInjector::getBody(const ObjCMethodDecl *D) {
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.h72 const Stmt *AllocStmt;

Completed in 382 milliseconds

1234567891011>>