Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevapple committed Feb 24, 2021
1 parent a666df9 commit d48e3e1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftDriver/Driver/OutputFileMap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public struct OutputFileMap: Hashable, Codable {
try fileSystem.writeFileContents(file, bytes: ByteString(contents))
}

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

/// Converts into virtual path entries.
func toVirtualOutputFileMap() throws -> [VirtualPath : [FileType : VirtualPath]] {
// Add filter here due to a bug of TSC, see swift-tools-support-core#191
// TODO: Remove the filter after swift-tools-support-core#191
Dictionary(try entries.filter { $0.0 != "" }.map { input, entry in
(try VirtualPath(path: input), try entry.paths.mapValues(VirtualPath.init(path:)))
}, uniquingKeysWith: { $1 })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//

// Use the type system to ensure that dependencies are transitively closed
// without doing too much work at the leaves of the call tree
public struct Transitively {}
Expand Down Expand Up @@ -81,4 +82,4 @@ public typealias TransitivelyInvalidatedSourceSet = InvalidatedSet<Transitively,
public typealias TransitivelyInvalidatedInputArray = InvalidatedArray<Transitively, TypedVirtualPath>
public typealias TransitivelyInvalidatedInputSet = InvalidatedSet<Transitively, TypedVirtualPath>
public typealias DirectlyInvalidatedNodeArray = InvalidatedArray<Directly, ModuleDependencyGraph.Node>
public typealias DirectlyInvalidatedNodeSet = InvalidatedSet<Directly, ModuleDependencyGraph.Node>
public typealias DirectlyInvalidatedNodeSet = InvalidatedSet<Directly, ModuleDependencyGraph.Node>
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ extension ModuleDependencyGraph.Integrator {
}
}


// MARK: - verification
extension ModuleDependencyGraph.Integrator {
@discardableResult
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftDriverTests/IncrementalCompilationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ final class NonincrementalCompilationTests: XCTestCase {
VirtualPath(path: "/Volumes/gazorp.swift"):
InputInfo(status: .needsNonCascadingBuild,
previousModTime: Date(legacyDriverSecsAndNanos: [0, 0]))
])
])
#endif
}

Expand Down
2 changes: 2 additions & 0 deletions Tests/SwiftDriverTests/XCTestManifests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ extension NonincrementalCompilationTests {
// `swift test --generate-linuxmain`
// to regenerate.
#if os(Windows)
// FIXME: There's some frustrating bug with Yams' date decoding, disable tests on Windows
// to prevent unexpected crashes.
static let __allTests__NonincrementalCompilationTests: [(String, (XCTestCase) -> () -> Void)] = []
#else
static let __allTests__NonincrementalCompilationTests = [
Expand Down

0 comments on commit d48e3e1

Please sign in to comment.