Lines Matching refs:IndexCtx
19 if (!IndexCtx.shouldIndex(D)) return true; \
33 IndexingContext &IndexCtx; member in __anonc48810c10111::IndexingDeclVisitor
37 : IndexCtx(indexCtx) { } in IndexingDeclVisitor()
52 IndexCtx.indexBody(LocInfo.getAsExpr(), Parent, DC); in handleTemplateArgumentLoc()
55 IndexCtx.indexTypeSourceInfo(LocInfo.getAsTypeSourceInfo(), Parent, DC); in handleTemplateArgumentLoc()
59 IndexCtx.indexNestedNameSpecifierLoc(TALoc.getTemplateQualifierLoc(), in handleTemplateArgumentLoc()
65 IndexCtx.handleReference(TTD, TALoc.getTemplateNameLoc(), Parent, DC); in handleTemplateArgumentLoc()
89 IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), Parent, in handleDeclarator()
92 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent); in handleDeclarator()
97 IndexCtx.indexBody(Parm->getDefaultArg(), Parent); in handleDeclarator()
99 if (IndexCtx.shouldIndexFunctionLocalSymbols()) { in handleDeclarator()
103 if (IndexCtx.shouldIndexParametersInDeclarations() || in handleDeclarator()
105 IndexCtx.handleDecl(Parm); in handleDeclarator()
108 IndexCtx.handleDecl(Parm); in handleDeclarator()
110 IndexCtx.handleDecl(Parm); in handleDeclarator()
113 if (IndexCtx.shouldIndexParametersInDeclarations() || in handleDeclarator()
117 IndexCtx.handleDecl(PI); in handleDeclarator()
171 IndexCtx.handleReference(D, AttrLoc, cast<NamedDecl>(D->getDeclContext()), in handleObjCMethod()
175 TRY_DECL(D, IndexCtx.handleDecl(D, MethodLoc, Roles, Relations)); in handleObjCMethod()
176 IndexCtx.indexTypeSourceInfo(D->getReturnTypeSourceInfo(), D); in handleObjCMethod()
186 IndexCtx.indexBody(Body, D, D); in handleObjCMethod()
201 if (!IndexCtx.getLangOpts().CPlusPlus) in gatherTemplatePseudoOverrides()
253 TRY_DECL(D, IndexCtx.handleDecl(D, Roles, Relations)); in VisitFunctionDecl()
257 IndexCtx.handleReference(Ctor->getParent(), Ctor->getLocation(), in VisitFunctionDecl()
264 IndexCtx.indexTypeSourceInfo(Init->getTypeSourceInfo(), D); in VisitFunctionDecl()
266 IndexCtx.handleReference(Member, Init->getMemberLocation(), D, D, in VisitFunctionDecl()
268 IndexCtx.indexBody(Init->getInit(), D, D); in VisitFunctionDecl()
273 IndexCtx.handleReference(Dtor->getParent(), in VisitFunctionDecl()
279 IndexCtx.handleReference(Guide->getDeducedTemplate()->getTemplatedDecl(), in VisitFunctionDecl()
293 IndexCtx.indexBody(Body, D, D); in VisitFunctionDecl()
302 TRY_DECL(D, IndexCtx.handleDecl(D, SymbolRoleSet(), Relations)); in VisitVarDecl()
304 IndexCtx.indexBody(D->getInit(), D); in VisitVarDecl()
310 TRY_DECL(Binding, IndexCtx.handleDecl(Binding)); in VisitDecompositionDecl()
317 TRY_DECL(D, IndexCtx.handleDecl(D, SymbolRoleSet(), Relations)); in VisitFieldDecl()
320 IndexCtx.indexBody(D->getBitWidth(), D); in VisitFieldDecl()
322 IndexCtx.indexBody(D->getInClassInitializer(), D); in VisitFieldDecl()
331 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCIvarDecl()
337 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitMSPropertyDecl()
343 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitEnumConstantDecl()
344 IndexCtx.indexBody(D->getInitExpr(), D); in VisitEnumConstantDecl()
352 TRY_DECL(D, IndexCtx.handleDecl(D, SymbolRoleSet(), Relations)); in VisitTypedefNameDecl()
353 IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), D); in VisitTypedefNameDecl()
364 IndexCtx.indexTagDecl(D, Relations); in VisitTagDecl()
368 return IndexCtx.handleDecl(D, D->getLocation(), SymbolRoleSet(), in VisitTagDecl()
386 TRY_TO(IndexCtx.handleReference(PD, Loc, ContD, ContD, roles, in handleReferencedProtocols()
394 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCInterfaceDecl()
402 TRY_TO(IndexCtx.handleReference(TD, SuperLoc, D, D, in VisitObjCInterfaceDecl()
410 TRY_TO(IndexCtx.handleReference(SuperD, SuperLoc, D, D, superRoles, in VisitObjCInterfaceDecl()
415 TRY_TO(IndexCtx.indexDeclContext(D)); in VisitObjCInterfaceDecl()
417 return IndexCtx.handleReference(D, D->getLocation(), nullptr, in VisitObjCInterfaceDecl()
425 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCProtocolDecl()
428 TRY_TO(IndexCtx.indexDeclContext(D)); in VisitObjCProtocolDecl()
430 return IndexCtx.handleReference(D, D->getLocation(), nullptr, in VisitObjCProtocolDecl()
442 IndexCtx.handleDecl(Class); in VisitObjCImplementationDecl()
444 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCImplementationDecl()
451 IndexCtx.indexDecl(I); in VisitObjCImplementationDecl()
456 IndexCtx.indexDecl(I); in VisitObjCImplementationDecl()
463 if (!IndexCtx.shouldIndex(D)) in VisitObjCCategoryDecl()
468 TRY_TO(IndexCtx.handleReference(C, D->getLocation(), D, D, SymbolRoleSet(), in VisitObjCCategoryDecl()
475 TRY_TO(IndexCtx.handleDecl(D, CategoryLoc)); in VisitObjCCategoryDecl()
478 TRY_TO(IndexCtx.indexDeclContext(D)); in VisitObjCCategoryDecl()
488 TRY_TO(IndexCtx.handleReference(C, D->getLocation(), D, D, in VisitObjCCategoryImplDecl()
493 TRY_DECL(D, IndexCtx.handleDecl(D, CategoryLoc)); in VisitObjCCategoryImplDecl()
494 IndexCtx.indexDeclContext(D); in VisitObjCCategoryImplDecl()
515 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCPropertyDecl()
517 IndexCtx.indexTypeSourceInfo(attr->getInterfaceLoc(), D, in VisitObjCPropertyDecl()
519 IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), D); in VisitObjCPropertyDecl()
536 TRY_DECL(D, IndexCtx.handleDecl(D, Loc, Roles, Relations)); in VisitObjCPropertyImplDecl()
546 IndexCtx.handleDecl(MD, Loc, AccessorMethodRoles, {}, Container); in VisitObjCPropertyImplDecl()
550 IndexCtx.handleDecl(MD, Loc, AccessorMethodRoles, {}, Container); in VisitObjCPropertyImplDecl()
568 TRY_DECL(IvarD, IndexCtx.handleDecl(IvarD, IvarLoc, IvarRoles)); in VisitObjCPropertyImplDecl()
570 IndexCtx.handleReference(IvarD, D->getPropertyIvarDeclLoc(), nullptr, in VisitObjCPropertyImplDecl()
578 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitNamespaceDecl()
579 IndexCtx.indexDeclContext(D); in VisitNamespaceDecl()
584 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitNamespaceAliasDecl()
585 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), D); in VisitNamespaceAliasDecl()
586 IndexCtx.handleReference(D->getAliasedNamespace(), D->getTargetNameLoc(), D, in VisitNamespaceAliasDecl()
592 IndexCtx.handleDecl(D); in VisitUsingDecl()
596 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUsingDecl()
599 IndexCtx.handleReference(I->getUnderlyingDecl(), D->getLocation(), Parent, in VisitUsingDecl()
611 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUsingDirectiveDecl()
614 return IndexCtx.handleReference(D->getNominatedNamespaceAsWritten(), in VisitUsingDirectiveDecl()
621 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitUnresolvedUsingValueDecl()
624 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUnresolvedUsingValueDecl()
630 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitUnresolvedUsingTypenameDecl()
633 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUnresolvedUsingTypenameDecl()
650 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), D); in VisitClassTemplateSpecializationDecl()
651 IndexCtx.indexTagDecl( in VisitClassTemplateSpecializationDecl()
655 IndexCtx.indexTypeSourceInfo(TSI, /*Parent=*/nullptr, in VisitClassTemplateSpecializationDecl()
685 if (IndexCtx.shouldIndexTemplateParameters()) in VisitTemplateDecl()
686 IndexCtx.handleDecl(TP); in VisitTemplateDecl()
689 IndexCtx.indexTypeSourceInfo(TTP->getDefaultArgumentInfo(), Parent); in VisitTemplateDecl()
692 IndexCtx.indexBody(NTTP->getDefaultArgument(), Parent); in VisitTemplateDecl()
717 IndexCtx.indexTypeSourceInfo(Ty, cast<NamedDecl>(D->getDeclContext())); in VisitFriendDecl()
723 return IndexCtx.importedModule(D); in VisitImportDecl()
727 IndexCtx.indexBody(D->getAssertExpr(), in VisitStaticAssertDecl()