mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Dependency Scanning] Remove Swift Overlay dependencies from the set of direct
dependencies It is valuable for clients to be able to distinguish which dependencies of a Swift module originated from 'import' statements, and which ones are implicit dependency Swift overlays of imported Clang modules.
This commit is contained in:
@@ -298,7 +298,7 @@ bool ModuleDependenciesCacheDeserializer::readGraph(SwiftDependencyScanningServi
|
||||
moduleDep.addModuleImport(moduleName);
|
||||
|
||||
// Add qualified dependencies of this module
|
||||
moduleDep.resolveDependencies(*currentModuleDependencyIDs);
|
||||
moduleDep.resolveDirectDependencies(*currentModuleDependencyIDs);
|
||||
|
||||
// Add bridging header file path
|
||||
if (bridgingHeaderFileID != 0) {
|
||||
@@ -1114,7 +1114,7 @@ void ModuleDependenciesCacheSerializer::collectStringsAndArrays(
|
||||
dependencyInfo->getModuleImports());
|
||||
addDependencyIDArray(
|
||||
moduleID, ModuleIdentifierArrayKind::QualifiedModuleDependencyIDs,
|
||||
dependencyInfo->getModuleDependencies());
|
||||
dependencyInfo->getDirectModuleDependencies());
|
||||
|
||||
// Add the dependency-kind-specific data
|
||||
switch (dependencyInfo->getKind()) {
|
||||
|
||||
Reference in New Issue
Block a user