mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ModuleInterface] Print missing imports in swiftinterface
Hack to fix swiftinterfaces in case of missing imports. We can get rid of this logic when we don't leak the use of non-locally imported things in API.
This commit is contained in:
@@ -219,6 +219,10 @@ static void printImports(raw_ostream &out,
|
||||
|
||||
SmallVector<ImportedModule, 8> allImports;
|
||||
M->getImportedModules(allImports, allImportFilter);
|
||||
|
||||
if (Opts.PrintMissingImports)
|
||||
M->getMissingImportedModules(allImports);
|
||||
|
||||
ImportedModule::removeDuplicates(allImports);
|
||||
diagnoseScopedImports(M->getASTContext().Diags, allImports);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user