Home
last modified time | relevance | path

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

1234

/netbsd-src/external/apache2/llvm/dist/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.h1291 class DeclStmt : public Stmt {
1296 DeclStmt(DeclGroupRef dg, SourceLocation startLoc, SourceLocation endLoc) in DeclStmt() function
1300 explicit DeclStmt(EmptyShell Empty) : Stmt(DeclStmtClass, Empty) {} in DeclStmt() function
1330 auto Children = const_cast<DeclStmt *>(this)->children(); in children()
2038 DeclStmt *getConditionVariableDeclStmt() { in getConditionVariableDeclStmt()
2039 return hasVarStorage() ? static_cast<DeclStmt *>( in getConditionVariableDeclStmt()
2044 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt()
2045 return hasVarStorage() ? static_cast<DeclStmt *>( in getConditionVariableDeclStmt()
2242 DeclStmt *getConditionVariableDeclStmt() { in getConditionVariableDeclStmt()
2243 return hasVarStorage() ? static_cast<DeclStmt *>( in getConditionVariableDeclStmt()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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.cpp34 : public Checker<check::PreStmt<DeclStmt>,
61 void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const;
251 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()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Analysis/
H A DConstructionContext.h87 ConstructionContextItem(const DeclStmt *DS) in ConstructionContextItem()
304 const DeclStmt *DS;
307 VariableConstructionContext(ConstructionContext::Kind K, const DeclStmt *DS) in VariableConstructionContext()
314 const DeclStmt *getDeclStmt() const { return DS; } in getDeclStmt()
329 explicit SimpleVariableConstructionContext(const DeclStmt *DS) in SimpleVariableConstructionContext()
355 const DeclStmt *DS, const CXXBindTemporaryExpr *BTE) in CXX17ElidedCopyVariableConstructionContext()
H A DCFG.h1357 void addSyntheticDeclStmt(const DeclStmt *Synthetic, in addSyntheticDeclStmt()
1358 const DeclStmt *Source) { in addSyntheticDeclStmt()
1366 llvm::DenseMap<const DeclStmt *, const DeclStmt *>::const_iterator;
1460 llvm::DenseMap<const DeclStmt *, const DeclStmt *> SyntheticDeclStmts;
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/
H A DByteCodeStmtGen.cpp118 return visitDeclStmt(cast<DeclStmt>(S)); in visitStmt()
144 bool ByteCodeStmtGen<Emitter>::visitDeclStmt(const DeclStmt *DS) { in visitDeclStmt()
195 if (const DeclStmt *CondDecl = IS->getConditionVariableDeclStmt()) in visitIfStmt()
H A DByteCodeStmtGen.h62 bool visitDeclStmt(const DeclStmt *DS);
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DLiveVariables.cpp167 void VisitDeclStmt(DeclStmt *DS);
248 const DeclStmt *DS = cast<DeclStmt>(S); in Visit()
382 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
400 if (DeclStmt *DS = dyn_cast<DeclStmt>(element)) { in VisitObjCForCollectionStmt()
H A DConstructionContext.cpp110 const auto *DS = cast<DeclStmt>(ParentItem.getStmt()); in createBoundTemporaryFromLayers()
173 const auto *DS = cast<DeclStmt>(TopItem.getStmt()); in createFromLayers()
H A DUninitializedValues.cpp288 void VisitDeclStmt(DeclStmt *DS);
371 void ClassifyRefs::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
490 void VisitDeclStmt(DeclStmt *ds);
691 if (const auto *DS = dyn_cast<DeclStmt>(FS->getElement())) { in VisitObjCForCollectionStmt()
772 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
H A DCFG.cpp567 CFGBlock *VisitDeclStmt(DeclStmt *DS);
568 CFGBlock *VisitDeclSubExpr(DeclStmt *DS);
768 LocalScope* addLocalScopeForDeclStmt(DeclStmt *DS,
1947 if (DeclStmt *DS = dyn_cast<DeclStmt>(SI)) in addLocalScopeForStmt()
1955 if (DeclStmt *DS = dyn_cast<DeclStmt>(S->stripLabelLikeStatements())) in addLocalScopeForStmt()
1961 LocalScope* CFGBuilder::addLocalScopeForDeclStmt(DeclStmt *DS, in addLocalScopeForDeclStmt()
2229 return VisitDeclStmt(cast<DeclStmt>(S)); in Visit()
2805 CFGBlock *CFGBuilder::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
2818 for (DeclStmt::reverse_decl_iterator I = DS->decl_rbegin(), in VisitDeclStmt()
2826 DeclStmt *DSNew = new (Context) DeclStmt(DG, D->getLocation(), GetEndLoc(D)); in VisitDeclStmt()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DVarBypassDetector.cpp87 const DeclStmt *DS = cast<DeclStmt>(S); in BuildScopeInformation()
H A DCGCoroutine.cpp351 void addCopy(DeclStmt const *PM) { in addCopy()
488 auto *GroDeclStmt = dyn_cast<DeclStmt>(S.getResultDecl()); in EmitGroAlloca()
625 ParamReplacer.addCopy(cast<DeclStmt>(PM)); in EmitCoroutineBody()
/netbsd-src/external/apache2/llvm/dist/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()
419 DeclStmt *Dcl;
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp181 if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) { in isPossiblyEscaped()
H A DCheckerHelpers.cpp92 } else if (auto PD = dyn_cast_or_null<DeclStmt>(S)) { in parseAssignment()
/netbsd-src/external/apache2/llvm/dist/clang/docs/
H A DClangCheck.rst28 (DeclStmt 0x7ff3a302a9f8 <line:2:3, line:3:1>
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaStmt.cpp80 return new (Context) DeclStmt(DG, StartLoc, EndLoc); in ActOnDeclStmt()
415 for (; i != NumElts && isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt()
419 for (; i != NumElts && !isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt()
423 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin(); in ActOnCompoundStmt()
2101 if (DeclStmt *DS = dyn_cast_or_null<DeclStmt>(First)) { in ActOnForStmt()
2254 if (DeclStmt *DS = dyn_cast<DeclStmt>(First)) { in ActOnObjCForCollectionStmt()
2451 DeclStmt *DS = dyn_cast<DeclStmt>(First); in ActOnCXXForRangeStmt()
2710 DeclStmt *RangeDS = cast<DeclStmt>(RangeDecl); in BuildCXXForRangeStmt()
2714 DeclStmt *LoopVarDS = cast<DeclStmt>(LoopVarDecl); in BuildCXXForRangeStmt()
3015 InitStmt, RangeDS, cast_or_null<DeclStmt>(BeginDeclStmt.get()), in BuildCXXForRangeStmt()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DExprEngine.h56 class DeclStmt; variable
345 void processStaticInitializer(const DeclStmt *DS,
489 void VisitDeclStmt(const DeclStmt *DS, ExplodedNode *Pred,

1234