[NFC] Add conveniences to clean up import code

This commit is contained in:
Brent Royal-Gordon
2020-09-12 23:26:21 -07:00
parent c13067a0e0
commit d02b34cccc
10 changed files with 60 additions and 47 deletions

View File

@@ -202,8 +202,7 @@ void ModuleNameLookup<LookupStrategy>::lookupInModule(
if (auto *loader = ctx.getClangModuleLoader()) {
headerImportModule = loader->getImportedHeaderModule();
if (headerImportModule) {
ImportedModule import{ImportPath::Access(), headerImportModule};
visitImport(import, nullptr);
visitImport(ImportedModule(headerImportModule), nullptr);
}
}
}