mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Change ModuleDecl::getImportedModules to take an option set
...in preparation for me adding a third kind of import, making the existing "All" kind a problem. NFC, except that I did rewrite the ClangModuleUnit implementation of getImportedModules to be simpler!
This commit is contained in:
@@ -339,7 +339,7 @@ ImportDepth::ImportDepth(ASTContext &context, CompilerInvocation &invocation) {
|
||||
// Private imports from this module.
|
||||
// FIXME: only the private imports from the current source file.
|
||||
SmallVector<ModuleDecl::ImportedModule, 16> mainImports;
|
||||
main->getImportedModules(mainImports, ModuleDecl::ImportFilter::Private);
|
||||
main->getImportedModules(mainImports, ModuleDecl::ImportFilterKind::Private);
|
||||
for (auto &import : mainImports) {
|
||||
uint8_t depth = 1;
|
||||
if (auxImports.count(import.second->getName().str()))
|
||||
|
||||
Reference in New Issue
Block a user