File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1068,9 +1068,8 @@ void SymbolGraphSerializer::serializeWithExtensionGraphs(
1068
1068
1069
1069
for (auto &ExtensionSGF : Serializer.ExtendedModules ) {
1070
1070
if (auto ExtensionOS =
1071
- CreateOutputStream (ExtensionSGF.getKey () + " @" + API.ProductName ))
1072
- Serializer.serializeGraphToStream (*ExtensionOS, Options,
1073
- ExtensionSGF.getKey (),
1071
+ CreateOutputStream (API.ProductName + " @" + ExtensionSGF.getKey ()))
1072
+ Serializer.serializeGraphToStream (*ExtensionOS, Options, API.ProductName ,
1074
1073
std::move (ExtensionSGF.getValue ()));
1075
1074
}
1076
1075
}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ @interface ExtInterface
46
46
// Symbol graph from the build without extension SGFs should be identical to main symbol graph with extension SGFs
47
47
// RUN: diff %t/symbols/Module.symbols.json %t/ModuleNoExt.symbols.json
48
48
49
- // RUN: FileCheck %s --input-file %t/symbols/ExternalModule@ Module.symbols.json --check-prefix EXT
49
+ // RUN: FileCheck %s --input-file %t/symbols/Module@ExternalModule .symbols.json --check-prefix EXT
50
50
// EXT-DAG: "!testRelLabel": "memberOf $ c:objc(cs)ExtInterface(py)Property $ c:objc(cs)ExtInterface"
51
51
// EXT-DAG: "!testRelLabel": "memberOf $ c:objc(cs)ExtInterface(im)InstanceMethod $ c:objc(cs)ExtInterface"
52
52
// EXT-DAG: "!testRelLabel": "memberOf $ c:objc(cs)ExtInterface(cm)ClassMethod $ c:objc(cs)ExtInterface"
@@ -55,3 +55,10 @@ @interface ExtInterface
55
55
// EXT-DAG: "!testLabel": "c:objc(cs)ExtInterface(cm)ClassMethod"
56
56
// EXT-NOT: "!testLabel": "c:objc(cs)ExtInterface"
57
57
// EXT-NOT: "!testLabel": "c:objc(cs)ModInterface"
58
+
59
+ // Ensure that the 'module' metadata for the extension symbol graph should still reference the
60
+ // declaring module
61
+
62
+ // RUN: FileCheck %s --input-file %t/symbols/[email protected] --check-prefix META
63
+ // META: "module": {
64
+ // META-NEXT: "name": "Module",
You can’t perform that action at this time.
0 commit comments