Home | History | Annotate | Download | only in libclang

Lines Matching refs:IndexCtx

248   IndexingContext &IndexCtx;
252 IndexPPCallbacks(Preprocessor &PP, IndexingContext &indexCtx)
253 : PP(PP), IndexCtx(indexCtx), IsMainFileEntered(false) { }
265 IndexCtx.enteredMainFile(SM.getFileEntryForID(SM.getMainFileID()));
280 IndexCtx.ppIncludedFile(HashLoc, FileName, File, isImport, IsAngled,
311 IndexingContext &IndexCtx;
315 IndexingConsumer(IndexingContext &indexCtx, TUSkipBodyControl *skCtrl)
316 : IndexCtx(indexCtx), SKCtrl(skCtrl) { }
321 IndexCtx.setASTContext(Context);
322 IndexCtx.startedTranslationUnit();
331 IndexCtx.indexDeclGroupRef(DG);
332 return !IndexCtx.shouldAbort();
339 IndexCtx.addTUDeclInObjCContainer(D);
348 if (!IndexCtx.shouldIndexImplicitTemplateInsts())
351 if (IndexCtx.isTemplateImplicitInstantiation(D))
352 IndexCtx.indexDecl(D);
356 if (!IndexCtx.shouldIndexImplicitTemplateInsts())
359 IndexCtx.indexDecl(D);
368 const SourceManager &SM = IndexCtx.getASTContext().getSourceManager();
409 IndexingContext IndexCtx;
421 : IndexCtx(clientData, indexCallbacks, indexOptions, cxTU),
429 IndexCtx.importedPCH(
433 IndexCtx.setASTContext(CI.getASTContext());
435 PP.addPPCallbacks(new IndexPPCallbacks(PP, IndexCtx));
436 IndexCtx.setPreprocessor(PP);
445 return new IndexingConsumer(IndexCtx, SKCtrl.get());
449 indexDiagnostics(CXTU, IndexCtx);
453 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);