| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | StmtCXX.h | 146 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() 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() 177 const DeclStmt *getEndStmt() const { in getEndStmt() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | StmtCXX.cpp | 47 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 D | ParentMapContext.cpp | 166 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()
|
| /llvm-project-15.0.7/clang/test/AST/HLSL/ |
| H A D | vector-alias.hlsl | 26 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:24:3, col:43> 32 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:30:3, col:32> 38 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:36:3, col:48> 44 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:42:3, col:36> 50 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:48:3, col:42>
|
| H A D | vector-constructors.hlsl | 56 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:54:3, col:29> 68 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:66:3, col:29> 79 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:77:3, col:29> 93 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:91:3, col:33> 109 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:107:3, col:29> 127 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:125:3, col:53> 136 // CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:134:3, col:53>
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseAutoCheck.cpp | 287 void UseAutoCheck::replaceIterators(const DeclStmt *D, ASTContext *Context) { in replaceIterators() 339 const DeclStmt *D, ASTContext *Context, in replaceExpr() 419 if (const auto *Decl = Result.Nodes.getNodeAs<DeclStmt>(IteratorDeclStmtId)) { in check() 422 Result.Nodes.getNodeAs<DeclStmt>(DeclWithNewId)) { in check() 428 Result.Nodes.getNodeAs<DeclStmt>(DeclWithCastId)) { in check() 437 Result.Nodes.getNodeAs<DeclStmt>(DeclWithTemplateCastId)) { in check()
|
| H A D | UseAutoCheck.h | 29 void replaceIterators(const DeclStmt *D, ASTContext *Context); 30 void replaceExpr(const DeclStmt *D, ASTContext *Context,
|
| H A D | LoopConvertUtils.h | 41 typedef llvm::DenseMap<const clang::VarDecl *, const clang::DeclStmt *> 85 bool VisitDeclStmt(clang::DeclStmt *Statement); 324 const DeclStmt *getAliasDecl() const { return AliasDecl; } in getAliasDecl() 356 bool VisitDeclStmt(DeclStmt *S); 382 const DeclStmt *AliasDecl;
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckerDocumentation.cpp | 37 check::PostStmt<DeclStmt>, 82 void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const; 329 void CheckerDocumentation::checkPostStmt(const DeclStmt *DS, in checkPostStmt()
|
| H A D | UndefinedAssignmentChecker.cpp | 87 if (const DeclStmt *DS = dyn_cast<DeclStmt>(StoreE)) { in checkBind()
|
| H A D | VLASizeChecker.cpp | 34 : 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()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | UnnecessaryCopyInitialization.h | 39 const DeclStmt &Stmt, bool IssueFix, 43 const Stmt &BlockStmt, const DeclStmt &Stmt,
|
| H A D | UnnecessaryCopyInitialization.cpp | 55 void recordRemoval(const DeclStmt &Stmt, ASTContext &Context, in recordRemoval() 272 const auto *Stmt = Result.Nodes.getNodeAs<DeclStmt>("declStmt"); in check() 307 const VarDecl &Var, const Stmt &BlockStmt, const DeclStmt &Stmt, in handleCopyFromMethodReturn() 339 const DeclStmt &Stmt, bool IssueFix, ASTContext &Context) { in handleCopyFromLocalVar()
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | c-index-getCursor-test.m | 117 // CHECK: [45:11 - 45:12] DeclStmt= 124 // CHECK: [46:18 - 46:19] DeclStmt= 133 // CHECK: [47:26 - 47:27] DeclStmt= 139 // CHECK: [48:14 - 48:15] DeclStmt=
|
| H A D | annotate-literals.m | 60 // CHECK-LITERALS: Punctuation: ";" [41:27 - 41:28] DeclStmt= 79 // CHECK-LITERALS: Punctuation: ";" [44:26 - 44:27] DeclStmt= 87 // CHECK-LITERALS: Punctuation: ";" [45:16 - 45:17] DeclStmt=
|
| H A D | annotate-subscripting.m | 56 // CHECK: Punctuation: ";" [25:27 - 25:28] DeclStmt= 92 // CHECK: Punctuation: ";" [35:59 - 35:60] DeclStmt=
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | IsolateDeclarationCheck.cpp | 21 AST_MATCHER(DeclStmt, isSingleDecl) { return Node.isSingleDecl(); } in AST_MATCHER() argument 22 AST_MATCHER(DeclStmt, onlyDeclaresVariables) { in AST_MATCHER() argument 109 declRanges(const DeclStmt *DS, const SourceManager &SM, in declRanges() 248 const auto *WholeDecl = Result.Nodes.getNodeAs<DeclStmt>("decl_stmt"); in check()
|
| H A D | ElseAfterReturnCheck.cpp | 85 const auto *InitDeclStmt = dyn_cast_or_null<DeclStmt>(If->getInit()); in checkInitDeclUsageInElse() 108 if (isa<DeclStmt>(Node)) in containsDeclInScope() 112 return isa<DeclStmt>(SubNode); in containsDeclInScope() 279 const DeclStmt *VDeclStmt = If->getConditionVariableDeclStmt(); in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | ProBoundsArrayToPointerDecayCheck.cpp | 22 ast_matchers::internal::Matcher<DeclStmt>, InnerMatcher) { in AST_MATCHER_P() argument 23 for (const DeclStmt *Stmt : {Node.getBeginStmt(), Node.getEndStmt()}) in AST_MATCHER_P()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | ByteCodeStmtGen.cpp | 118 return visitDeclStmt(cast<DeclStmt>(S)); in visitStmt() 144 bool ByteCodeStmtGen<Emitter>::visitDeclStmt(const DeclStmt *DS) { in visitDeclStmt() 201 if (const DeclStmt *CondDecl = IS->getConditionVariableDeclStmt()) in visitIfStmt()
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | RegisterCustomCheckersTest.cpp | 91 : public Checker<check::PreStmt<DeclStmt>> { 96 void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const { in checkPreStmt() 127 class CHECKER_NAME : public Checker<check::PreStmt<DeclStmt>> { \ 132 void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const {} \
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | VarBypassDetector.cpp | 87 const DeclStmt *DS = cast<DeclStmt>(S); in BuildScopeInformation()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTStructExtractor.cpp | 68 DeclStmt *curr_decl_stmt = dyn_cast<DeclStmt>(curr_stmt); in ExtractFromFunctionDecl()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | LiveVariables.cpp | 172 void VisitDeclStmt(DeclStmt *DS); 253 const DeclStmt *DS = cast<DeclStmt>(S); in Visit() 395 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt() 421 if (DeclStmt *DS = dyn_cast<DeclStmt>(element)) { in VisitObjCForCollectionStmt()
|