Skip to content

Commit f607c8c

Browse files
committed
Style fixes
1 parent a666df9 commit f607c8c

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

Sources/SwiftDriver/Driver/OutputFileMap.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public struct OutputFileMap: Hashable, Codable {
138138
try fileSystem.writeFileContents(file, bytes: ByteString(contents))
139139
}
140140

141-
/// Human-readable texual representation
141+
/// Human-readable textual representation
142142
var description: String {
143143
var result = ""
144144
func outputPairDescription(inputPath: VirtualPath, outputPair: (FileType, VirtualPath))
@@ -229,7 +229,7 @@ fileprivate struct OutputFileMapJSON: Codable {
229229

230230
/// Converts into virtual path entries.
231231
func toVirtualOutputFileMap() throws -> [VirtualPath : [FileType : VirtualPath]] {
232-
// Add filter here due to a bug of TSC, see swift-tools-support-core#191
232+
// TODO: Remove the filter after swift-tools-support-core#191
233233
Dictionary(try entries.filter { $0.0 != "" }.map { input, entry in
234234
(try VirtualPath(path: input), try entry.paths.mapValues(VirtualPath.init(path:)))
235235
}, uniquingKeysWith: { $1 })

Sources/SwiftDriver/IncrementalCompilation/DirectAndTransitiveCollections.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010
//
1111
//===----------------------------------------------------------------------===//
12+
1213
// Use the type system to ensure that dependencies are transitively closed
1314
// without doing too much work at the leaves of the call tree
1415
public struct Transitively {}
@@ -81,4 +82,4 @@ public typealias TransitivelyInvalidatedSourceSet = InvalidatedSet<Transitively,
8182
public typealias TransitivelyInvalidatedInputArray = InvalidatedArray<Transitively, TypedVirtualPath>
8283
public typealias TransitivelyInvalidatedInputSet = InvalidatedSet<Transitively, TypedVirtualPath>
8384
public typealias DirectlyInvalidatedNodeArray = InvalidatedArray<Directly, ModuleDependencyGraph.Node>
84-
public typealias DirectlyInvalidatedNodeSet = InvalidatedSet<Directly, ModuleDependencyGraph.Node>
85+
public typealias DirectlyInvalidatedNodeSet = InvalidatedSet<Directly, ModuleDependencyGraph.Node>

Tests/SwiftDriverTests/IncrementalCompilationTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ final class NonincrementalCompilationTests: XCTestCase {
9191
VirtualPath(path: "/Volumes/gazorp.swift"):
9292
InputInfo(status: .needsNonCascadingBuild,
9393
previousModTime: Date(legacyDriverSecsAndNanos: [0, 0]))
94-
])
94+
])
9595
#endif
9696
}
9797

Tests/SwiftDriverTests/XCTestManifests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ extension NonincrementalCompilationTests {
117117
// `swift test --generate-linuxmain`
118118
// to regenerate.
119119
#if os(Windows)
120+
// FIXME: There's some frustrating bug with Yams' date decoding, disable tests on Windows
121+
// to prevent unexpected crashes.
120122
static let __allTests__NonincrementalCompilationTests: [(String, (XCTestCase) -> () -> Void)] = []
121123
#else
122124
static let __allTests__NonincrementalCompilationTests = [

0 commit comments

Comments
 (0)