From 7bf58ad4c93fb245defe3976362da7e1f6ac640b Mon Sep 17 00:00:00 2001 From: Doug Gregor Date: Sun, 6 Oct 2019 23:06:54 -0700 Subject: [PATCH] Add license boilerplate in line with the Swift project --- LICENSE.txt | 211 ++++++++++++++++++ Sources/SwiftDriver/Driver/CompilerMode.swift | 11 + Sources/SwiftDriver/Driver/DebugInfo.swift | 11 + Sources/SwiftDriver/Driver/Driver.swift | 11 + Sources/SwiftDriver/Driver/DriverKind.swift | 11 + Sources/SwiftDriver/Driver/LinkKind.swift | 12 + .../SwiftDriver/Driver/OutputFileMap.swift | 11 + .../Driver/ToolExecutionDelegate.swift | 11 + .../SwiftDriver/Execution/JobExecutor.swift | 11 + .../Execution/ParsableOutput.swift | 11 + .../Execution/ProcessProtocol.swift | 11 + Sources/SwiftDriver/Execution/llbuild.swift | 12 + .../IncrementalCompilation.swift | 11 + .../InputIInfoMap.swift | 11 + .../Incremental Compilation/InputInfo.swift | 11 + .../SwiftDriver/Jobs/AutolinkExtractJob.swift | 11 + Sources/SwiftDriver/Jobs/CompileJob.swift | 11 + .../Jobs/DarwinToolchain+LinkerSupport.swift | 11 + Sources/SwiftDriver/Jobs/EmitModuleJob.swift | 12 + .../SwiftDriver/Jobs/FrontendJobHelpers.swift | 11 + .../SwiftDriver/Jobs/GenerateDSYMJob.swift | 11 + .../GenericUnixToolchain+LinkerSupport.swift | 11 + Sources/SwiftDriver/Jobs/Job.swift | 11 + Sources/SwiftDriver/Jobs/LinkJob.swift | 11 + Sources/SwiftDriver/Jobs/MergeModuleJob.swift | 11 + Sources/SwiftDriver/Jobs/Planning.swift | 11 + .../Jobs/Toolchain+LinkerSupport.swift | 11 + .../SwiftDriver/Options/ExtraOptions.swift | 12 +- Sources/SwiftDriver/Options/Option.swift | 11 + .../SwiftDriver/Options/OptionParsing.swift | 11 + Sources/SwiftDriver/Options/OptionTable.swift | 11 + .../SwiftDriver/Options/ParsedOptions.swift | 12 + .../Toolchains/DarwinToolchain.swift | 11 + .../Toolchains/GenericUnixToolchain.swift | 11 + .../SwiftDriver/Toolchains/Toolchain.swift | 11 + .../Utilities/DOTJobGraphSerializer.swift | 11 + .../SwiftDriver/Utilities/DateAdditions.swift | 11 + .../SwiftDriver/Utilities/Diagnostics.swift | 11 + Sources/SwiftDriver/Utilities/FileType.swift | 12 + .../Utilities/RelativePathAdditions.swift | 11 + Sources/SwiftDriver/Utilities/Sanitizer.swift | 12 + .../Utilities/StringAdditions.swift | 11 + .../Utilities/Triple+Platforms.swift | 12 + Sources/SwiftDriver/Utilities/Triple.swift | 12 + .../Utilities/TypedVirtualPath.swift | 11 + .../SwiftDriver/Utilities/VirtualPath.swift | 11 + Sources/makeOptions/main.cpp | 11 + Sources/makeOptions/makeOptions.cpp | 11 + Sources/swift-driver/main.swift | 11 + .../IncrementalCompilationTests.swift | 11 + Tests/SwiftDriverTests/IntegrationTests.swift | 11 + Tests/SwiftDriverTests/JobExecutorTests.swift | 11 + .../ParsableMessageTests.swift | 11 + Tests/SwiftDriverTests/Permutations.swift | 12 + Tests/SwiftDriverTests/SwiftDriverTests.swift | 11 + Tests/SwiftDriverTests/TripleTests.swift | 11 + 56 files changed, 825 insertions(+), 1 deletion(-) create mode 100644 LICENSE.txt diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 000000000..61b0c7819 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,211 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +## Runtime Library Exception to the Apache 2.0 License: ## + + + As an exception, if you use this Software to compile your source code and + portions of this Software are embedded into the binary product as a result, + you may redistribute such product without providing attribution as would + otherwise be required by Sections 4(a), 4(b) and 4(d) of the License. diff --git a/Sources/SwiftDriver/Driver/CompilerMode.swift b/Sources/SwiftDriver/Driver/CompilerMode.swift index 3a0c19244..8c623642d 100644 --- a/Sources/SwiftDriver/Driver/CompilerMode.swift +++ b/Sources/SwiftDriver/Driver/CompilerMode.swift @@ -1,3 +1,14 @@ +//===--------------- CompilerMode.swift - Swift Compiler Mode -------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// /// The mode of the compiler. public enum CompilerMode: Equatable { /// A standard compilation, using multiple frontend invocations and -primary-file. diff --git a/Sources/SwiftDriver/Driver/DebugInfo.swift b/Sources/SwiftDriver/Driver/DebugInfo.swift index ff4f5a9b4..af2a3568c 100644 --- a/Sources/SwiftDriver/Driver/DebugInfo.swift +++ b/Sources/SwiftDriver/Driver/DebugInfo.swift @@ -1,3 +1,14 @@ +//===--------------- main.swift - Swift Debug Information Kind ------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// /// Describes the format used for debug information. public enum DebugInfoFormat: String { case dwarf diff --git a/Sources/SwiftDriver/Driver/Driver.swift b/Sources/SwiftDriver/Driver/Driver.swift index bb11c08e1..22a1bc8d4 100644 --- a/Sources/SwiftDriver/Driver/Driver.swift +++ b/Sources/SwiftDriver/Driver/Driver.swift @@ -1,3 +1,14 @@ +//===--------------- Driver.swift - Swift Driver --------------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import TSCUtility diff --git a/Sources/SwiftDriver/Driver/DriverKind.swift b/Sources/SwiftDriver/Driver/DriverKind.swift index 518b64b7b..2f5d2dd05 100644 --- a/Sources/SwiftDriver/Driver/DriverKind.swift +++ b/Sources/SwiftDriver/Driver/DriverKind.swift @@ -1,3 +1,14 @@ +//===--------------- DriverKind.swift - Swift Driver Kind -----------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// /// Describes which mode the driver is in, which dictates public enum DriverKind { case interactive diff --git a/Sources/SwiftDriver/Driver/LinkKind.swift b/Sources/SwiftDriver/Driver/LinkKind.swift index a34397d17..e996eb317 100644 --- a/Sources/SwiftDriver/Driver/LinkKind.swift +++ b/Sources/SwiftDriver/Driver/LinkKind.swift @@ -1,3 +1,15 @@ +//===--------------- LinkKind.swift - Swift Linking Kind ------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + /// Describes the kind of linker output we expect to produce. public enum LinkOutputType { /// An executable file. diff --git a/Sources/SwiftDriver/Driver/OutputFileMap.swift b/Sources/SwiftDriver/Driver/OutputFileMap.swift index ac6e31fe6..092fb131a 100644 --- a/Sources/SwiftDriver/Driver/OutputFileMap.swift +++ b/Sources/SwiftDriver/Driver/OutputFileMap.swift @@ -1,3 +1,14 @@ +//===--------------- OutputFileMap.swift - Swift Output File Map ----------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import Foundation diff --git a/Sources/SwiftDriver/Driver/ToolExecutionDelegate.swift b/Sources/SwiftDriver/Driver/ToolExecutionDelegate.swift index 69358ec96..c2739790c 100644 --- a/Sources/SwiftDriver/Driver/ToolExecutionDelegate.swift +++ b/Sources/SwiftDriver/Driver/ToolExecutionDelegate.swift @@ -1,3 +1,14 @@ +//===--------------- ToolExecutionDelegate.swift - Tool Execution Delegate ===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic /// Delegate for printing execution information on the command-line. diff --git a/Sources/SwiftDriver/Execution/JobExecutor.swift b/Sources/SwiftDriver/Execution/JobExecutor.swift index 3fe80e7f6..a0cc01a47 100644 --- a/Sources/SwiftDriver/Execution/JobExecutor.swift +++ b/Sources/SwiftDriver/Execution/JobExecutor.swift @@ -1,3 +1,14 @@ +//===--------------- JobExecutor.swift - Swift Job Execution --------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import enum TSCUtility.Diagnostics diff --git a/Sources/SwiftDriver/Execution/ParsableOutput.swift b/Sources/SwiftDriver/Execution/ParsableOutput.swift index a0b3317a6..835bd0bee 100644 --- a/Sources/SwiftDriver/Execution/ParsableOutput.swift +++ b/Sources/SwiftDriver/Execution/ParsableOutput.swift @@ -1,3 +1,14 @@ +//===--------------- ParseableOutput.swift - Swift Parseable Output -------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import Foundation diff --git a/Sources/SwiftDriver/Execution/ProcessProtocol.swift b/Sources/SwiftDriver/Execution/ProcessProtocol.swift index 07c939a6f..b0e4c0807 100644 --- a/Sources/SwiftDriver/Execution/ProcessProtocol.swift +++ b/Sources/SwiftDriver/Execution/ProcessProtocol.swift @@ -1,3 +1,14 @@ +//===--------------- ProessProtocol.swift - Swift Subprocesses ------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic /// Abstraction for functionality that allows working with subprocesses. diff --git a/Sources/SwiftDriver/Execution/llbuild.swift b/Sources/SwiftDriver/Execution/llbuild.swift index 4c1d353e5..008b28eee 100644 --- a/Sources/SwiftDriver/Execution/llbuild.swift +++ b/Sources/SwiftDriver/Execution/llbuild.swift @@ -1,3 +1,15 @@ +//===--------------- llbuild.swift - Swift LLBuild Interaction ------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + // FIXME: This is directly copied from SwiftPM, consider moving this to llbuild. // We either export the llbuildSwift shared library or the llbuild framework. diff --git a/Sources/SwiftDriver/Incremental Compilation/IncrementalCompilation.swift b/Sources/SwiftDriver/Incremental Compilation/IncrementalCompilation.swift index 4e2f95acb..353bd87c3 100644 --- a/Sources/SwiftDriver/Incremental Compilation/IncrementalCompilation.swift +++ b/Sources/SwiftDriver/Incremental Compilation/IncrementalCompilation.swift @@ -1,3 +1,14 @@ +//===--------------- IncrementalCompilation.swift - Incremental -----------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import TSCUtility import Foundation diff --git a/Sources/SwiftDriver/Incremental Compilation/InputIInfoMap.swift b/Sources/SwiftDriver/Incremental Compilation/InputIInfoMap.swift index 57ef818bf..21d686fe9 100644 --- a/Sources/SwiftDriver/Incremental Compilation/InputIInfoMap.swift +++ b/Sources/SwiftDriver/Incremental Compilation/InputIInfoMap.swift @@ -1,3 +1,14 @@ +//===--------------- InputInfoMap.swift - Swift Input File Info Map -------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import TSCUtility import Foundation diff --git a/Sources/SwiftDriver/Incremental Compilation/InputInfo.swift b/Sources/SwiftDriver/Incremental Compilation/InputInfo.swift index 89270ba92..c81ede95b 100644 --- a/Sources/SwiftDriver/Incremental Compilation/InputInfo.swift +++ b/Sources/SwiftDriver/Incremental Compilation/InputInfo.swift @@ -1,3 +1,14 @@ +//===--------------- InputInfo.swift - Swift Input File Info --------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import TSCUtility import Foundation diff --git a/Sources/SwiftDriver/Jobs/AutolinkExtractJob.swift b/Sources/SwiftDriver/Jobs/AutolinkExtractJob.swift index 007b10b1c..2fb193353 100644 --- a/Sources/SwiftDriver/Jobs/AutolinkExtractJob.swift +++ b/Sources/SwiftDriver/Jobs/AutolinkExtractJob.swift @@ -1,3 +1,14 @@ +//===--------------- AutolinkExtractJob.swift - Swift Autolink Extract ----===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import TSCUtility diff --git a/Sources/SwiftDriver/Jobs/CompileJob.swift b/Sources/SwiftDriver/Jobs/CompileJob.swift index 3d83c281c..43063b7da 100644 --- a/Sources/SwiftDriver/Jobs/CompileJob.swift +++ b/Sources/SwiftDriver/Jobs/CompileJob.swift @@ -1,3 +1,14 @@ +//===--------------- CompileJob.swift - Swift Compilation Job -------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic extension Driver { diff --git a/Sources/SwiftDriver/Jobs/DarwinToolchain+LinkerSupport.swift b/Sources/SwiftDriver/Jobs/DarwinToolchain+LinkerSupport.swift index 0f3e94a2c..20b364ad7 100644 --- a/Sources/SwiftDriver/Jobs/DarwinToolchain+LinkerSupport.swift +++ b/Sources/SwiftDriver/Jobs/DarwinToolchain+LinkerSupport.swift @@ -1,3 +1,14 @@ +//===--------------- DarwinToolchain+LinkerSupport.swift ------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import TSCUtility diff --git a/Sources/SwiftDriver/Jobs/EmitModuleJob.swift b/Sources/SwiftDriver/Jobs/EmitModuleJob.swift index c2ad1bbcb..c49957bf6 100644 --- a/Sources/SwiftDriver/Jobs/EmitModuleJob.swift +++ b/Sources/SwiftDriver/Jobs/EmitModuleJob.swift @@ -1,4 +1,16 @@ +//===--------------- EmitModuleJob.swift - Swift Module Emission Job ------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// extension Driver { + /// Form a job that emits a single module mutating func emitModuleJob() throws -> Job { let moduleOutputPath = moduleOutput!.outputPath var commandLine: [Job.ArgTemplate] = swiftCompilerPrefixArgs.map { Job.ArgTemplate.flag($0) } diff --git a/Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift b/Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift index 7873cdb85..3589b7f15 100644 --- a/Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift +++ b/Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift @@ -1,3 +1,14 @@ +//===--------------- FrontendJobHelpers.swift - Swift Frontend Job Common -===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic /// Whether we should produce color diagnostics by default. diff --git a/Sources/SwiftDriver/Jobs/GenerateDSYMJob.swift b/Sources/SwiftDriver/Jobs/GenerateDSYMJob.swift index 5ace9e07d..c0b5d10be 100644 --- a/Sources/SwiftDriver/Jobs/GenerateDSYMJob.swift +++ b/Sources/SwiftDriver/Jobs/GenerateDSYMJob.swift @@ -1,3 +1,14 @@ +//===--------------- GenerateDSYMJob.swift - Swift dSYM Generation --------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import TSCUtility diff --git a/Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift b/Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift index 29e09b5ba..cb0a2cdbd 100644 --- a/Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift +++ b/Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift @@ -1,3 +1,14 @@ +//===--------------- GenericUnixToolchain+LinkerSupport.swift -------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import TSCUtility diff --git a/Sources/SwiftDriver/Jobs/Job.swift b/Sources/SwiftDriver/Jobs/Job.swift index 59f5e1222..20fcd9852 100644 --- a/Sources/SwiftDriver/Jobs/Job.swift +++ b/Sources/SwiftDriver/Jobs/Job.swift @@ -1,3 +1,14 @@ +//===--------------- Job.swift - Swift Job Abstraction --------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic /// A job represents an individual subprocess that should be invoked during compilation. diff --git a/Sources/SwiftDriver/Jobs/LinkJob.swift b/Sources/SwiftDriver/Jobs/LinkJob.swift index 413229971..05e8b3e3c 100644 --- a/Sources/SwiftDriver/Jobs/LinkJob.swift +++ b/Sources/SwiftDriver/Jobs/LinkJob.swift @@ -1,3 +1,14 @@ +//===--------------- LinkJob.swift - Swift Linking Job --------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic extension Driver { diff --git a/Sources/SwiftDriver/Jobs/MergeModuleJob.swift b/Sources/SwiftDriver/Jobs/MergeModuleJob.swift index f6a520b3b..e5f08224a 100644 --- a/Sources/SwiftDriver/Jobs/MergeModuleJob.swift +++ b/Sources/SwiftDriver/Jobs/MergeModuleJob.swift @@ -1,3 +1,14 @@ +//===--------------- MergeModuleJob.swift - Swift Module Merging ----------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic extension Driver { diff --git a/Sources/SwiftDriver/Jobs/Planning.swift b/Sources/SwiftDriver/Jobs/Planning.swift index fcc4c5da9..11d27adad 100644 --- a/Sources/SwiftDriver/Jobs/Planning.swift +++ b/Sources/SwiftDriver/Jobs/Planning.swift @@ -1,3 +1,14 @@ +//===--------------- Planning.swift - Swift Compilation Planning ----------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// /// Planning for builds extension Driver { /// Plan a standard compilation, which produces jobs for compiling separate diff --git a/Sources/SwiftDriver/Jobs/Toolchain+LinkerSupport.swift b/Sources/SwiftDriver/Jobs/Toolchain+LinkerSupport.swift index abd94e6d4..4de74a810 100644 --- a/Sources/SwiftDriver/Jobs/Toolchain+LinkerSupport.swift +++ b/Sources/SwiftDriver/Jobs/Toolchain+LinkerSupport.swift @@ -1,3 +1,14 @@ +//===--------------- Toolchain+LinkerSupport.swift - Swift Linker Support -===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic import TSCUtility diff --git a/Sources/SwiftDriver/Options/ExtraOptions.swift b/Sources/SwiftDriver/Options/ExtraOptions.swift index 5e8f9fd3c..777668966 100644 --- a/Sources/SwiftDriver/Options/ExtraOptions.swift +++ b/Sources/SwiftDriver/Options/ExtraOptions.swift @@ -1,4 +1,14 @@ - +//===--------------- ExtraOptions.swift - Swift Driver Extra Options ------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// extension Option { public static let driverPrintGraphviz: Option = Option("-driver-print-graphviz", .flag, attributes: [.helpHidden, .doesNotAffectIncrementalBuild], helpText: "Write the job graph as a graphviz file", group: .internalDebug) diff --git a/Sources/SwiftDriver/Options/Option.swift b/Sources/SwiftDriver/Options/Option.swift index 223ffb6d7..34f47ff5b 100644 --- a/Sources/SwiftDriver/Options/Option.swift +++ b/Sources/SwiftDriver/Options/Option.swift @@ -1,3 +1,14 @@ +//===--------------- Option.swift - Swift Command Line Option -------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// /// Attributes that describe where and how the option is used. public struct OptionAttributes: OptionSet, Hashable { public let rawValue: UInt diff --git a/Sources/SwiftDriver/Options/OptionParsing.swift b/Sources/SwiftDriver/Options/OptionParsing.swift index 37e55eeb8..79814ce00 100644 --- a/Sources/SwiftDriver/Options/OptionParsing.swift +++ b/Sources/SwiftDriver/Options/OptionParsing.swift @@ -1,3 +1,14 @@ +//===--------------- OptionParsing.swift - Swift Option Parser ------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// public enum OptionParseError : Error { case unknownOption(index: Int, argument: String) case missingArgument(index: Int, argument: String) diff --git a/Sources/SwiftDriver/Options/OptionTable.swift b/Sources/SwiftDriver/Options/OptionTable.swift index 58da271c1..19ebbff7f 100644 --- a/Sources/SwiftDriver/Options/OptionTable.swift +++ b/Sources/SwiftDriver/Options/OptionTable.swift @@ -1,3 +1,14 @@ +//===--------------- OptionTable.swift - Swift Option Table ---------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// public struct OptionTable { public init() { } diff --git a/Sources/SwiftDriver/Options/ParsedOptions.swift b/Sources/SwiftDriver/Options/ParsedOptions.swift index f131025f0..49c9bb159 100644 --- a/Sources/SwiftDriver/Options/ParsedOptions.swift +++ b/Sources/SwiftDriver/Options/ParsedOptions.swift @@ -1,3 +1,15 @@ +//===--------------- ParsedOptions.swift - Swift Parsed Options -----------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + /// Describes a single parsed option with its argument (if any). public struct ParsedOption { public enum Argument { diff --git a/Sources/SwiftDriver/Toolchains/DarwinToolchain.swift b/Sources/SwiftDriver/Toolchains/DarwinToolchain.swift index 679fba83a..5508779c3 100644 --- a/Sources/SwiftDriver/Toolchains/DarwinToolchain.swift +++ b/Sources/SwiftDriver/Toolchains/DarwinToolchain.swift @@ -1,3 +1,14 @@ +//===--------------- DarwinToolchain.swift - Swift Darwin Toolchain -------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic fileprivate func envVarName(forExecutable toolName: String) -> String { diff --git a/Sources/SwiftDriver/Toolchains/GenericUnixToolchain.swift b/Sources/SwiftDriver/Toolchains/GenericUnixToolchain.swift index 27ad1690f..3a7f2e220 100644 --- a/Sources/SwiftDriver/Toolchains/GenericUnixToolchain.swift +++ b/Sources/SwiftDriver/Toolchains/GenericUnixToolchain.swift @@ -1,3 +1,14 @@ +//===--------------- GenericUnixToolchain.swift - Swift *nix Toolchain ----===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic /// Toolchain for Unix-like systems. diff --git a/Sources/SwiftDriver/Toolchains/Toolchain.swift b/Sources/SwiftDriver/Toolchains/Toolchain.swift index 0ae458c23..d3abce8e0 100644 --- a/Sources/SwiftDriver/Toolchains/Toolchain.swift +++ b/Sources/SwiftDriver/Toolchains/Toolchain.swift @@ -1,3 +1,14 @@ +//===--------------- Toolchain.swift - Swift Toolchain Abstraction --------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic public enum Tool { diff --git a/Sources/SwiftDriver/Utilities/DOTJobGraphSerializer.swift b/Sources/SwiftDriver/Utilities/DOTJobGraphSerializer.swift index 177ee83f4..b83f100cd 100644 --- a/Sources/SwiftDriver/Utilities/DOTJobGraphSerializer.swift +++ b/Sources/SwiftDriver/Utilities/DOTJobGraphSerializer.swift @@ -1,3 +1,14 @@ +//===--------------- DOTJobGraphSerializer.swift - Swift GraphViz ---------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic /// Serializes the job graph to a .dot file diff --git a/Sources/SwiftDriver/Utilities/DateAdditions.swift b/Sources/SwiftDriver/Utilities/DateAdditions.swift index 616066e53..88c651787 100644 --- a/Sources/SwiftDriver/Utilities/DateAdditions.swift +++ b/Sources/SwiftDriver/Utilities/DateAdditions.swift @@ -1,3 +1,14 @@ +//===--------------- DateAdditions.swift - Swift Date Additions -----------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import Foundation public extension Date { diff --git a/Sources/SwiftDriver/Utilities/Diagnostics.swift b/Sources/SwiftDriver/Utilities/Diagnostics.swift index 33197b535..2794ff5ac 100644 --- a/Sources/SwiftDriver/Utilities/Diagnostics.swift +++ b/Sources/SwiftDriver/Utilities/Diagnostics.swift @@ -1,3 +1,14 @@ +//===--------------- Diagnostics.swift - Swift Driver Diagnostics ---------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic public typealias Diagnostic = TSCBasic.Diagnostic diff --git a/Sources/SwiftDriver/Utilities/FileType.swift b/Sources/SwiftDriver/Utilities/FileType.swift index 91953ec11..a90a5c354 100644 --- a/Sources/SwiftDriver/Utilities/FileType.swift +++ b/Sources/SwiftDriver/Utilities/FileType.swift @@ -1,3 +1,15 @@ +//===--------------- FileType.swift - Swift File Types --------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + /// Describes the kinds of files that the driver understands. /// /// The raw values for these enumerations describe the default extension for] diff --git a/Sources/SwiftDriver/Utilities/RelativePathAdditions.swift b/Sources/SwiftDriver/Utilities/RelativePathAdditions.swift index 54a1a15ed..6eacce43f 100644 --- a/Sources/SwiftDriver/Utilities/RelativePathAdditions.swift +++ b/Sources/SwiftDriver/Utilities/RelativePathAdditions.swift @@ -1,3 +1,14 @@ +//===--------------- RelativePathAdditions.swift - Swift Relative Paths ---===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic extension RelativePath { diff --git a/Sources/SwiftDriver/Utilities/Sanitizer.swift b/Sources/SwiftDriver/Utilities/Sanitizer.swift index b0215abd0..9a4371c5c 100644 --- a/Sources/SwiftDriver/Utilities/Sanitizer.swift +++ b/Sources/SwiftDriver/Utilities/Sanitizer.swift @@ -1,3 +1,15 @@ +//===--------------- Sanitizer.swift - Swift Sanitizers -------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + /// Defines a sanitizer that can be used to instrument the resulting product of /// this build. public enum Sanitizer: String, Hashable { diff --git a/Sources/SwiftDriver/Utilities/StringAdditions.swift b/Sources/SwiftDriver/Utilities/StringAdditions.swift index 98a758f4b..79181fa54 100644 --- a/Sources/SwiftDriver/Utilities/StringAdditions.swift +++ b/Sources/SwiftDriver/Utilities/StringAdditions.swift @@ -1,3 +1,14 @@ +//===--------------- StringAdditions.swift - Swift String Additions -------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// extension String { /// Whether this string is a Swift identifier. var isSwiftIdentifier: Bool { diff --git a/Sources/SwiftDriver/Utilities/Triple+Platforms.swift b/Sources/SwiftDriver/Utilities/Triple+Platforms.swift index 1d9fdb928..83d3a4e75 100644 --- a/Sources/SwiftDriver/Utilities/Triple+Platforms.swift +++ b/Sources/SwiftDriver/Utilities/Triple+Platforms.swift @@ -1,3 +1,15 @@ +//===--------------- Triple+Platforms.swift - Swift Platform Triples ------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + /// Represents any of the "Apple" platforms handled by `DarwinToolchain`. /// This boils down a lot of complicated logic about different variants and /// environments into a straightforward, tightly-modeled type that can be diff --git a/Sources/SwiftDriver/Utilities/Triple.swift b/Sources/SwiftDriver/Utilities/Triple.swift index 0390e1791..0b4c78cfa 100644 --- a/Sources/SwiftDriver/Utilities/Triple.swift +++ b/Sources/SwiftDriver/Utilities/Triple.swift @@ -1,3 +1,15 @@ +//===--------------- Triple.swift - Swift Target Triples ------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + import class TSCBasic.Process /// Helper for working with target triples. diff --git a/Sources/SwiftDriver/Utilities/TypedVirtualPath.swift b/Sources/SwiftDriver/Utilities/TypedVirtualPath.swift index 3026636f4..ee2ec2f31 100644 --- a/Sources/SwiftDriver/Utilities/TypedVirtualPath.swift +++ b/Sources/SwiftDriver/Utilities/TypedVirtualPath.swift @@ -1,3 +1,14 @@ +//===--------------- TypedVirtualPath.swift - Swift Virtual Paths ---------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// /// A path for which the type of the input is known. public struct TypedVirtualPath: Hashable, Codable { /// The file this input refers to. diff --git a/Sources/SwiftDriver/Utilities/VirtualPath.swift b/Sources/SwiftDriver/Utilities/VirtualPath.swift index 4a1e7f090..4aacec63d 100644 --- a/Sources/SwiftDriver/Utilities/VirtualPath.swift +++ b/Sources/SwiftDriver/Utilities/VirtualPath.swift @@ -1,3 +1,14 @@ +//===--------------- VirtualPath.swift - Swift Virtual Paths --------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import TSCBasic /// A virtual path. diff --git a/Sources/makeOptions/main.cpp b/Sources/makeOptions/main.cpp index 367890a14..d594496db 100644 --- a/Sources/makeOptions/main.cpp +++ b/Sources/makeOptions/main.cpp @@ -1,3 +1,14 @@ +//===--------------- main.cpp - Option Generation Main Entrypoint ---------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// extern int makeOptions_main(); int main() { diff --git a/Sources/makeOptions/makeOptions.cpp b/Sources/makeOptions/makeOptions.cpp index 944b31d21..15718c471 100644 --- a/Sources/makeOptions/makeOptions.cpp +++ b/Sources/makeOptions/makeOptions.cpp @@ -1,3 +1,14 @@ +//===--------------- makeOptions.cpp - Option Generation ------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// #include #include #include diff --git a/Sources/swift-driver/main.swift b/Sources/swift-driver/main.swift index b9789d8c5..641b1e9b7 100644 --- a/Sources/swift-driver/main.swift +++ b/Sources/swift-driver/main.swift @@ -1,3 +1,14 @@ +//===--------------- main.swift - Swift Driver Main Entrypoint ------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import SwiftDriver import TSCLibc diff --git a/Tests/SwiftDriverTests/IncrementalCompilationTests.swift b/Tests/SwiftDriverTests/IncrementalCompilationTests.swift index 356d668f7..6383a2024 100644 --- a/Tests/SwiftDriverTests/IncrementalCompilationTests.swift +++ b/Tests/SwiftDriverTests/IncrementalCompilationTests.swift @@ -1,3 +1,14 @@ +//===--------------- IncrementalCompilationTests.swift - Swift Testing ----===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import XCTest import TSCBasic import TSCUtility diff --git a/Tests/SwiftDriverTests/IntegrationTests.swift b/Tests/SwiftDriverTests/IntegrationTests.swift index fa87aa179..be6b5358e 100644 --- a/Tests/SwiftDriverTests/IntegrationTests.swift +++ b/Tests/SwiftDriverTests/IntegrationTests.swift @@ -1,3 +1,14 @@ +//===--------------- IntegrationTests.swift - Swift Integration Tests -----===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import XCTest import TSCBasic diff --git a/Tests/SwiftDriverTests/JobExecutorTests.swift b/Tests/SwiftDriverTests/JobExecutorTests.swift index 575582153..047d10c3d 100644 --- a/Tests/SwiftDriverTests/JobExecutorTests.swift +++ b/Tests/SwiftDriverTests/JobExecutorTests.swift @@ -1,3 +1,14 @@ +//===--------------- JobExecutorTests.swift - Swift Execution Tests -------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import XCTest import TSCBasic diff --git a/Tests/SwiftDriverTests/ParsableMessageTests.swift b/Tests/SwiftDriverTests/ParsableMessageTests.swift index a9c6363d8..54e1d4cf2 100644 --- a/Tests/SwiftDriverTests/ParsableMessageTests.swift +++ b/Tests/SwiftDriverTests/ParsableMessageTests.swift @@ -1,3 +1,14 @@ +//===--------------- ParsableMessageTests.swift - Swift Parsable Output ---===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import XCTest import Foundation import TSCBasic diff --git a/Tests/SwiftDriverTests/Permutations.swift b/Tests/SwiftDriverTests/Permutations.swift index 6aa7b2cdb..c616856e2 100644 --- a/Tests/SwiftDriverTests/Permutations.swift +++ b/Tests/SwiftDriverTests/Permutations.swift @@ -1,3 +1,15 @@ +//===--------------- Permutations.swift - Swift Permutations --------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + // Copied from StdlibCoreExtras.swift in StdlibUnittest. enum FormNextPermutationResult { diff --git a/Tests/SwiftDriverTests/SwiftDriverTests.swift b/Tests/SwiftDriverTests/SwiftDriverTests.swift index 64206e427..f88f2c112 100644 --- a/Tests/SwiftDriverTests/SwiftDriverTests.swift +++ b/Tests/SwiftDriverTests/SwiftDriverTests.swift @@ -1,3 +1,14 @@ +//===--------------- SwiftDriverTests.swift - Swift Driver Tests -======---===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import XCTest import SwiftDriver import TSCBasic diff --git a/Tests/SwiftDriverTests/TripleTests.swift b/Tests/SwiftDriverTests/TripleTests.swift index 5a579f58b..5495b1d38 100644 --- a/Tests/SwiftDriverTests/TripleTests.swift +++ b/Tests/SwiftDriverTests/TripleTests.swift @@ -1,3 +1,14 @@ +//===--------------- TripleTests.swift - Swift Target Triple Tests --------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// import XCTest import SwiftDriver