[SymbolGraphGen] only include the given symbol for qualified imports (#59852)

* only include the given symbol for qualified imports

rdar://96309088

* re-exporting one type should not allow unrelated types to sneak in

* ensure that children of re-exported types are also re-exported
This commit is contained in:
QuietMisdreavus
2022-07-08 09:13:08 -06:00
committed by GitHub
parent 6b3e18bf80
commit 2d874788f6
10 changed files with 146 additions and 13 deletions

View File

@@ -949,7 +949,9 @@ inline SourceLoc extractNearestSourceLoc(const ModuleDecl *mod) {
}
/// Collects modules that this module imports via `@_exported import`.
void collectParsedExportedImports(const ModuleDecl *M, SmallPtrSetImpl<ModuleDecl *> &Imports);
void collectParsedExportedImports(const ModuleDecl *M,
SmallPtrSetImpl<ModuleDecl *> &Imports,
llvm::SmallDenseMap<ModuleDecl *, SmallPtrSet<Decl *, 4>, 4> &QualifiedImports);
} // end namespace swift