Skip to content

Commit c6fedf7

Browse files
authored
Merge pull request swiftlang#153 from benlangmuir/tsc
Update SPM -> TSC module name prefixes
2 parents d64fabc + 6bb0924 commit c6fedf7

40 files changed

+60
-60
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ let package = Package(
8181
// useful to any Swift package. Similar in spirit to SwiftPM's Basic module.
8282
.target(
8383
name: "SKSupport",
84-
dependencies: ["SPMUtility"]),
84+
dependencies: ["TSCUtility"]),
8585
.testTarget(
8686
name: "SKSupportTests",
8787
dependencies: ["SKSupport", "SKTestSupport"]),

Sources/LanguageServerProtocol/Messages.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Basic
13+
import TSCBasic
1414

1515
/// The set of known requests.
1616
///

Sources/SKCore/BuildServerBuildSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010
//
1111
//===----------------------------------------------------------------------===//
12-
import Basic
12+
import TSCBasic
1313
import LanguageServerProtocol
1414
import LanguageServerProtocolJSONRPC
1515
import SKSupport

Sources/SKCore/BuildSetup.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Basic
14-
import SPMUtility
13+
import TSCBasic
14+
import TSCUtility
1515
import SKSupport
1616

1717
/// Build configuration

Sources/SKCore/BuildSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import LanguageServerProtocol
14-
import Basic
14+
import TSCBasic
1515

1616
/// Provider of FileBuildSettings and other build-related information.
1717
///

Sources/SKCore/BuildSystemList.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Basic
13+
import TSCBasic
1414
import LanguageServerProtocol
1515

1616
/// Provides build settings from a list of build systems in priority order.

Sources/SKCore/CompilationDatabase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import SKSupport
14-
import Basic
14+
import TSCBasic
1515
import Foundation
1616

1717
/// A single compilation database command.

Sources/SKCore/CompilationDatabaseBuildSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import SKSupport
14-
import Basic
14+
import TSCBasic
1515
import LanguageServerProtocol
1616

1717
/// A `BuildSystem` based on loading clang-compatible compilation database(s).

Sources/SKCore/FallbackBuildSystem.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import LanguageServerProtocol
14-
import Basic
15-
import enum SPMUtility.Platform
14+
import TSCBasic
15+
import enum TSCUtility.Platform
1616

1717
/// A simple BuildSystem suitable as a fallback when accurate settings are unknown.
1818
public final class FallbackBuildSystem: BuildSystem {

Sources/SKCore/Toolchain.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import SKSupport
14-
import Basic
15-
import SPMUtility
14+
import TSCBasic
15+
import TSCUtility
1616

1717
/// A Toolchain is a collection of related compilers and libraries meant to be used together to
1818
/// build and edit source code.

Sources/SKCore/ToolchainRegistry.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import SKSupport
14-
import Basic
15-
import SPMUtility
14+
import TSCBasic
15+
import TSCUtility
1616
import Dispatch
1717
import Foundation
1818

Sources/SKCore/XCToolchainPlist.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Basic
13+
import TSCBasic
1414
import Foundation
1515

1616
/// A helper type for decoding the Info.plist or ToolchainInfo.plist file from an .xctoolchain.

Sources/SKSupport/BuildConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import SPMUtility
13+
import TSCUtility
1414

1515
public enum BuildConfiguration: String {
1616
case debug

Sources/SKSupport/ByteString.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Basic
13+
import TSCBasic
1414
import Foundation
1515

1616
extension ByteString {

Sources/SKSupport/FileSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Basic
13+
import TSCBasic
1414
import Foundation
1515

1616
/// The home directory of the current user (same as returned by Foundation's `NSHomeDirectory` method).

Sources/SKSupport/Int.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import SPMLibc
13+
import TSCLibc
1414

1515
extension UInt8 {
1616
@inlinable

Sources/SKSupport/LogLevel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import SPMUtility
13+
import TSCUtility
1414

1515
#if canImport(os)
1616
import os

Sources/SKSupport/Logging.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Basic
13+
import TSCBasic
1414
import Foundation
1515

1616
#if canImport(os)

Sources/SKSupport/Platform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import SPMUtility
13+
import TSCUtility
1414

1515
extension Platform {
1616

Sources/SKSupport/dlopen.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import SPMLibc
13+
import TSCLibc
1414

1515
public final class DLHandle {
1616
#if os(Windows)
@@ -84,7 +84,7 @@ public func dlopen(_ path: String?, mode: DLOpenFlags) throws -> DLHandle {
8484
throw DLError.open("LoadLibraryW failed: \(GetLastError())")
8585
}
8686
#else
87-
guard let handle = SPMLibc.dlopen(path, mode.rawValue) else {
87+
guard let handle = TSCLibc.dlopen(path, mode.rawValue) else {
8888
throw DLError.open(dlerror() ?? "unknown error")
8989
}
9090
#endif

Sources/SKSwiftPMWorkspace/SwiftPMWorkspace.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
import LanguageServerProtocol
1414
import SKCore
15-
import Basic
16-
import SPMUtility
15+
import TSCBasic
16+
import TSCUtility
1717
import SKSupport
1818
import Build
1919
import PackageModel
@@ -410,7 +410,7 @@ public final class BuildSettingProviderWorkspaceDelegate: WorkspaceDelegate {
410410

411411
public func fetchingWillBegin(repository: String) {}
412412

413-
public func fetchingDidFinish(repository: String, diagnostic: Basic.Diagnostic?) {}
413+
public func fetchingDidFinish(repository: String, diagnostic: TSCBasic.Diagnostic?) {}
414414

415415
public func cloning(repository: String) {}
416416

@@ -419,7 +419,7 @@ public final class BuildSettingProviderWorkspaceDelegate: WorkspaceDelegate {
419419
public func managedDependenciesDidUpdate(_ dependencies: AnySequence<ManagedDependency>) {}
420420
}
421421

422-
extension Basic.Diagnostic.Behavior {
422+
extension TSCBasic.Diagnostic.Behavior {
423423
var asLogLevel: LogLevel {
424424
switch self {
425425
case .error: return .error

Sources/SKTestSupport/FileSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Basic
13+
import TSCBasic
1414

1515
extension FileSystem {
1616

Sources/SKTestSupport/SKSwiftPMTestWorkspace.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import SKCore
1717
import IndexStoreDB
1818
import ISDBTibs
1919
import ISDBTestSupport
20-
import Basic
21-
import SPMUtility
20+
import TSCBasic
21+
import TSCUtility
2222
import XCTest
2323
import Foundation
2424

@@ -108,7 +108,7 @@ extension SKSwiftPMTestWorkspace {
108108
}
109109

110110
func build() throws {
111-
try Basic.Process.checkNonZeroExit(arguments: [
111+
try TSCBasic.Process.checkNonZeroExit(arguments: [
112112
String(toolchain.swiftc!.pathString.dropLast()),
113113
"build",
114114
"--package-path", sources.rootDirectory.path,

Sources/SKTestSupport/SKTibsTestWorkspace.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import SKCore
1616
import IndexStoreDB
1717
import ISDBTibs
1818
import ISDBTestSupport
19-
import Basic
20-
import SPMUtility
19+
import TSCBasic
20+
import TSCUtility
2121
import XCTest
2222
import Foundation
2323

Sources/SKTestSupport/TestServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import SKSupport
1414
import SKCore
15-
import SPMUtility
15+
import TSCUtility
1616
import LanguageServerProtocol
1717
import LanguageServerProtocolJSONRPC
1818
import SourceKit

Sources/SourceKit/SourceKitServer.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import LanguageServerProtocol
1414
import SKCore
1515
import SKSupport
1616
import IndexStoreDB
17-
import Basic
18-
import SPMUtility
17+
import TSCBasic
18+
import TSCUtility
1919
import Dispatch
2020
import Foundation
21-
import SPMLibc
21+
import TSCLibc
2222

2323
public typealias URL = Foundation.URL
2424

Sources/SourceKit/Workspace.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import LanguageServerProtocol
1414
import SKCore
1515
import SKSupport
1616
import IndexStoreDB
17-
import Basic
18-
import SPMUtility
17+
import TSCBasic
18+
import TSCUtility
1919
import SKSwiftPMWorkspace
2020

2121
/// Represents the configuration and state of a project or combination of projects being worked on

Sources/SourceKit/clangd/ClangLanguageServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import SKSupport
1414
import SKCore
15-
import Basic
15+
import TSCBasic
1616
import LanguageServerProtocol
1717
import LanguageServerProtocolJSONRPC
1818
import Foundation

Sources/SourceKit/sourcekitd/CursorInfo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import LanguageServerProtocol
14-
import Basic
14+
import TSCBasic
1515
import sourcekitd
1616

1717
/// Detailed information about a symbol under the cursor.

Sources/SourceKit/sourcekitd/SwiftLanguageServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import LanguageServerProtocol
1414
import SKCore
1515
import SKSupport
16-
import Basic
16+
import TSCBasic
1717
import sourcekitd
1818
import Dispatch
1919
import struct Foundation.CharacterSet

Sources/SourceKit/sourcekitd/SwiftSourceKitFramework.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import LanguageServerProtocol
14-
import Basic
14+
import TSCBasic
1515
import SKSupport
1616
import sourcekitd
1717

Sources/sourcekit-lsp/main.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import LanguageServerProtocolJSONRPC
1515
import LanguageServerProtocol
1616
import SKSupport
1717
import SKCore
18-
import SPMLibc
18+
import TSCLibc
1919
import Dispatch
20-
import Basic
21-
import SPMUtility
20+
import TSCBasic
21+
import TSCUtility
2222
import Foundation
2323
import sourcekitd // Not needed here, but fixes debugging...
2424

@@ -62,7 +62,7 @@ let sync: Bool
6262
do {
6363
(buildSetup, sync) = try parseArguments()
6464
} catch {
65-
fputs("error: \(error)\n", SPMLibc.stderr)
65+
fputs("error: \(error)\n", TSCLibc.stderr)
6666
exit(1)
6767
}
6868

Tests/SKCoreTests/BuildServerBuildSystemTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212
import XCTest
1313
import SKCore
14-
import Basic
14+
import TSCBasic
1515
import LanguageServerProtocol
1616

1717
final class BuildServerBuildSystemTests: XCTestCase {

Tests/SKCoreTests/CompilationDatabaseTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import SKCore
14-
import Basic
14+
import TSCBasic
1515
import SKTestSupport
1616
import XCTest
1717

Tests/SKCoreTests/FallbackBuildSystemTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import SKCore
1414
import LanguageServerProtocol
15-
import Basic
15+
import TSCBasic
1616
import XCTest
1717

1818
final class FallbackBuildSystemTests: XCTestCase {

Tests/SKCoreTests/ToolchainRegistryTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import SKCore
14-
import Basic
15-
import SPMUtility
14+
import TSCBasic
15+
import TSCUtility
1616
import XCTest
1717

1818
final class ToolchainRegistryTests: XCTestCase {

0 commit comments

Comments
 (0)