Lines Matching defs:IndexCtx
46 IndexingContext &IndexCtx;
50 IndexPPCallbacks(Preprocessor &PP, IndexingContext &indexCtx)
51 : PP(PP), IndexCtx(indexCtx), IsMainFileEntered(false) { }
63 IndexCtx.enteredMainFile(SM.getFileEntryForID(SM.getMainFileID()));
77 IndexCtx.ppIncludedFile(HashLoc, FileName, File, isImport, IsAngled);
106 IndexingContext &IndexCtx;
109 explicit IndexingConsumer(IndexingContext &indexCtx)
110 : IndexCtx(indexCtx) { }
115 IndexCtx.setASTContext(Context);
116 IndexCtx.startedTranslationUnit();
123 IndexCtx.indexDeclGroupRef(DG);
124 return !IndexCtx.shouldAbort();
131 IndexCtx.addTUDeclInObjCContainer(D);
140 if (!IndexCtx.shouldIndexImplicitTemplateInsts())
143 if (IndexCtx.isTemplateImplicitInstantiation(D))
144 IndexCtx.indexDecl(D);
148 if (!IndexCtx.shouldIndexImplicitTemplateInsts())
151 IndexCtx.indexDecl(D);
179 IndexingContext IndexCtx;
187 : IndexCtx(clientData, indexCallbacks, indexOptions, cxTU),
192 IndexCtx.setASTContext(CI.getASTContext());
194 PP.addPPCallbacks(new IndexPPCallbacks(PP, IndexCtx));
195 IndexCtx.setPreprocessor(PP);
196 return new IndexingConsumer(IndexCtx);
200 indexDiagnostics(CXTU, IndexCtx);
204 if (IndexCtx.shouldIndexImplicitTemplateInsts())
522 OwningPtr<IndexingContext> IndexCtx;
523 IndexCtx.reset(new IndexingContext(client_data, CB, index_options, TU));
527 IndexCtxCleanup(IndexCtx.get());
530 IndexConsumer.reset(new IndexingConsumer(*IndexCtx));
543 IndexCtx->enteredMainFile(0);
545 IndexCtx->enteredMainFile(FileMgr.getFile(Unit->getOriginalSourceFileName()));
549 indexPreprocessingRecord(*Unit, *IndexCtx);
550 indexTranslationUnit(*Unit, *IndexCtx);
551 indexDiagnostics(TU, *IndexCtx);
668 return Container->IndexCtx->getClientContainerForDC(Container->DC);
676 Container->IndexCtx->addContainerInMap(Container->DC, client);
683 return Entity->IndexCtx->getClientEntity(Entity->Dcl);
691 Entity->IndexCtx->setClientEntity(Entity->Dcl, client);
802 IndexingContext &IndexCtx =
804 IndexCtx.translateLoc(Loc, indexFile, file, line, column, offset);
812 IndexingContext &IndexCtx =
814 return cxloc::translateSourceLocation(IndexCtx.getASTContext(), Loc);