Lines Matching refs:Importer
281 LazyASTImporter &Importer = LazyImporterForOrigin(*this, *Origin.AST); in ForEachMatchingDC() local
282 Callback(Importer, Importer.GetReverse(), Origin.DC); in ForEachMatchingDC()
285 for (const std::unique_ptr<ASTImporter> &Importer : Importers) { in ForEachMatchingDC() local
287 Importer->getFromContext().getTranslationUnitDecl(); in ForEachMatchingDC()
289 static_cast<LazyASTImporter *>(Importer.get())->GetReverse(); in ForEachMatchingDC()
292 if (Callback(*Importer, Reverse, SourceDC)) in ForEachMatchingDC()
368 LazyASTImporter &Importer = LazyImporterForOrigin(*this, *Origin.AST); in MaybeRecordOrigin() local
369 ASTImporter &Reverse = Importer.GetReverse(); in MaybeRecordOrigin()
374 RecordOriginImpl(ToDC, Origin, Importer); in MaybeRecordOrigin()
389 ASTImporter &Importer) { in RecordOriginImpl() argument
391 Importer.ASTImporter::MapImported(cast<Decl>(Origin.DC), const_cast<Decl*>(cast<Decl>(ToDC))); in RecordOriginImpl()
426 [&Sources](std::unique_ptr<ASTImporter> &Importer) -> bool { in RemoveSources() argument
428 if (&Importer->getFromContext() == &S.getASTContext()) in RemoveSources()
450 static bool importSpecializations(DeclTy *D, ASTImporter *Importer) { in importSpecializations() argument
452 auto ImportedSpecOrError = Importer->Import(Spec); in importSpecializations()
462 static bool importSpecializationsIfNeeded(Decl *D, ASTImporter *Importer) { in importSpecializationsIfNeeded() argument
466 return importSpecializations(FunctionTD, Importer); in importSpecializationsIfNeeded()
468 return importSpecializations(ClassTD, Importer); in importSpecializationsIfNeeded()
470 return importSpecializations(VarTD, Importer); in importSpecializationsIfNeeded()
506 ASTImporter *Importer = C.second; in FindExternalVisibleDeclsByName() local
507 auto NDOrErr = Importer->Import(LookupRes); in FindExternalVisibleDeclsByName()
514 importSpecializationsIfNeeded(LookupRes, Importer); in FindExternalVisibleDeclsByName()