Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This source file is part of the Swift.org open source project
# This source file is part of the Swift open source project
#
# Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
# Licensed under Apache License v2.0
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
Expand Down
4 changes: 2 additions & 2 deletions Sources/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This source file is part of the Swift.org open source project
# This source file is part of the Swift open source project
#
# Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
# Licensed under Apache License v2.0
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
Expand Down
4 changes: 2 additions & 2 deletions Sources/CSwiftScan/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This source file is part of the Swift.org open source project
# This source file is part of the Swift open source project
#
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
# Licensed under Apache License v2.0
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
Expand Down
9 changes: 5 additions & 4 deletions Sources/CSwiftScan/include/swiftscan_header.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
//===-- swiftscan_header.h - C API for Swift Dependency Scanning --*- C -*-===//
//
// This source file is part of the Swift.org open source project
// This source file is part of the Swift open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// Licensed under Apache License v2.0
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// SPDX-License-Identifier: Apache-2.0
//===----------------------------------------------------------------------===//

#ifndef SWIFT_C_DEPENDENCY_SCAN_H
Expand Down
4 changes: 2 additions & 2 deletions Sources/SwiftDriver/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This source file is part of the Swift.org open source project
# This source file is part of the Swift open source project
#
# Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
# Licensed under Apache License v2.0
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
Expand Down
14 changes: 8 additions & 6 deletions Sources/SwiftDriver/Driver/CompilerMode.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===--------------- CompilerMode.swift - Swift Compiler Mode -------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
/// The mode of the compiler.
Expand Down
14 changes: 8 additions & 6 deletions Sources/SwiftDriver/Driver/DebugInfo.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===--------------- DebugInfo.swift - Swift Debug Information ------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

Expand Down
16 changes: 9 additions & 7 deletions Sources/SwiftDriver/Driver/Driver.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===--------------- Driver.swift - Swift Driver --------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
import SwiftOptions
Expand Down Expand Up @@ -3870,7 +3872,7 @@ extension Driver {
}

// If an explicit path is not provided by the output file map, attempt to
// synthesize a path from the master swift dependency path. This is
// synthesize a path from the main swift dependency path. This is
// important as we may otherwise emit this file at the location where the
// driver was invoked, which is normally the root of the package.
if let path = try outputFileMap?.existingOutputForSingleInput(outputType: .swiftDeps) {
Expand Down
14 changes: 8 additions & 6 deletions Sources/SwiftDriver/Driver/DriverVersion.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===------ DriverVersion.swift - Swift Driver Source Version--------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
extension Driver {
Expand Down
14 changes: 8 additions & 6 deletions Sources/SwiftDriver/Driver/LinkKind.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===--------------- LinkKind.swift - Swift Linking Kind ------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

Expand Down
14 changes: 8 additions & 6 deletions Sources/SwiftDriver/Driver/ModuleOutputInfo.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===--------------- ModuleOutputInfo.swift - Module output information ---===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

Expand Down
20 changes: 11 additions & 9 deletions Sources/SwiftDriver/Driver/OutputFileMap.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===--------------- OutputFileMap.swift - Swift Output File Map ----------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

Expand Down Expand Up @@ -262,9 +264,9 @@ fileprivate struct OutputFileMapJSON: Codable {
_ entries: [VirtualPath.Handle : [FileType : VirtualPath.Handle]]
) -> Self {
func convert(entry: (key: VirtualPath.Handle, value: [FileType: VirtualPath.Handle])) -> (String, Entry) {
// We use a VirtualPath with an empty path for the master entry, but its name is "." and we need ""
let fixedIfMaster = VirtualPath.lookup(entry.key).name == "." ? "" : VirtualPath.lookup(entry.key).name
return (fixedIfMaster, convert(outputs: entry.value))
// We use a VirtualPath with an empty path for the main entry, but its name is "." and we need ""
let fixedIfMain = VirtualPath.lookup(entry.key).name == "." ? "" : VirtualPath.lookup(entry.key).name
return (fixedIfMain, convert(outputs: entry.value))
}
func convert(outputs: [FileType: VirtualPath.Handle]) -> Entry {
Entry(paths: outputs.mapValues({ VirtualPath.lookup($0).name }))
Expand Down
14 changes: 8 additions & 6 deletions Sources/SwiftDriver/Driver/ToolExecutionDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===--------------- ToolExecutionDelegate.swift - Tool Execution Delegate ===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

Expand Down
14 changes: 8 additions & 6 deletions Sources/SwiftDriver/Driver/WindowsExtensions.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===------------- WindowsExtensions.swift - Windows Extensions -----------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

Expand Down
14 changes: 8 additions & 6 deletions Sources/SwiftDriver/Execution/ArgsResolver.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===--------------- ArgsResolver.swift - Argument Resolution -------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

Expand Down
14 changes: 8 additions & 6 deletions Sources/SwiftDriver/Execution/DriverExecutor.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===--------------- DriverExecutor.swift - Swift Driver Executor----------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

Expand Down
14 changes: 8 additions & 6 deletions Sources/SwiftDriver/Execution/ParsableOutput.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===--------------- ParseableOutput.swift - Swift Parseable Output -------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

Expand Down
14 changes: 8 additions & 6 deletions Sources/SwiftDriver/Execution/ProcessProtocol.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
//===--------------- ProessProtocol.swift - Swift Subprocesses ------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Swift project authors
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

Expand Down
Loading
Loading