Lines Matching refs:IndexCtx
247 IndexingContext &IndexCtx;
251 IndexPPCallbacks(Preprocessor &PP, IndexingContext &indexCtx)
252 : PP(PP), IndexCtx(indexCtx), IsMainFileEntered(false) { }
264 IndexCtx.enteredMainFile(SM.getFileEntryForID(SM.getMainFileID()));
279 IndexCtx.ppIncludedFile(HashLoc, FileName, File, isImport, IsAngled,
310 IndexingContext &IndexCtx;
314 IndexingConsumer(IndexingContext &indexCtx, TUSkipBodyControl *skCtrl)
315 : IndexCtx(indexCtx), SKCtrl(skCtrl) { }
320 IndexCtx.setASTContext(Context);
321 IndexCtx.startedTranslationUnit();
330 IndexCtx.indexDeclGroupRef(DG);
331 return !IndexCtx.shouldAbort();
338 IndexCtx.addTUDeclInObjCContainer(D);
347 if (!IndexCtx.shouldIndexImplicitTemplateInsts())
350 if (IndexCtx.isTemplateImplicitInstantiation(D))
351 IndexCtx.indexDecl(D);
355 if (!IndexCtx.shouldIndexImplicitTemplateInsts())
358 IndexCtx.indexDecl(D);
367 const SourceManager &SM = IndexCtx.getASTContext().getSourceManager();
412 IndexingContext IndexCtx;
424 : IndexCtx(clientData, indexCallbacks, indexOptions, cxTU),
432 IndexCtx.importedPCH(
436 IndexCtx.setASTContext(CI.getASTContext());
438 PP.addPPCallbacks(new IndexPPCallbacks(PP, IndexCtx));
439 IndexCtx.setPreprocessor(PP);
448 return new IndexingConsumer(IndexCtx, SKCtrl.get());
452 indexDiagnostics(CXTU, IndexCtx);
456 if (IndexCtx.shouldIndexImplicitTemplateInsts())
773 OwningPtr<IndexingContext> IndexCtx;
774 IndexCtx.reset(new IndexingContext(client_data, CB, index_options, TU));
778 IndexCtxCleanup(IndexCtx.get());
781 IndexConsumer.reset(new IndexingConsumer(*IndexCtx, 0));
794 IndexCtx->importedPCH(PCHFile);
799 IndexCtx->enteredMainFile(0);
801 IndexCtx->enteredMainFile(FileMgr.getFile(Unit->getOriginalSourceFileName()));
805 indexPreprocessingRecord(*Unit, *IndexCtx);
806 indexTranslationUnit(*Unit, *IndexCtx);
807 indexDiagnostics(TU, *IndexCtx);
924 return Container->IndexCtx->getClientContainerForDC(Container->DC);
932 Container->IndexCtx->addContainerInMap(Container->DC, client);
939 return Entity->IndexCtx->getClientEntity(Entity->Dcl);
947 Entity->IndexCtx->setClientEntity(Entity->Dcl, client);
1066 IndexingContext &IndexCtx =
1068 IndexCtx.translateLoc(Loc, indexFile, file, line, column, offset);
1076 IndexingContext &IndexCtx =
1078 return cxloc::translateSourceLocation(IndexCtx.getASTContext(), Loc);