Home
last modified time | relevance | path

Searched refs:decl_begin (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseAutoCheck.cpp327 const auto *V = cast<VarDecl>(*D->decl_begin()); in replaceIterators()
341 const auto *FirstDecl = dyn_cast<VarDecl>(*D->decl_begin()); in replaceExpr()
373 if (Dec == *D->decl_begin()) in replaceExpr()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DIsolateDeclarationCheck.cpp111 std::size_t DeclCount = std::distance(DS->decl_begin(), DS->decl_end()); in declRanges()
127 const auto *FirstDecl = dyn_cast<VarDecl>(*DS->decl_begin()); in declRanges()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DConstCorrectnessCheck.cpp28 InnerMatcher, Node.decl_begin(), Node.decl_end(), Finder, in AST_MATCHER_P()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmtDataCollectors.td211 auto numDecls = std::distance(S->decl_begin(), S->decl_end());
H A DStmt.h1347 decl_range decls() { return decl_range(decl_begin(), decl_end()); } in decls()
1350 return decl_const_range(decl_begin(), decl_end()); in decls()
1353 decl_iterator decl_begin() { return DG.begin(); } in decl_begin() function
1355 const_decl_iterator decl_begin() const { return DG.begin(); } in decl_begin() function
1365 return reverse_decl_iterator(decl_begin()); in decl_rend()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DExprEngineC.cpp573 if (isa<TypedefNameDecl>(*DS->decl_begin())) { in VisitDeclStmt()
586 const VarDecl *VD = dyn_cast_or_null<VarDecl>(*DS->decl_begin()); in VisitDeclStmt()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4467 return std::distance(Node.decl_begin(), Node.decl_end()) == (ptrdiff_t)N; in AST_MATCHER_P()
4491 const unsigned NumDecls = std::distance(Node.decl_begin(), Node.decl_end()); in AST_MATCHER_P2()
4494 DeclStmt::const_decl_iterator Iterator = Node.decl_begin(); in AST_MATCHER_P2()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp431 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin(); in ActOnCompoundStmt()
2294 return StmtError(Diag((*DS->decl_begin())->getLocation(), in ActOnObjCForCollectionStmt()
H A DSemaOpenMP.cpp14601 PreInits.append(PI->decl_begin(), PI->decl_end()); in ActOnOpenMPTileDirective()
14604 PreInits.append(PI->decl_begin(), PI->decl_end()); in ActOnOpenMPTileDirective()
14846 PreInits.append(PI->decl_begin(), PI->decl_end()); in ActOnOpenMPUnrollDirective()
14849 PreInits.append(PI->decl_begin(), PI->decl_end()); in ActOnOpenMPUnrollDirective()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp5583 RewriteObjCQualifiedInterfaceTypes(*DS->decl_begin()); in RewriteFunctionBodyOrGlobalInitializer()
5586 for (DeclStmt::decl_iterator DI = DS->decl_begin(), DE = DS->decl_end(); in RewriteFunctionBodyOrGlobalInitializer()
5600 RewriteByRefVar(VD, (DI == DS->decl_begin()), ((DI+1) == DE)); in RewriteFunctionBodyOrGlobalInitializer()
H A DRewriteObjC.cpp4688 RewriteObjCQualifiedInterfaceTypes(*DS->decl_begin()); in RewriteFunctionBodyOrGlobalInitializer()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCFG.cpp2845 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()