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