mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
rename symbol graph files for cross-import overlays
rdar://79474927
This commit is contained in:
@@ -45,6 +45,11 @@ SymbolGraph *SymbolGraphASTWalker::getModuleSymbolGraph(const Decl *D) {
|
||||
|
||||
if (this->M.getNameStr().equals(M->getNameStr())) {
|
||||
return &MainGraph;
|
||||
} else if (MainGraph.DeclaringModule.hasValue() &&
|
||||
MainGraph.DeclaringModule.getValue()->getNameStr().equals(M->getNameStr())) {
|
||||
// Cross-import overlay modules already appear as "extensions" of their declaring module; we
|
||||
// should put actual extensions of that module into the main graph
|
||||
return &MainGraph;
|
||||
}
|
||||
auto Found = ExtendedModuleGraphs.find(M->getNameStr());
|
||||
if (Found != ExtendedModuleGraphs.end()) {
|
||||
|
||||
Reference in New Issue
Block a user