Lines Matching refs:IndexCtx

27   std::shared_ptr<IndexingContext> IndexCtx;  member in __anon7f009d8c0111::IndexPPCallbacks
30 IndexPPCallbacks(std::shared_ptr<IndexingContext> IndexCtx) in IndexPPCallbacks() argument
31 : IndexCtx(std::move(IndexCtx)) {} in IndexPPCallbacks()
35 IndexCtx->handleMacroReference(*MacroNameTok.getIdentifierInfo(), in MacroExpands()
41 IndexCtx->handleMacroDefined(*MacroNameTok.getIdentifierInfo(), in MacroDefined()
50 IndexCtx->handleMacroUndefined(*MacroNameTok.getIdentifierInfo(), in MacroUndefined()
60 IndexCtx->handleMacroReference(*MacroNameTok.getIdentifierInfo(), in Defined()
68 IndexCtx->handleMacroReference(*MacroNameTok.getIdentifierInfo(), in Ifdef()
76 IndexCtx->handleMacroReference(*MacroNameTok.getIdentifierInfo(), in Ifndef()
87 IndexCtx->handleMacroReference(*MacroNameTok.getIdentifierInfo(), in Elifdef()
95 IndexCtx->handleMacroReference(*MacroNameTok.getIdentifierInfo(), in Elifndef()
103 std::shared_ptr<IndexingContext> IndexCtx; member in __anon7f009d8c0111::IndexASTConsumer
113 IndexCtx(new IndexingContext(Opts, *this->DataConsumer)), in IndexASTConsumer()
122 IndexCtx->setASTContext(Context); in Initialize()
123 IndexCtx->getDataConsumer().initialize(Context); in Initialize()
124 IndexCtx->getDataConsumer().setPreprocessor(PP); in Initialize()
125 PP->addPPCallbacks(std::make_unique<IndexPPCallbacks>(IndexCtx)); in Initialize()
129 return IndexCtx->indexDeclGroupRef(DG); in HandleTopLevelDecl()
137 IndexCtx->indexDeclGroupRef(DG); in HandleTopLevelDeclInObjCContainer()
202 IndexingContext &IndexCtx = *static_cast<IndexingContext*>(context); in topLevelDeclVisitor() local
203 return IndexCtx.indexTopLevelDecl(D); in topLevelDeclVisitor()
206 static void indexTranslationUnit(ASTUnit &Unit, IndexingContext &IndexCtx) { in indexTranslationUnit() argument
207 Unit.visitLocalTopLevelDecls(&IndexCtx, topLevelDeclVisitor); in indexTranslationUnit()
262 IndexingContext IndexCtx(Opts, DataConsumer); in indexASTUnit() local
263 IndexCtx.setASTContext(Unit.getASTContext()); in indexASTUnit()
269 indexTranslationUnit(Unit, IndexCtx); in indexASTUnit()
277 IndexingContext IndexCtx(Opts, DataConsumer); in indexTopLevelDecls() local
278 IndexCtx.setASTContext(Ctx); in indexTopLevelDecls()
286 IndexCtx.indexTopLevelDecl(D); in indexTopLevelDecls()
300 IndexingContext IndexCtx(Opts, DataConsumer); in indexModuleFile() local
301 IndexCtx.setASTContext(Ctx); in indexModuleFile()
309 IndexCtx.indexTopLevelDecl(D); in indexModuleFile()