Lines Matching refs:IndexCtx

23     if (!IndexCtx.shouldIndex(D)) return true;                                 \
37 IndexingContext &IndexCtx; member in __anonf10645d10111::IndexingDeclVisitor
41 : IndexCtx(indexCtx) { } in IndexingDeclVisitor()
56 IndexCtx.indexBody(LocInfo.getAsExpr(), Parent, DC); in handleTemplateArgumentLoc()
59 IndexCtx.indexTypeSourceInfo(LocInfo.getAsTypeSourceInfo(), Parent, DC); in handleTemplateArgumentLoc()
63 IndexCtx.indexNestedNameSpecifierLoc(TALoc.getTemplateQualifierLoc(), in handleTemplateArgumentLoc()
69 IndexCtx.handleReference(TTD, TALoc.getTemplateNameLoc(), Parent, DC); in handleTemplateArgumentLoc()
93 IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), Parent, in handleDeclarator()
96 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent); in handleDeclarator()
101 IndexCtx.indexBody(Parm->getDefaultArg(), Parent); in handleDeclarator()
103 if (IndexCtx.shouldIndexFunctionLocalSymbols()) { in handleDeclarator()
107 if (IndexCtx.shouldIndexParametersInDeclarations() || in handleDeclarator()
109 IndexCtx.handleDecl(Parm); in handleDeclarator()
112 IndexCtx.handleDecl(Parm); in handleDeclarator()
114 IndexCtx.handleDecl(Parm); in handleDeclarator()
117 if (IndexCtx.shouldIndexParametersInDeclarations() || in handleDeclarator()
121 IndexCtx.handleDecl(PI); in handleDeclarator()
136 IndexCtx.indexBody(C, Parent); in handleDeclarator()
177 IndexCtx.handleReference(D, AttrLoc, cast<NamedDecl>(D->getDeclContext()), in handleObjCMethod()
181 TRY_DECL(D, IndexCtx.handleDecl(D, MethodLoc, Roles, Relations)); in handleObjCMethod()
182 IndexCtx.indexTypeSourceInfo(D->getReturnTypeSourceInfo(), D); in handleObjCMethod()
192 IndexCtx.indexBody(Body, D, D); in handleObjCMethod()
207 if (!IndexCtx.getLangOpts().CPlusPlus) in gatherTemplatePseudoOverrides()
259 TRY_DECL(D, IndexCtx.handleDecl(D, Roles, Relations)); in VisitFunctionDecl()
263 IndexCtx.handleReference(Ctor->getParent(), Ctor->getLocation(), in VisitFunctionDecl()
270 IndexCtx.indexTypeSourceInfo(Init->getTypeSourceInfo(), D); in VisitFunctionDecl()
272 IndexCtx.handleReference(Member, Init->getMemberLocation(), D, D, in VisitFunctionDecl()
274 IndexCtx.indexBody(Init->getInit(), D, D); in VisitFunctionDecl()
279 IndexCtx.handleReference(Dtor->getParent(), in VisitFunctionDecl()
285 IndexCtx.handleReference(Guide->getDeducedTemplate()->getTemplatedDecl(), in VisitFunctionDecl()
299 IndexCtx.indexBody(Body, D, D); in VisitFunctionDecl()
308 TRY_DECL(D, IndexCtx.handleDecl(D, SymbolRoleSet(), Relations)); in VisitVarDecl()
310 IndexCtx.indexBody(D->getInit(), D); in VisitVarDecl()
316 TRY_DECL(Binding, IndexCtx.handleDecl(Binding)); in VisitDecompositionDecl()
323 TRY_DECL(D, IndexCtx.handleDecl(D, SymbolRoleSet(), Relations)); in VisitFieldDecl()
326 IndexCtx.indexBody(D->getBitWidth(), D); in VisitFieldDecl()
328 IndexCtx.indexBody(D->getInClassInitializer(), D); in VisitFieldDecl()
337 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCIvarDecl()
343 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitMSPropertyDecl()
349 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitEnumConstantDecl()
350 IndexCtx.indexBody(D->getInitExpr(), D); in VisitEnumConstantDecl()
358 TRY_DECL(D, IndexCtx.handleDecl(D, SymbolRoleSet(), Relations)); in VisitTypedefNameDecl()
359 IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), D); in VisitTypedefNameDecl()
370 IndexCtx.indexTagDecl(D, Relations); in VisitTagDecl()
374 return IndexCtx.handleDecl(D, D->getLocation(), SymbolRoleSet(), in VisitTagDecl()
386 IndexCtx.indexTypeSourceInfo(TSI, ED, ED, /*isBase=*/true); in VisitEnumDecl()
401 TRY_TO(IndexCtx.handleReference(PD, Loc, ContD, ContD, roles, in handleReferencedProtocols()
409 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCInterfaceDecl()
417 TRY_TO(IndexCtx.handleReference(TD, SuperLoc, D, D, in VisitObjCInterfaceDecl()
425 TRY_TO(IndexCtx.handleReference(SuperD, SuperLoc, D, D, superRoles, in VisitObjCInterfaceDecl()
430 TRY_TO(IndexCtx.indexDeclContext(D)); in VisitObjCInterfaceDecl()
432 return IndexCtx.handleReference(D, D->getLocation(), nullptr, in VisitObjCInterfaceDecl()
440 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCProtocolDecl()
443 TRY_TO(IndexCtx.indexDeclContext(D)); in VisitObjCProtocolDecl()
445 return IndexCtx.handleReference(D, D->getLocation(), nullptr, in VisitObjCProtocolDecl()
457 IndexCtx.handleDecl(Class); in VisitObjCImplementationDecl()
459 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCImplementationDecl()
466 IndexCtx.indexDecl(I); in VisitObjCImplementationDecl()
471 IndexCtx.indexDecl(I); in VisitObjCImplementationDecl()
478 if (!IndexCtx.shouldIndex(D)) in VisitObjCCategoryDecl()
483 TRY_TO(IndexCtx.handleReference(C, D->getLocation(), D, D, SymbolRoleSet(), in VisitObjCCategoryDecl()
490 TRY_TO(IndexCtx.handleDecl(D, CategoryLoc)); in VisitObjCCategoryDecl()
493 TRY_TO(IndexCtx.indexDeclContext(D)); in VisitObjCCategoryDecl()
503 TRY_TO(IndexCtx.handleReference(C, D->getLocation(), D, D, in VisitObjCCategoryImplDecl()
508 TRY_DECL(D, IndexCtx.handleDecl(D, CategoryLoc)); in VisitObjCCategoryImplDecl()
509 IndexCtx.indexDeclContext(D); in VisitObjCCategoryImplDecl()
530 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCPropertyDecl()
532 IndexCtx.indexTypeSourceInfo(attr->getInterfaceLoc(), D, in VisitObjCPropertyDecl()
534 IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), D); in VisitObjCPropertyDecl()
551 TRY_DECL(D, IndexCtx.handleDecl(D, Loc, Roles, Relations)); in VisitObjCPropertyImplDecl()
561 IndexCtx.handleDecl(MD, Loc, AccessorMethodRoles, {}, Container); in VisitObjCPropertyImplDecl()
565 IndexCtx.handleDecl(MD, Loc, AccessorMethodRoles, {}, Container); in VisitObjCPropertyImplDecl()
583 TRY_DECL(IvarD, IndexCtx.handleDecl(IvarD, IvarLoc, IvarRoles)); in VisitObjCPropertyImplDecl()
585 IndexCtx.handleReference(IvarD, D->getPropertyIvarDeclLoc(), nullptr, in VisitObjCPropertyImplDecl()
593 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitNamespaceDecl()
594 IndexCtx.indexDeclContext(D); in VisitNamespaceDecl()
599 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitNamespaceAliasDecl()
600 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), D); in VisitNamespaceAliasDecl()
601 IndexCtx.handleReference(D->getAliasedNamespace(), D->getTargetNameLoc(), D, in VisitNamespaceAliasDecl()
607 IndexCtx.handleDecl(D); in VisitUsingDecl()
611 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUsingDecl()
620 IndexCtx.handleReference(I->getUnderlyingDecl(), D->getLocation(), Parent, in VisitUsingDecl()
633 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUsingDirectiveDecl()
636 return IndexCtx.handleReference(D->getNominatedNamespaceAsWritten(), in VisitUsingDirectiveDecl()
643 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitUnresolvedUsingValueDecl()
646 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUnresolvedUsingValueDecl()
652 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitUnresolvedUsingTypenameDecl()
655 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUnresolvedUsingTypenameDecl()
672 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), D); in VisitClassTemplateSpecializationDecl()
673 IndexCtx.indexTagDecl( in VisitClassTemplateSpecializationDecl()
702 if (IndexCtx.shouldIndexTemplateParameters()) in indexTemplateParameters()
703 IndexCtx.handleDecl(TP); in indexTemplateParameters()
709 IndexCtx.handleReference(C->getNamedConcept(), C->getConceptNameLoc(), in indexTemplateParameters()
712 IndexCtx.indexTypeSourceInfo(NTTP->getTypeSourceInfo(), Parent); in indexTemplateParameters()
723 IndexCtx.indexBody(R, Parent); in indexTemplateParameters()
744 IndexCtx.indexBody(E, D); in VisitConceptDecl()
745 return IndexCtx.handleDecl(D); in VisitConceptDecl()
761 IndexCtx.indexTypeSourceInfo(Ty, cast<NamedDecl>(D->getDeclContext())); in VisitFriendDecl()
767 return IndexCtx.importedModule(D); in VisitImportDecl()
771 IndexCtx.indexBody(D->getAssertExpr(), in VisitStaticAssertDecl()