File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,14 @@ public enum ModuleBuildDescription: SPMBuildCore.ModuleBuildDescription {
140
140
}
141
141
}
142
142
143
+ public var diagnosticFiles : [ AbsolutePath ] {
144
+ switch self {
145
+ case . swift( let buildDescription) :
146
+ buildDescription. diagnosticFiles
147
+ case . clang( _) :
148
+ [ ]
149
+ }
150
+ }
143
151
/// Determines the arguments needed to run `swift-symbolgraph-extract` for
144
152
/// this module.
145
153
public func symbolGraphExtractArguments( ) throws -> [ String ] {
Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ public protocol ModuleBuildDescription {
92
92
/// The build parameters.
93
93
var buildParameters : BuildParameters { get }
94
94
95
+ /// The diagnostic file locations for all the source files
96
+ /// associated with this module.
97
+ var diagnosticFiles : [ AbsolutePath ] { get }
98
+
95
99
/// FIXME: This shouldn't be necessary and ideally
96
100
/// there should be a way to ask build system to
97
101
/// introduce these arguments while building for symbol
You can’t perform that action at this time.
0 commit comments