[Dependency Scanning][C++ Interop] Remap lookup of Clang module 'CxxStdlib' to 'std'

Otherwise querying this clang module, e.g. from the corresponding Swift overlay's underlying module import, will fail, since no such module exists.

Resolves rdar://151718115
This commit is contained in:
Artem Chikin
2025-05-20 14:16:23 -07:00
parent abcc134621
commit c4fcee0875
5 changed files with 71 additions and 106 deletions

View File

@@ -128,19 +128,6 @@ public:
performDependencyScan(ModuleDependencyID rootModuleID,
ModuleDependenciesCache &cache);
/// Query the module dependency info for the Clang module with the given name.
/// Explicit by-name lookups are useful for batch mode scanning.
std::optional<const ModuleDependencyInfo *>
getNamedClangModuleDependencyInfo(StringRef moduleName,
ModuleDependenciesCache &cache,
ModuleDependencyIDSetVector &discoveredClangModules);
/// Query the module dependency info for the Swift module with the given name.
/// Explicit by-name lookups are useful for batch mode scanning.
std::optional<const ModuleDependencyInfo *>
getNamedSwiftModuleDependencyInfo(StringRef moduleName,
ModuleDependenciesCache &cache);
/// How many filesystem lookups were performed by the scanner
unsigned getNumLookups() { return NumLookups; }