[Dependency Scanning] Add a field of source-imported dependencies

For the main source module, provide info on which dependencies are directly imported into the user program, explicitly ('import' statement) or implicitly (e.g. stdlib). Thist list does not include Swift overlay dependencies, cross-import dependencies, bridging header dependencies.
This commit is contained in:
Artem Chikin
2025-04-18 11:22:35 -07:00
parent e9b21cff7d
commit f0518f64ec
12 changed files with 82 additions and 0 deletions

View File

@@ -16,6 +16,9 @@ import ImportsMacroSpecificClangModule
// CHECK-DAG: "swift": "Swift"
// CHECK-DAG: "swift": "SwiftOnoneSupport"
// Additional occurence in source-imported dependencies field
//CHECK: "swift": "ImportsMacroSpecificClangModule"
//CHECK: "swift": "ImportsMacroSpecificClangModule"
//CHECK-NEXT: },
//CHECK-NEXT: {