Home
last modified time | relevance | path

Searched refs:DeclStmt (Results 1 – 25 of 90) sorted by relevance

1234

/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DStmtCXX.h146 CXXForRangeStmt(Stmt *InitStmt, DeclStmt *Range, DeclStmt *Begin,
147 DeclStmt *End, Expr *Cond, Expr *Inc, DeclStmt *LoopVar,
161 DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); } in getRangeStmt()
162 DeclStmt *getBeginStmt() { in getBeginStmt()
163 return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]); in getBeginStmt()
165 DeclStmt *getEndStmt() { return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); } in getEndStmt()
168 DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); } in getLoopVarStmt()
171 const DeclStmt *getRangeStmt() const { in getRangeStmt()
172 return cast<DeclStmt>(SubExprs[RANGE]); in getRangeStmt()
174 const DeclStmt *getBeginStmt() const { in getBeginStmt()
[all …]
H A DStmt.h1311 class DeclStmt : public Stmt {
1316 DeclStmt(DeclGroupRef dg, SourceLocation startLoc, SourceLocation endLoc) in DeclStmt() function
1320 explicit DeclStmt(EmptyShell Empty) : Stmt(DeclStmtClass, Empty) {} in DeclStmt() function
1350 auto Children = const_cast<DeclStmt *>(this)->children(); in children()
2083 DeclStmt *getConditionVariableDeclStmt() { in getConditionVariableDeclStmt()
2084 return hasVarStorage() ? static_cast<DeclStmt *>( in getConditionVariableDeclStmt()
2089 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt()
2090 return hasVarStorage() ? static_cast<DeclStmt *>( in getConditionVariableDeclStmt()
2315 DeclStmt *getConditionVariableDeclStmt() { in getConditionVariableDeclStmt()
2316 return hasVarStorage() ? static_cast<DeclStmt *>( in getConditionVariableDeclStmt()
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DStmtCXX.cpp47 CXXForRangeStmt::CXXForRangeStmt(Stmt *Init, DeclStmt *Range, in CXXForRangeStmt()
48 DeclStmt *BeginStmt, DeclStmt *EndStmt, in CXXForRangeStmt()
49 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, in CXXForRangeStmt()
66 DeclStmt *RangeStmt = getRangeStmt(); in getRangeInit()
77 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl(); in getLoopVariable()
H A DParentMapContext.cpp166 matchParents<DeclStmt, CXXForRangeStmt>(ParentList, this); in getParents()
170 std::get<const DeclStmt *>(AncestorNodes)) in getParents()
174 auto AncestorNodes = matchParents<VarDecl, DeclStmt, CXXForRangeStmt>( in getParents()
179 std::get<const DeclStmt *>(AncestorNodes)) in getParents()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DCheckerDocumentation.cpp37 check::PostStmt<DeclStmt>,
82 void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const;
329 void CheckerDocumentation::checkPostStmt(const DeclStmt *DS, in checkPostStmt()
H A DUndefinedAssignmentChecker.cpp87 if (const DeclStmt *DS = dyn_cast<DeclStmt>(StoreE)) { in checkBind()
H A DVLASizeChecker.cpp35 : public Checker<check::PreStmt<DeclStmt>,
62 void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const;
252 void VLASizeChecker::checkPreStmt(const DeclStmt *DS, CheckerContext &C) const { in checkPreStmt()
H A DLLVMConventionsChecker.cpp130 void VisitDeclStmt(DeclStmt *DS);
142 void StringRefCheckerVisitor::VisitDeclStmt(DeclStmt *S) { in VisitDeclStmt()
/openbsd-src/gnu/llvm/clang/include/clang/Analysis/
H A DConstructionContext.h90 ConstructionContextItem(const DeclStmt *DS) in ConstructionContextItem()
317 const DeclStmt *DS;
320 VariableConstructionContext(ConstructionContext::Kind K, const DeclStmt *DS) in VariableConstructionContext()
327 const DeclStmt *getDeclStmt() const { return DS; } in getDeclStmt()
348 explicit SimpleVariableConstructionContext(const DeclStmt *DS) in SimpleVariableConstructionContext()
374 const DeclStmt *DS, const CXXBindTemporaryExpr *BTE) in CXX17ElidedCopyVariableConstructionContext()
H A DCFG.h1362 void addSyntheticDeclStmt(const DeclStmt *Synthetic, in addSyntheticDeclStmt()
1363 const DeclStmt *Source) { in addSyntheticDeclStmt()
1371 llvm::DenseMap<const DeclStmt *, const DeclStmt *>::const_iterator;
1465 llvm::DenseMap<const DeclStmt *, const DeclStmt *> SyntheticDeclStmts;
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DVarBypassDetector.cpp87 const DeclStmt *DS = cast<DeclStmt>(S); in BuildScopeInformation()
/openbsd-src/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTStructExtractor.cpp68 DeclStmt *curr_decl_stmt = dyn_cast<DeclStmt>(curr_stmt); in ExtractFromFunctionDecl()
/openbsd-src/gnu/llvm/clang/lib/Analysis/
H A DLiveVariables.cpp173 void VisitDeclStmt(DeclStmt *DS);
254 const DeclStmt *DS = cast<DeclStmt>(S); in Visit()
396 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
422 if (DeclStmt *DS = dyn_cast<DeclStmt>(element)) { in VisitObjCForCollectionStmt()
H A DUnsafeBufferUsage.cpp377 using DefMapTy = DenseMap<const VarDecl *, const DeclStmt *>;
407 void discoverDecl(const DeclStmt *DS) { in discoverDecl()
420 const DeclStmt *lookupDecl(const VarDecl *VD) const { in lookupDecl()
490 if (const auto *DS = Result.Nodes.getNodeAs<DeclStmt>("any_ds")) { in findGadgets()
H A DConstructionContext.cpp110 const auto *DS = cast<DeclStmt>(ParentItem.getStmt()); in createBoundTemporaryFromLayers()
179 const auto *DS = cast<DeclStmt>(TopItem.getStmt()); in createFromLayers()
H A DUninitializedValues.cpp285 void VisitDeclStmt(DeclStmt *DS);
368 void ClassifyRefs::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
487 void VisitDeclStmt(DeclStmt *ds);
688 if (const auto *DS = dyn_cast<DeclStmt>(FS->getElement())) { in VisitObjCForCollectionStmt()
769 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
H A DCFG.cpp572 CFGBlock *VisitDeclStmt(DeclStmt *DS);
573 CFGBlock *VisitDeclSubExpr(DeclStmt *DS);
776 LocalScope* addLocalScopeForDeclStmt(DeclStmt *DS,
2012 if (DeclStmt *DS = dyn_cast<DeclStmt>(SI)) in addLocalScopeForStmt()
2020 if (DeclStmt *DS = dyn_cast<DeclStmt>(S->stripLabelLikeStatements())) in addLocalScopeForStmt()
2026 LocalScope* CFGBuilder::addLocalScopeForDeclStmt(DeclStmt *DS, in addLocalScopeForDeclStmt()
2295 return VisitDeclStmt(cast<DeclStmt>(S)); in Visit()
2902 CFGBlock *CFGBuilder::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
2915 for (DeclStmt::reverse_decl_iterator I = DS->decl_rbegin(), in VisitDeclStmt()
2923 DeclStmt *DSNew = new (Context) DeclStmt(DG, D->getLocation(), GetEndLoc(D)); in VisitDeclStmt()
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DByteCodeStmtGen.cpp170 return visitDeclStmt(cast<DeclStmt>(S)); in visitStmt()
206 bool ByteCodeStmtGen<Emitter>::visitDeclStmt(const DeclStmt *DS) { in visitDeclStmt()
266 if (const DeclStmt *CondDecl = IS->getConditionVariableDeclStmt()) in visitIfStmt()
H A DByteCodeStmtGen.h57 bool visitDeclStmt(const DeclStmt *DS);
/openbsd-src/gnu/llvm/clang/lib/ARCMigrate/
H A DTransRetainReleaseDealloc.cpp229 if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) { in isPlusOneAssignToVar()
365 auto *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild.begin()); in checkForGCDOrXPC()
H A DTransAutoreleasePool.cpp169 if (DeclStmt *DclS = dyn_cast<DeclStmt>(child)) { in VisitCompoundStmt()
420 DeclStmt *Dcl;
/openbsd-src/gnu/llvm/clang/docs/
H A DClangCheck.rst28 (DeclStmt 0x7ff3a302a9f8 <line:2:3, line:3:1>
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp222 if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) { in isPossiblyEscaped()
H A DCheckerHelpers.cpp93 } else if (auto PD = dyn_cast_or_null<DeclStmt>(S)) { in parseAssignment()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp40 if (auto *DS = parent.begin()->get<DeclStmt>()) { in isDeclaredInForOrIf()

1234