reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/include/clang/AST/ASTNodeTraverser.h
  230     for (const auto *D : (Deserialize ? DC->decls() : DC->noload_decls()))
tools/clang/include/clang/AST/DeclBase.h
 2058       while (*Current && !isa<SpecificDecl>(*Current))
 2058       while (*Current && !isa<SpecificDecl>(*Current))
 2086     value_type operator*() const { return cast<SpecificDecl>(*Current); }
 2134       while (*Current &&
 2135              (!isa<SpecificDecl>(*Current) ||
 2136               (Acceptable && !(cast<SpecificDecl>(*Current)->*Acceptable)())))
 2164     value_type operator*() const { return cast<SpecificDecl>(*Current); }
tools/clang/include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h
   84       Decl *Child = *I;
  100         Decl *Sibling = *I;
tools/clang/include/clang/AST/RecursiveASTVisitor.h
 1388   for (auto *Child : DC->decls()) {
tools/clang/lib/ARCMigrate/ObjCMT.cpp
 1857       FileID FID = PP.getSourceManager().getFileID((*D)->getLocation());
 1864       if (ObjCInterfaceDecl *CDecl = dyn_cast<ObjCInterfaceDecl>(*D))
 1867       if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(*D)) {
 1871       else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(*D)) {
 1877                dyn_cast<ObjCImplementationDecl>(*D)) {
 1882       else if (const EnumDecl *ED = dyn_cast<EnumDecl>(*D)) {
 1889           const TypedefDecl *TD = dyn_cast<TypedefDecl>(*N);
 1896       else if (const TypedefDecl *TD = dyn_cast<TypedefDecl>(*D)) {
 1904         if (const EnumDecl *ED = dyn_cast<EnumDecl>(*N)) {
 1907               if (const TypedefDecl *TDF = dyn_cast<TypedefDecl>(*N)) {
 1923       else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*D)) {
 1929       if (ObjCContainerDecl *CDecl = dyn_cast<ObjCContainerDecl>(*D)) {
 1942             ImplD = dyn_cast<ObjCImplementationDecl>(*D)) {
tools/clang/lib/AST/ASTImporter.cpp
 1680   for (auto *From : FromDC->decls()) {
 1727   for (auto *D : FromRD->decls()) {
 7807   for (const auto *D : Owner->decls()) {
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
 1626   for (const auto *D : Owner->noload_decls()) {
tools/clang/lib/AST/DeclBase.cpp
 1581   for (auto *D : DCtx->noload_decls()) {
tools/clang/lib/AST/DeclPrinter.cpp
  380     if (isa<ObjCIvarDecl>(*D))
  389     if (auto FD = dyn_cast<FunctionDecl>(*D))
  406     QualType CurDeclType = getDeclType(*D);
  411         Decls.push_back(*D);
  422     if (isa<TagDecl>(*D) && !cast<TagDecl>(*D)->isFreeStanding()) {
  422     if (isa<TagDecl>(*D) && !cast<TagDecl>(*D)->isFreeStanding()) {
  423       Decls.push_back(*D);
  427     if (isa<AccessSpecDecl>(*D)) {
  437     Visit(*D);
  441     if (isa<OMPThreadPrivateDecl>(*D) || isa<OMPDeclareReductionDecl>(*D) ||
  441     if (isa<OMPThreadPrivateDecl>(*D) || isa<OMPDeclareReductionDecl>(*D) ||
  442         isa<OMPDeclareMapperDecl>(*D) || isa<OMPRequiresDecl>(*D) ||
  442         isa<OMPDeclareMapperDecl>(*D) || isa<OMPRequiresDecl>(*D) ||
  443         isa<OMPAllocateDecl>(*D))
  445     else if (isa<ObjCMethodDecl>(*D) && cast<ObjCMethodDecl>(*D)->hasBody())
  445     else if (isa<ObjCMethodDecl>(*D) && cast<ObjCMethodDecl>(*D)->hasBody())
  447     else if (auto FD = dyn_cast<FunctionDecl>(*D)) {
  452     } else if (auto TD = dyn_cast<FunctionTemplateDecl>(*D)) {
  457     } else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) ||
  457     } else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) ||
  458              isa<ObjCImplementationDecl>(*D) ||
  459              isa<ObjCInterfaceDecl>(*D) ||
  460              isa<ObjCProtocolDecl>(*D) ||
  461              isa<ObjCCategoryImplDecl>(*D) ||
  462              isa<ObjCCategoryDecl>(*D))
  464     else if (isa<EnumConstantDecl>(*D)) {
  475         ((isa<FunctionDecl>(*D) &&
  476           cast<FunctionDecl>(*D)->doesThisDeclarationHaveABody()) ||
  477          (isa<FunctionTemplateDecl>(*D) &&
  478           cast<FunctionTemplateDecl>(*D)->getTemplatedDecl()->doesThisDeclarationHaveABody())))
 1025     Visit(*D->decls_begin());
tools/clang/lib/AST/ExternalASTMerger.cpp
  535     for (const Decl *SourceDecl : SourceDC.get()->decls()) {
tools/clang/lib/AST/ODRHash.cpp
  484   for (Decl *SubDecl : Record->decls()) {
  585   for (Decl *SubDecl : Function->decls()) {
  611   for (Decl *SubDecl : Enum->decls()) {
tools/clang/lib/AST/VTableBuilder.cpp
 2866   for (const auto *D : RD->decls()) {
tools/clang/lib/Analysis/CallGraph.cpp
  144   for (auto *I : D->decls())
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 1423     for (const auto *I : record->decls())
 1651   for (const auto *I : RD->decls()) {
tools/clang/lib/CodeGen/CodeGenModule.cpp
 2710       for (const Decl *Member : Dtor->getParent()->decls())
 5205   for (auto *I : DC->decls()) {
 5273     for (auto *I : cast<CXXRecordDecl>(D)->decls())
tools/clang/lib/CodeGen/ModuleBuilder.cpp
  228         for (Decl *Member : D->decls()) {
  239         for (Decl *Member : D->decls()) {
tools/clang/lib/CrossTU/CrossTranslationUnit.cpp
  211   for (const Decl *D : DC->decls()) {
tools/clang/lib/Frontend/ASTMerge.cpp
   61     for (auto *D : TU->decls()) {
tools/clang/lib/Frontend/ASTUnit.cpp
  968       for (auto *I : NSD->decls())
tools/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
  140     for (const auto *D : Decls)
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  747       if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>((*DI))) {
  752             if (isa<ObjCInterfaceDecl>(*DI) &&
  753                 !cast<ObjCInterfaceDecl>(*DI)->isThisDeclarationADefinition() &&
  754                 StartLoc == (*DI)->getBeginLoc())
  755               DG.push_back(*DI);
  772       if (ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>((*DI))) {
  777             if (isa<ObjCProtocolDecl>(*DI) &&
  778                 !cast<ObjCProtocolDecl>(*DI)->isThisDeclarationADefinition() &&
  779                 StartLoc == (*DI)->getBeginLoc())
  780               DG.push_back(*DI);
  791       HandleTopLevelSingleDecl(*DI);
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  679       if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>((*DI))) {
  684             if (isa<ObjCInterfaceDecl>(*DI) &&
  685                 !cast<ObjCInterfaceDecl>(*DI)->isThisDeclarationADefinition() &&
  686                 StartLoc == (*DI)->getBeginLoc())
  687               DG.push_back(*DI);
  698       if (ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>((*DI))) {
  703             if (isa<ObjCProtocolDecl>(*DI) &&
  704                 !cast<ObjCProtocolDecl>(*DI)->isThisDeclarationADefinition() &&
  705                 StartLoc == (*DI)->getBeginLoc())
  706               DG.push_back(*DI);
  717       HandleTopLevelSingleDecl(*DI);
tools/clang/lib/Index/IndexDecl.cpp
  445     for (const auto *I : D->decls()) {
  749   for (const auto *I : DC->decls())
tools/clang/lib/Sema/Sema.cpp
  789     if (const CXXMethodDecl *M = dyn_cast<CXXMethodDecl>(*I))
  792     else if (const FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(*I))
  799     else if (const CXXRecordDecl *R = dyn_cast<CXXRecordDecl>(*I)) {
tools/clang/lib/Sema/SemaAccess.cpp
 1134   for (const auto *I : DeclaringClass->decls()) {
tools/clang/lib/Sema/SemaCodeComplete.cpp
 7076   for (const auto *D : Ctx->decls()) {
 7140   for (const auto *D : Ctx->decls()) {
 7235   for (const auto *D : TU->decls())
 7302   for (const auto *D : Container->decls())
tools/clang/lib/Sema/SemaDecl.cpp
 1832   for (auto *TmpD : D->decls()) {
 2294         for (auto *D : NewTag->decls()) {
 4699   for (auto *D : AnonRecord->decls()) {
 4779   for (const auto *I : Record->decls()) {
 4898     for (auto *Mem : Record->decls()) {
13579     for (Decl *NPD : FD->decls()) {
16430     for (const auto *I : Record->decls()) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
 3404         for (const auto *D : cast<CXXRecordDecl>(CurContext)->decls()) {
 3810     for (auto *I : RD->decls()) {
 5062   for (auto *Mem : ClassDecl->decls()) {
 5720   for (auto *D : RD->decls()) {
 5767   for (Decl *Member : Class->decls()) {
 5823   for (Decl *Member : Class->decls()) {
 5891     for (Decl *Member : Class->decls()) {
 5937   for (Decl *Member : Class->decls()) {
 9285     for (auto *I : PrevNS->decls())
tools/clang/lib/Sema/SemaModule.cpp
  685   for (auto *D : DC->decls())
  701     for (auto *Child : ED->decls()) {
tools/clang/lib/Sema/SemaStmt.cpp
 3426   for (auto *TmpD : R->decls())
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
 2157   for (auto *Member : Pattern->decls()) {
 2667   for (auto *D : Instantiation->decls()) {
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
 5261     if (isInstantiationOf(Ctx, D, *first))
 5262       return cast<NamedDecl>(*first);
tools/clang/lib/Serialization/ASTCommon.h
   99   for (Decl *LexicalD : DC->decls()) {
tools/clang/lib/Serialization/ASTReader.cpp
10148     for (auto *CanonMember : CanonDef->decls()) {
10563         for (auto *D : Record->decls()) {
11967       for (auto *D : Enum->decls()) {
tools/clang/lib/Serialization/ASTWriter.cpp
 3236   for (const auto *D : DC->decls()) {
 4112       for (Decl *ChildD : cast<CXXRecordDecl>(DC)->decls())
 4907   for (const auto *D : TU->noload_decls()) {
 6382     for (auto *Child : DC->decls())
tools/clang/lib/StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp
   98   for (const auto *I : C->decls())
tools/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp
   84   for (auto *CurrDecl : Context.getTranslationUnitDecl()->decls()) {
tools/clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
   73     for (const Decl *D : DC->decls())
tools/clang/tools/extra/clang-doc/Serialize.cpp
  460         for (const auto &Decl : Base->decls())
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
  193     for (const auto *D : Ctx->decls()) {
tools/clang/tools/extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp
   34   const auto *ChildNamespace = dyn_cast<const NamespaceDecl>(*Decls.begin());
tools/clang/tools/extra/clang-tidy/readability/RedundantDeclarationCheck.cpp
   66     for (const auto Other : VD->getDeclContext()->decls()) {
tools/clang/tools/extra/clangd/FindSymbols.cpp
  216     for (auto *C : Scope->decls())
tools/clang/tools/extra/clangd/HeaderSourceSwitch.cpp
  139         for (auto *D : Scope->decls())
tools/clang/tools/libclang/CIndex.cpp
  629     Decl *D = *I;
  990     Decl *D_next = *next;
 1036   for (auto *SubDecl : D->decls()) {
tools/clang/unittests/AST/ASTImporterTest.cpp
  302     for (Decl *D : getToContext().getTranslationUnitDecl()->decls()) {
 1322     for (auto Child : TU->decls()) {
 1348     for (auto Child : TU->decls()) {
 1376     for (auto Child : TU->decls()) {
 1424   for (Decl *D : Node.decls()) {
 4284   for (Decl *D : DC->decls()) {
tools/clang/unittests/CrossTU/CrossTranslationUnitTest.cpp
   33       for (const Decl *D : TU->decls()) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
   80       TransformTopLevelDecl(*decl_iterator);
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
  119       ExtractFromTopLevelDecl(*decl_iterator);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
  621     Decl *decl = *iter;
tools/lldb/source/Symbol/ClangASTContext.cpp
 7997                 llvm::dyn_cast<clang::FieldDecl>(*di)) {
 8015                        llvm::dyn_cast<clang::IndirectFieldDecl>(*di)) {
 9993         for (clang::Decl *child : it->second->decls()) {
10108         for (clang::Decl *child : it->second->decls()) {
tools/lldb/source/Symbol/ClangASTImporter.cpp
  202       for (clang::Decl *decl : context->decls()) {
  238         for (clang::Decl *child_decl : decl_context->decls()) {
  722     for (Decl *origin_child_decl : origin_tag_decl->decls()) {
  753       for (Decl *origin_child_decl : origin_interface_decl->decls()) {
usr/include/c++/7.4.0/bits/stl_algobase.h
  294 	    *__result = *__first;