/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | StmtCXX.h | 147 CXXForRangeStmt(Stmt *InitStmt, DeclStmt *Range, DeclStmt *Begin, 148 DeclStmt *End, Expr *Cond, Expr *Inc, DeclStmt *LoopVar, 162 DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); } in getRangeStmt() 163 DeclStmt *getBeginStmt() { in getBeginStmt() 164 return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]); in getBeginStmt() 166 DeclStmt *getEndStmt() { return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); } in getEndStmt() 169 DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); } in getLoopVarStmt() 172 const DeclStmt *getRangeStmt() const { in getRangeStmt() 173 return cast<DeclStmt>(SubExprs[RANGE]); in getRangeStmt() 175 const DeclStmt *getBeginStmt() const { in getBeginStmt() [all …]
|
H A D | Stmt.h | 1497 class DeclStmt : public Stmt { 1502 DeclStmt(DeclGroupRef dg, SourceLocation startLoc, SourceLocation endLoc) 1506 explicit DeclStmt(EmptyShell Empty) : Stmt(DeclStmtClass, Empty) {} 1536 auto Children = const_cast<DeclStmt *>(this)->children(); 2276 DeclStmt *getConditionVariableDeclStmt() { 2277 return hasVarStorage() ? static_cast<DeclStmt *>( 2282 const DeclStmt *getConditionVariableDeclStmt() const { 2283 return hasVarStorage() ? static_cast<DeclStmt *>( 2288 void setConditionVariableDeclStmt(DeclStmt *CondVar) { 2513 DeclStmt *getConditionVariableDeclStmt() { [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | StmtCXX.cpp | 48 CXXForRangeStmt::CXXForRangeStmt(Stmt *Init, DeclStmt *Range, in CXXForRangeStmt() 49 DeclStmt *BeginStmt, DeclStmt *EndStmt, in CXXForRangeStmt() 50 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, in CXXForRangeStmt() 67 DeclStmt *RangeStmt = getRangeStmt(); in getRangeInit() 78 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl(); in getLoopVariable()
|
H A D | ParentMapContext.cpp | 185 matchParents<DeclStmt, CXXForRangeStmt>(ParentList, this); in getParents() 189 std::get<const DeclStmt *>(AncestorNodes)) in getParents() 193 auto AncestorNodes = matchParents<VarDecl, DeclStmt, CXXForRangeStmt>( in getParents() 198 std::get<const DeclStmt *>(AncestorNodes)) in getParents()
|
H A D | StmtPrinter.cpp | 103 if (auto *DS = dyn_cast<DeclStmt>(S)) in PrintInitStmt() 124 void PrintRawDeclStmt(const DeclStmt *S); 251 void StmtPrinter::PrintRawDeclStmt(const DeclStmt *S) { in PrintRawDeclStmt() 260 void StmtPrinter::VisitDeclStmt(DeclStmt *Node) { in VisitDeclStmt() 325 if (const DeclStmt *DS = If->getConditionVariableDeclStmt()) in PrintRawIfStmt() 367 if (const DeclStmt *DS = Node->getConditionVariableDeclStmt()) in VisitSwitchStmt() 377 if (const DeclStmt *DS = Node->getConditionVariableDeclStmt()) in VisitWhileStmt() 407 if (const DeclStmt *DS = Node->getConditionVariableDeclStmt()) in VisitForStmt() 422 if (auto *DS = dyn_cast<DeclStmt>(Node->getElement())) in VisitObjCForCollectionStmt()
|
H A D | Stmt.cpp | 1000 DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd()); in setConditionVariable() 1038 auto *DS = cast<DeclStmt>(SubExprs[CONDVAR]); in getConditionVariable() 1049 SubExprs[CONDVAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable() 1118 DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd()); in setConditionVariable() 1179 DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd()); in setConditionVariable()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CheckerDocumentation.cpp | 57 check::PostStmt<DeclStmt>, 88 void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const; 339 void CheckerDocumentation::checkPostStmt(const DeclStmt *DS, in checkPostStmt()
|
H A D | VLASizeChecker.cpp | 35 : public Checker<check::PreStmt<DeclStmt>, 61 void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const; 264 void VLASizeChecker::checkPreStmt(const DeclStmt *DS, CheckerContext &C) const { in checkPreStmt()
|
H A D | LLVMConventionsChecker.cpp | 130 void VisitDeclStmt(DeclStmt *DS); 142 void StringRefCheckerVisitor::VisitDeclStmt(DeclStmt *S) { in VisitDeclStmt()
|
H A D | UnreachableCodeChecker.cpp | 203 if (!isa<DeclStmt>(S->getStmt())) in getUnreachableStmt()
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/ |
H A D | ConstructionContext.h | 90 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 D | CFG.h | 1353 void addSyntheticDeclStmt(const DeclStmt *Synthetic, in addSyntheticDeclStmt() 1354 const DeclStmt *Source) { in addSyntheticDeclStmt() 1362 llvm::DenseMap<const DeclStmt *, const DeclStmt *>::const_iterator; 1456 llvm::DenseMap<const DeclStmt *, const DeclStmt *> SyntheticDeclStmts;
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | VarBypassDetector.cpp | 87 const DeclStmt *DS = cast<DeclStmt>(S); in BuildScopeInformation()
|
H A D | CGCoroutine.cpp | 525 void addCopy(DeclStmt const *PM) { in addCopy() 695 auto *GroDeclStmt = dyn_cast_or_null<DeclStmt>(S.getResultDecl()); in EmitGroAlloca() 860 ParamReplacer.addCopy(cast<DeclStmt>(PM)); in EmitCoroutineBody()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | ASTStructExtractor.cpp | 68 DeclStmt *curr_decl_stmt = dyn_cast<DeclStmt>(curr_stmt); in ExtractFromFunctionDecl()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | LiveVariables.cpp | 173 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 D | ConstructionContext.cpp | 110 const auto *DS = cast<DeclStmt>(ParentItem.getStmt()); in createBoundTemporaryFromLayers() 179 const auto *DS = cast<DeclStmt>(TopItem.getStmt()); in createFromLayers()
|
H A D | UninitializedValues.cpp | 303 void VisitDeclStmt(DeclStmt *DS); 386 void ClassifyRefs::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt() 505 void VisitDeclStmt(DeclStmt *ds); 684 if (const auto *DS = dyn_cast<DeclStmt>(FS->getElement())) { in VisitObjCForCollectionStmt() 765 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
|
H A D | CFG.cpp | 585 CFGBlock *VisitDeclStmt(DeclStmt *DS); 586 CFGBlock *VisitDeclSubExpr(DeclStmt *DS); 791 LocalScope* addLocalScopeForDeclStmt(DeclStmt *DS, 2077 if (DeclStmt *DS = dyn_cast<DeclStmt>(SI)) in addLocalScopeForStmt() 2085 if (DeclStmt *DS = dyn_cast<DeclStmt>(S->stripLabelLikeStatements())) in addLocalScopeForStmt() 2091 LocalScope* CFGBuilder::addLocalScopeForDeclStmt(DeclStmt *DS, in addLocalScopeForDeclStmt() 2299 return VisitDeclStmt(cast<DeclStmt>(S)); in Visit() 2906 CFGBlock *CFGBuilder::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt() 2919 for (DeclStmt::reverse_decl_iterator I = DS->decl_rbegin(), in VisitDeclStmt() 2927 DeclStmt *DSNew = new (Context) DeclStmt(DG, D->getLocation(), GetEndLoc(D)); in VisitDeclStmt() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | TransRetainReleaseDealloc.cpp | 229 if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) { in isPlusOneAssignToVar() 365 auto *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild.begin()); in checkForGCDOrXPC()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | LoopUnrolling.cpp | 194 if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) { in isFoundInStmt()
|
H A D | CheckerHelpers.cpp | 94 } else if (auto PD = dyn_cast_or_null<DeclStmt>(S)) { in parseAssignment()
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | ExprEngine.h | 57 class DeclStmt; variable 340 void processStaticInitializer(const DeclStmt *DS, 487 void VisitDeclStmt(const DeclStmt *DS, ExplodedNode *Pred,
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
H A D | ThreadSafetyCommon.h | 54 class DeclStmt; variable 441 til::SExpr *translateDeclStmt(const DeclStmt *S, CallingContext *Ctx);
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaStmt.cpp | 86 return new (Context) DeclStmt(DG, StartLoc, EndLoc); in ActOnDeclStmt() 429 for (; i != NumElts && isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt() 433 for (; i != NumElts && !isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt() 437 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin(); in ActOnCompoundStmt() 2172 if (DeclStmt *DS = dyn_cast_or_null<DeclStmt>(First)) { in ActOnForStmt() 2351 DeclStmt *DS = dyn_cast<DeclStmt>(First); in ActOnCXXForRangeStmt() 2609 DeclStmt *RangeDS = cast<DeclStmt>(RangeDecl); in BuildCXXForRangeStmt() 2613 DeclStmt *LoopVarDS = cast<DeclStmt>(LoopVarDecl); in BuildCXXForRangeStmt() 2922 InitStmt, RangeDS, cast_or_null<DeclStmt>(BeginDeclStmt.get()), in BuildCXXForRangeStmt() 2923 cast_or_null<DeclStmt>(EndDeclStmt.get()), NotEqExpr.get(), in BuildCXXForRangeStmt()
|