Lines Matching refs:IndexCtx
19 if (!IndexCtx.shouldIndex(D)) return true; \
33 IndexingContext &IndexCtx; member in __anon1910dc200111::IndexingDeclVisitor
37 : IndexCtx(indexCtx) { } in IndexingDeclVisitor()
61 IndexCtx.indexBody(LocInfo.getAsExpr(), Parent, DC); in handleTemplateArgumentLoc()
64 IndexCtx.indexTypeSourceInfo(LocInfo.getAsTypeSourceInfo(), Parent, DC); in handleTemplateArgumentLoc()
68 IndexCtx.indexNestedNameSpecifierLoc(TALoc.getTemplateQualifierLoc(), in handleTemplateArgumentLoc()
74 IndexCtx.handleReference(TTD, TALoc.getTemplateNameLoc(), Parent, DC); in handleTemplateArgumentLoc()
87 IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), Parent, in handleDeclarator()
90 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent); in handleDeclarator()
91 if (IndexCtx.shouldIndexFunctionLocalSymbols()) { in handleDeclarator()
98 IndexCtx.handleDecl(Parm); in handleDeclarator()
101 IndexCtx.handleDecl(Parm); in handleDeclarator()
103 IndexCtx.handleDecl(Parm); in handleDeclarator()
108 IndexCtx.handleDecl(PI); in handleDeclarator()
119 IndexCtx.indexBody(PV->getDefaultArg(), D); in handleDeclarator()
164 IndexCtx.handleReference(D, AttrLoc, cast<NamedDecl>(D->getDeclContext()), in handleObjCMethod()
168 TRY_DECL(D, IndexCtx.handleDecl(D, MethodLoc, Roles, Relations)); in handleObjCMethod()
169 IndexCtx.indexTypeSourceInfo(D->getReturnTypeSourceInfo(), D); in handleObjCMethod()
179 IndexCtx.indexBody(Body, D, D); in handleObjCMethod()
194 if (!IndexCtx.getLangOpts().CPlusPlus) in gatherTemplatePseudoOverrides()
246 TRY_DECL(D, IndexCtx.handleDecl(D, Roles, Relations)); in VisitFunctionDecl()
250 IndexCtx.handleReference(Ctor->getParent(), Ctor->getLocation(), in VisitFunctionDecl()
256 IndexCtx.indexTypeSourceInfo(Init->getTypeSourceInfo(), D); in VisitFunctionDecl()
258 IndexCtx.handleReference(Member, Init->getMemberLocation(), D, D, in VisitFunctionDecl()
260 IndexCtx.indexBody(Init->getInit(), D, D); in VisitFunctionDecl()
265 IndexCtx.handleReference(Dtor->getParent(), in VisitFunctionDecl()
270 IndexCtx.handleReference(Guide->getDeducedTemplate()->getTemplatedDecl(), in VisitFunctionDecl()
284 IndexCtx.indexBody(Body, D, D); in VisitFunctionDecl()
293 TRY_DECL(D, IndexCtx.handleDecl(D, SymbolRoleSet(), Relations)); in VisitVarDecl()
295 IndexCtx.indexBody(D->getInit(), D); in VisitVarDecl()
301 TRY_DECL(Binding, IndexCtx.handleDecl(Binding)); in VisitDecompositionDecl()
308 TRY_DECL(D, IndexCtx.handleDecl(D, SymbolRoleSet(), Relations)); in VisitFieldDecl()
311 IndexCtx.indexBody(D->getBitWidth(), D); in VisitFieldDecl()
313 IndexCtx.indexBody(D->getInClassInitializer(), D); in VisitFieldDecl()
322 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCIvarDecl()
333 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitEnumConstantDecl()
334 IndexCtx.indexBody(D->getInitExpr(), D); in VisitEnumConstantDecl()
342 TRY_DECL(D, IndexCtx.handleDecl(D, SymbolRoleSet(), Relations)); in VisitTypedefNameDecl()
343 IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), D); in VisitTypedefNameDecl()
354 IndexCtx.indexTagDecl(D, Relations); in VisitTagDecl()
358 return IndexCtx.handleDecl(D, D->getLocation(), SymbolRoleSet(), in VisitTagDecl()
376 TRY_TO(IndexCtx.handleReference(PD, Loc, ContD, ContD, roles, in handleReferencedProtocols()
384 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCInterfaceDecl()
392 TRY_TO(IndexCtx.handleReference(TD, SuperLoc, D, D, in VisitObjCInterfaceDecl()
400 TRY_TO(IndexCtx.handleReference(SuperD, SuperLoc, D, D, superRoles, in VisitObjCInterfaceDecl()
405 TRY_TO(IndexCtx.indexDeclContext(D)); in VisitObjCInterfaceDecl()
407 return IndexCtx.handleReference(D, D->getLocation(), nullptr, in VisitObjCInterfaceDecl()
415 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCProtocolDecl()
418 TRY_TO(IndexCtx.indexDeclContext(D)); in VisitObjCProtocolDecl()
420 return IndexCtx.handleReference(D, D->getLocation(), nullptr, in VisitObjCProtocolDecl()
432 IndexCtx.handleDecl(Class); in VisitObjCImplementationDecl()
434 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCImplementationDecl()
441 IndexCtx.indexDecl(I); in VisitObjCImplementationDecl()
446 IndexCtx.indexDecl(I); in VisitObjCImplementationDecl()
453 if (!IndexCtx.shouldIndex(D)) in VisitObjCCategoryDecl()
458 TRY_TO(IndexCtx.handleReference(C, D->getLocation(), D, D, SymbolRoleSet(), in VisitObjCCategoryDecl()
465 TRY_TO(IndexCtx.handleDecl(D, CategoryLoc)); in VisitObjCCategoryDecl()
468 TRY_TO(IndexCtx.indexDeclContext(D)); in VisitObjCCategoryDecl()
478 TRY_TO(IndexCtx.handleReference(C, D->getLocation(), D, D, in VisitObjCCategoryImplDecl()
483 TRY_DECL(D, IndexCtx.handleDecl(D, CategoryLoc)); in VisitObjCCategoryImplDecl()
484 IndexCtx.indexDeclContext(D); in VisitObjCCategoryImplDecl()
505 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitObjCPropertyDecl()
507 IndexCtx.indexTypeSourceInfo(attr->getInterfaceLoc(), D, in VisitObjCPropertyDecl()
509 IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), D); in VisitObjCPropertyDecl()
526 TRY_DECL(D, IndexCtx.handleDecl(D, Loc, Roles, Relations)); in VisitObjCPropertyImplDecl()
537 IndexCtx.handleDecl(MD, Loc, AccessorMethodRoles, {}, Container); in VisitObjCPropertyImplDecl()
542 IndexCtx.handleDecl(MD, Loc, AccessorMethodRoles, {}, Container); in VisitObjCPropertyImplDecl()
560 TRY_DECL(IvarD, IndexCtx.handleDecl(IvarD, IvarLoc, IvarRoles)); in VisitObjCPropertyImplDecl()
562 IndexCtx.handleReference(IvarD, D->getPropertyIvarDeclLoc(), nullptr, in VisitObjCPropertyImplDecl()
570 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitNamespaceDecl()
571 IndexCtx.indexDeclContext(D); in VisitNamespaceDecl()
576 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitNamespaceAliasDecl()
577 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), D); in VisitNamespaceAliasDecl()
578 IndexCtx.handleReference(D->getAliasedNamespace(), D->getTargetNameLoc(), D, in VisitNamespaceAliasDecl()
587 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUsingDecl()
590 IndexCtx.handleReference(I->getUnderlyingDecl(), D->getLocation(), Parent, in VisitUsingDecl()
602 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUsingDirectiveDecl()
605 return IndexCtx.handleReference(D->getNominatedNamespaceAsWritten(), in VisitUsingDirectiveDecl()
612 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitUnresolvedUsingValueDecl()
615 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUnresolvedUsingValueDecl()
621 TRY_DECL(D, IndexCtx.handleDecl(D)); in VisitUnresolvedUsingTypenameDecl()
624 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent, in VisitUnresolvedUsingTypenameDecl()
641 IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), D); in VisitClassTemplateSpecializationDecl()
642 IndexCtx.indexTagDecl( in VisitClassTemplateSpecializationDecl()
646 IndexCtx.indexTypeSourceInfo(TSI, /*Parent=*/nullptr, in VisitClassTemplateSpecializationDecl()
678 IndexCtx.indexTypeSourceInfo(TTP->getDefaultArgumentInfo(), Parent); in VisitTemplateDecl()
681 IndexCtx.indexBody(NTTP->getDefaultArgument(), Parent); in VisitTemplateDecl()
706 IndexCtx.indexTypeSourceInfo(Ty, cast<NamedDecl>(D->getDeclContext())); in VisitFriendDecl()
712 return IndexCtx.importedModule(D); in VisitImportDecl()
716 IndexCtx.indexBody(D->getAssertExpr(), in VisitStaticAssertDecl()