diff --git a/.bazelrc b/.bazelrc index 80ed316ed13..1d851908af5 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,3 +1,15 @@ +##===----------------------------------------------------------------------===## +## +## 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 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 +## +##===----------------------------------------------------------------------===## + common --enable_bzlmod common --incompatible_disallow_empty_glob common --incompatible_use_host_features diff --git a/.editorconfig b/.editorconfig index 410ff6c9ed0..5115e8fa34e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,15 @@ +##===----------------------------------------------------------------------===## +## +## 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 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 +## +##===----------------------------------------------------------------------===## + # editorconfig.org root = true diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 44bd13ea3c8..00000000000 --- a/.flake8 +++ /dev/null @@ -1,28 +0,0 @@ -[flake8] - -filename = - *.py, - list_tests/lit.cfg, - -exclude = - .git, - __pycache__, - - # Ignore non-Python directories. - Sources, - Tests, - utils, - -extend-ignore = - # The black tool treats slices consistently, the E203 warning is not PEP8 - # compliant (https://github.com/psf/black#slices). - E203, - - # Line breaks before binary operators are not explicitly disallowed in - # PEP8, rather it should be consistent throughout the project. The black - # tool puts them on new lines which is to be considered a best practice - # in the future. - W503, - -# 10% larger than the typical 80, conforms to the black standard. -max-line-length = 88 diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 72267a9bbe7..8e482fff130 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -15,15 +15,12 @@ jobs: name: Soundness uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main with: - license_header_check_project_name: "Swift.org" # https://github.com/swiftlang/swift-syntax/issues/2986 api_breakage_check_enabled: false # https://github.com/swiftlang/swift-syntax/issues/2987 docs_check_enabled: false # https://github.com/swiftlang/swift-syntax/issues/2988 format_check_enabled: false - # https://github.com/swiftlang/swift-syntax/issues/2989 - license_header_check_enabled: false # https://github.com/swiftlang/swift-syntax/issues/2990 unacceptable_language_check_enabled: false # https://github.com/swiftlang/swift-syntax/issues/2991 diff --git a/.license_header_template b/.license_header_template new file mode 100644 index 00000000000..309ac5afe41 --- /dev/null +++ b/.license_header_template @@ -0,0 +1,11 @@ +@@===----------------------------------------------------------------------===@@ +@@ +@@ This source file is part of the Swift.org open source project +@@ +@@ Copyright (c) YEARS 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 +@@ +@@===----------------------------------------------------------------------===@@ diff --git a/.licenseignore b/.licenseignore new file mode 100644 index 00000000000..a7db8ca67de --- /dev/null +++ b/.licenseignore @@ -0,0 +1,15 @@ +.bazelversion +.gitignore +*.md +*.txt +*.yml +**/*.docc/** +**/*.entitlements +**/*.input +**/*.modulemap +**/*.plist +**/*.xcodeproj/** +**/CODEOWNERS +*Package.swift +swift-syntax-dev-utils +WORKSPACE diff --git a/BUILD.bazel b/BUILD.bazel index c3e94902597..1360cff9043 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,3 +1,15 @@ +##===----------------------------------------------------------------------===## +## +## 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 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 +## +##===----------------------------------------------------------------------===## + load("@build_bazel_rules_apple//apple/testing/default_runner:ios_xctestrun_runner.bzl", "ios_xctestrun_runner") load("//utils/bazel:swift_syntax_library.bzl", "swift_syntax_library", "swift_syntax_test") diff --git a/CodeGeneration/Sources/Utils/CopyrightHeader.swift b/CodeGeneration/Sources/Utils/CopyrightHeader.swift index 25dd003c743..b185d224679 100644 --- a/CodeGeneration/Sources/Utils/CopyrightHeader.swift +++ b/CodeGeneration/Sources/Utils/CopyrightHeader.swift @@ -14,8 +14,6 @@ import SwiftSyntax public var copyrightHeader: Trivia = """ - //// Automatically generated by generate-swift-syntax - //// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -27,4 +25,6 @@ public var copyrightHeader: Trivia = // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// + //// Automatically generated by generate-swift-syntax + //// Do not edit directly! """ + .newlines(2) diff --git a/Examples/Sources/AddOneToIntegerLiterals/AddOneToIntegerLiterals.swift b/Examples/Sources/AddOneToIntegerLiterals/AddOneToIntegerLiterals.swift index c66dc22232b..41f88b50f57 100644 --- a/Examples/Sources/AddOneToIntegerLiterals/AddOneToIntegerLiterals.swift +++ b/Examples/Sources/AddOneToIntegerLiterals/AddOneToIntegerLiterals.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// 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 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 import SwiftParser import SwiftSyntax diff --git a/Examples/Sources/CodeGenerationUsingSwiftSyntaxBuilder/CodeGenerationUsingSwiftSyntaxBuilder.swift b/Examples/Sources/CodeGenerationUsingSwiftSyntaxBuilder/CodeGenerationUsingSwiftSyntaxBuilder.swift index 1c87813a221..e613e07ac2b 100644 --- a/Examples/Sources/CodeGenerationUsingSwiftSyntaxBuilder/CodeGenerationUsingSwiftSyntaxBuilder.swift +++ b/Examples/Sources/CodeGenerationUsingSwiftSyntaxBuilder/CodeGenerationUsingSwiftSyntaxBuilder.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// 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 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 SwiftSyntax import SwiftSyntaxBuilder diff --git a/Examples/Sources/Examples-all/empty.swift b/Examples/Sources/Examples-all/empty.swift index b13f5ac30d5..c4a855e6e5e 100644 --- a/Examples/Sources/Examples-all/empty.swift +++ b/Examples/Sources/Examples-all/empty.swift @@ -1,2 +1,14 @@ +//===----------------------------------------------------------------------===// +// +// 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 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 +// +//===----------------------------------------------------------------------===// + // This is a fake target that depends on all targets in the package. // We need to define it manually because the `Examples-Package` target doesn't exist for `swift build`. diff --git a/MODULE.bazel b/MODULE.bazel index e711d17ce99..957b5b67d67 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,3 +1,15 @@ +##===----------------------------------------------------------------------===## +## +## 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 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 +## +##===----------------------------------------------------------------------===## + module( name = "swift-syntax", version = "0", diff --git a/Sources/SwiftCompilerPlugin/CompilerPlugin.swift b/Sources/SwiftCompilerPlugin/CompilerPlugin.swift index b69c40a9548..850f7869aca 100644 --- a/Sources/SwiftCompilerPlugin/CompilerPlugin.swift +++ b/Sources/SwiftCompilerPlugin/CompilerPlugin.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/CompilerPluginMessageHandler.swift b/Sources/SwiftCompilerPluginMessageHandling/CompilerPluginMessageHandler.swift index 016abed8c41..c4aa143c7fc 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/CompilerPluginMessageHandler.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/CompilerPluginMessageHandler.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/Diagnostics.swift b/Sources/SwiftCompilerPluginMessageHandling/Diagnostics.swift index 93f73272a04..33a7425fcf0 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/Diagnostics.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/Diagnostics.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/JSON/CodingUtilities.swift b/Sources/SwiftCompilerPluginMessageHandling/JSON/CodingUtilities.swift index b423f7caea4..0c165b95313 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/JSON/CodingUtilities.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/JSON/CodingUtilities.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2024 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/JSON/JSON.swift b/Sources/SwiftCompilerPluginMessageHandling/JSON/JSON.swift index a0eb47a0925..e36b1ee3f8a 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/JSON/JSON.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/JSON/JSON.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2024 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/JSON/JSONDecoding.swift b/Sources/SwiftCompilerPluginMessageHandling/JSON/JSONDecoding.swift index 6a3f1731717..79c77910871 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/JSON/JSONDecoding.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/JSON/JSONDecoding.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2024 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/JSON/JSONEncoding.swift b/Sources/SwiftCompilerPluginMessageHandling/JSON/JSONEncoding.swift index 319f9384b45..17b659ab3e2 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/JSON/JSONEncoding.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/JSON/JSONEncoding.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2024 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/LRUCache.swift b/Sources/SwiftCompilerPluginMessageHandling/LRUCache.swift index aa67204fd5a..edb0848d6b5 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/LRUCache.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/LRUCache.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2024 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/Macros.swift b/Sources/SwiftCompilerPluginMessageHandling/Macros.swift index bf183bd7786..8d7012da811 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/Macros.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/Macros.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/PluginMacroExpansionContext.swift b/Sources/SwiftCompilerPluginMessageHandling/PluginMacroExpansionContext.swift index 36fdcaeba2b..85b5e5d54ec 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/PluginMacroExpansionContext.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/PluginMacroExpansionContext.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/PluginMessageCompatibility.swift b/Sources/SwiftCompilerPluginMessageHandling/PluginMessageCompatibility.swift index 6658bf57dd4..53285fd06fe 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/PluginMessageCompatibility.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/PluginMessageCompatibility.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/PluginMessages.swift b/Sources/SwiftCompilerPluginMessageHandling/PluginMessages.swift index 37029ff6bd5..4d8b5a3bf72 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/PluginMessages.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/PluginMessages.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftCompilerPluginMessageHandling/StandardIOMessageConnection.swift b/Sources/SwiftCompilerPluginMessageHandling/StandardIOMessageConnection.swift index a6a4e47d267..8f89ac125c9 100644 --- a/Sources/SwiftCompilerPluginMessageHandling/StandardIOMessageConnection.swift +++ b/Sources/SwiftCompilerPluginMessageHandling/StandardIOMessageConnection.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2024 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftLibraryPluginProvider/LibraryPluginProvider.swift b/Sources/SwiftLibraryPluginProvider/LibraryPluginProvider.swift index 5db7694c4c5..1f156f380a2 100644 --- a/Sources/SwiftLibraryPluginProvider/LibraryPluginProvider.swift +++ b/Sources/SwiftLibraryPluginProvider/LibraryPluginProvider.swift @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2024 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/SwiftParser/generated/ExperimentalFeatures.swift b/Sources/SwiftParser/generated/ExperimentalFeatures.swift index c999428f365..9783cc6c814 100644 --- a/Sources/SwiftParser/generated/ExperimentalFeatures.swift +++ b/Sources/SwiftParser/generated/ExperimentalFeatures.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! extension Parser { @_spi(ExperimentalLanguageFeatures) diff --git a/Sources/SwiftParser/generated/IsLexerClassified.swift b/Sources/SwiftParser/generated/IsLexerClassified.swift index 2dd640eb70c..d3efb6fb63a 100644 --- a/Sources/SwiftParser/generated/IsLexerClassified.swift +++ b/Sources/SwiftParser/generated/IsLexerClassified.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! #if compiler(>=6) @_spi(RawSyntax) @_spi(ExperimentalLanguageFeatures) @_spi(Compiler) public import SwiftSyntax diff --git a/Sources/SwiftParser/generated/LayoutNodes+Parsable.swift b/Sources/SwiftParser/generated/LayoutNodes+Parsable.swift index 1907842a6ca..793f422e211 100644 --- a/Sources/SwiftParser/generated/LayoutNodes+Parsable.swift +++ b/Sources/SwiftParser/generated/LayoutNodes+Parsable.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! #if compiler(>=6) @_spi(RawSyntax) @_spi(ExperimentalLanguageFeatures) @_spi(Compiler) public import SwiftSyntax diff --git a/Sources/SwiftParser/generated/Parser+TokenSpecSet.swift b/Sources/SwiftParser/generated/Parser+TokenSpecSet.swift index e2d4d296be0..9dceec184c1 100644 --- a/Sources/SwiftParser/generated/Parser+TokenSpecSet.swift +++ b/Sources/SwiftParser/generated/Parser+TokenSpecSet.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! #if compiler(>=6) @_spi(RawSyntax) @_spi(ExperimentalLanguageFeatures) @_spi(Compiler) public import SwiftSyntax diff --git a/Sources/SwiftParser/generated/TokenSpecStaticMembers.swift b/Sources/SwiftParser/generated/TokenSpecStaticMembers.swift index 4f9ade357d9..62c099aac30 100644 --- a/Sources/SwiftParser/generated/TokenSpecStaticMembers.swift +++ b/Sources/SwiftParser/generated/TokenSpecStaticMembers.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! #if compiler(>=6) @_spi(RawSyntax) @_spi(ExperimentalLanguageFeatures) @_spi(Compiler) internal import SwiftSyntax diff --git a/Sources/SwiftParserDiagnostics/generated/ChildNameForDiagnostics.swift b/Sources/SwiftParserDiagnostics/generated/ChildNameForDiagnostics.swift index 8491eafd390..333b269210e 100644 --- a/Sources/SwiftParserDiagnostics/generated/ChildNameForDiagnostics.swift +++ b/Sources/SwiftParserDiagnostics/generated/ChildNameForDiagnostics.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! #if compiler(>=6) @_spi(RawSyntax) @_spi(ExperimentalLanguageFeatures) @_spi(Compiler) internal import SwiftSyntax diff --git a/Sources/SwiftParserDiagnostics/generated/SyntaxKindNameForDiagnostics.swift b/Sources/SwiftParserDiagnostics/generated/SyntaxKindNameForDiagnostics.swift index 787846cd0e1..ae282ef39a8 100644 --- a/Sources/SwiftParserDiagnostics/generated/SyntaxKindNameForDiagnostics.swift +++ b/Sources/SwiftParserDiagnostics/generated/SyntaxKindNameForDiagnostics.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! #if compiler(>=6) @_spi(RawSyntax) @_spi(ExperimentalLanguageFeatures) @_spi(Compiler) internal import SwiftSyntax diff --git a/Sources/SwiftParserDiagnostics/generated/TokenNameForDiagnostics.swift b/Sources/SwiftParserDiagnostics/generated/TokenNameForDiagnostics.swift index 7ab068f357b..85e86b60a68 100644 --- a/Sources/SwiftParserDiagnostics/generated/TokenNameForDiagnostics.swift +++ b/Sources/SwiftParserDiagnostics/generated/TokenNameForDiagnostics.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! #if compiler(>=6) @_spi(RawSyntax) @_spi(ExperimentalLanguageFeatures) @_spi(Compiler) internal import SwiftSyntax diff --git a/Sources/SwiftSyntax-all/empty.swift b/Sources/SwiftSyntax-all/empty.swift index f98a8033888..191aecaa1a4 100644 --- a/Sources/SwiftSyntax-all/empty.swift +++ b/Sources/SwiftSyntax-all/empty.swift @@ -1,2 +1,14 @@ +//===----------------------------------------------------------------------===// +// +// 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 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 +// +//===----------------------------------------------------------------------===// + // This is a fake target that depends on all targets in the package. // We need to define it manually because the `SwiftSyntax-Package` target doesn't exist for `swift build`. diff --git a/Sources/SwiftSyntax/generated/ChildNameForKeyPath.swift b/Sources/SwiftSyntax/generated/ChildNameForKeyPath.swift index c27b045ecf2..960248257cb 100644 --- a/Sources/SwiftSyntax/generated/ChildNameForKeyPath.swift +++ b/Sources/SwiftSyntax/generated/ChildNameForKeyPath.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! /// If the keyPath is one from a layout structure, return the property name /// of it. diff --git a/Sources/SwiftSyntax/generated/Keyword.swift b/Sources/SwiftSyntax/generated/Keyword.swift index 44fe4d75dc7..e941ff4f59f 100644 --- a/Sources/SwiftSyntax/generated/Keyword.swift +++ b/Sources/SwiftSyntax/generated/Keyword.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! public enum Keyword: UInt8, Hashable, Sendable { case __consuming diff --git a/Sources/SwiftSyntax/generated/RenamedChildrenCompatibility.swift b/Sources/SwiftSyntax/generated/RenamedChildrenCompatibility.swift index 491b4159858..45caa498d7c 100644 --- a/Sources/SwiftSyntax/generated/RenamedChildrenCompatibility.swift +++ b/Sources/SwiftSyntax/generated/RenamedChildrenCompatibility.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! extension AccessorDeclSyntax { @available(*, deprecated, renamed: "unexpectedBetweenModifierAndAccessorSpecifier") diff --git a/Sources/SwiftSyntax/generated/RenamedNodesCompatibility.swift b/Sources/SwiftSyntax/generated/RenamedNodesCompatibility.swift index 2fc6405202e..364bec48f3a 100644 --- a/Sources/SwiftSyntax/generated/RenamedNodesCompatibility.swift +++ b/Sources/SwiftSyntax/generated/RenamedNodesCompatibility.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! @available(*, deprecated, renamed: "ImportPathComponentListSyntax") public typealias AccessPathSyntax = ImportPathComponentListSyntax diff --git a/Sources/SwiftSyntax/generated/SyntaxAnyVisitor.swift b/Sources/SwiftSyntax/generated/SyntaxAnyVisitor.swift index 6de3d50f4aa..17a6e1fa0a5 100644 --- a/Sources/SwiftSyntax/generated/SyntaxAnyVisitor.swift +++ b/Sources/SwiftSyntax/generated/SyntaxAnyVisitor.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! /// A `SyntaxVisitor` that can visit the nodes as generic ``Syntax`` values. /// diff --git a/Sources/SwiftSyntax/generated/SyntaxBaseNodes.swift b/Sources/SwiftSyntax/generated/SyntaxBaseNodes.swift index 8b9cccfe59e..c48884aa317 100644 --- a/Sources/SwiftSyntax/generated/SyntaxBaseNodes.swift +++ b/Sources/SwiftSyntax/generated/SyntaxBaseNodes.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // MARK: - DeclSyntax diff --git a/Sources/SwiftSyntax/generated/SyntaxCollections.swift b/Sources/SwiftSyntax/generated/SyntaxCollections.swift index 9a9774776c9..6c1f3cf0937 100644 --- a/Sources/SwiftSyntax/generated/SyntaxCollections.swift +++ b/Sources/SwiftSyntax/generated/SyntaxCollections.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! /// ### Children /// diff --git a/Sources/SwiftSyntax/generated/SyntaxEnum.swift b/Sources/SwiftSyntax/generated/SyntaxEnum.swift index 1d55a7cb1c5..6509d707e63 100644 --- a/Sources/SwiftSyntax/generated/SyntaxEnum.swift +++ b/Sources/SwiftSyntax/generated/SyntaxEnum.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! /// Enum to exhaustively switch over all different syntax nodes. public enum SyntaxEnum: Sendable { diff --git a/Sources/SwiftSyntax/generated/SyntaxKind.swift b/Sources/SwiftSyntax/generated/SyntaxKind.swift index 887cf329302..f0369af7f5b 100644 --- a/Sources/SwiftSyntax/generated/SyntaxKind.swift +++ b/Sources/SwiftSyntax/generated/SyntaxKind.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! /// Enumerates the known kinds of Syntax represented in the Syntax tree. public enum SyntaxKind: Sendable { diff --git a/Sources/SwiftSyntax/generated/SyntaxRewriter.swift b/Sources/SwiftSyntax/generated/SyntaxRewriter.swift index c297d8f31ce..d6943bec078 100644 --- a/Sources/SwiftSyntax/generated/SyntaxRewriter.swift +++ b/Sources/SwiftSyntax/generated/SyntaxRewriter.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // // This file defines the SyntaxRewriter, a class that performs a standard walk diff --git a/Sources/SwiftSyntax/generated/SyntaxTraits.swift b/Sources/SwiftSyntax/generated/SyntaxTraits.swift index 5dc6acaadce..ea73d621500 100644 --- a/Sources/SwiftSyntax/generated/SyntaxTraits.swift +++ b/Sources/SwiftSyntax/generated/SyntaxTraits.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // MARK: - BracedSyntax diff --git a/Sources/SwiftSyntax/generated/SyntaxVisitor.swift b/Sources/SwiftSyntax/generated/SyntaxVisitor.swift index 519c8a64ec9..addc5278115 100644 --- a/Sources/SwiftSyntax/generated/SyntaxVisitor.swift +++ b/Sources/SwiftSyntax/generated/SyntaxVisitor.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! /// The enum describes how the ``SyntaxVisitor`` should continue after visiting /// the current node. diff --git a/Sources/SwiftSyntax/generated/TokenKind.swift b/Sources/SwiftSyntax/generated/TokenKind.swift index 2d42fa828f8..74946e17d78 100644 --- a/Sources/SwiftSyntax/generated/TokenKind.swift +++ b/Sources/SwiftSyntax/generated/TokenKind.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! /// Enumerates the kinds of tokens in the Swift language. public enum TokenKind: Hashable, Sendable { diff --git a/Sources/SwiftSyntax/generated/Tokens.swift b/Sources/SwiftSyntax/generated/Tokens.swift index a71c447d1f8..73e803bf07a 100644 --- a/Sources/SwiftSyntax/generated/Tokens.swift +++ b/Sources/SwiftSyntax/generated/Tokens.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! extension TokenSyntax { public static func arrowToken( diff --git a/Sources/SwiftSyntax/generated/TriviaPieces.swift b/Sources/SwiftSyntax/generated/TriviaPieces.swift index fb340fc97e6..8420696d9dc 100644 --- a/Sources/SwiftSyntax/generated/TriviaPieces.swift +++ b/Sources/SwiftSyntax/generated/TriviaPieces.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! /// A contiguous stretch of a single kind of trivia. The constituent part of /// a ``Trivia`` collection. diff --git a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesAB.swift b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesAB.swift index c347197c9a1..dc94c05db62 100644 --- a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesAB.swift +++ b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesAB.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! @_spi(ExperimentalLanguageFeatures) @_spi(RawSyntax) diff --git a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesC.swift b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesC.swift index 3efc41c5ec4..26628d62c31 100644 --- a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesC.swift +++ b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesC.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! @_spi(RawSyntax) public struct Raw_CanImportExprSyntax: RawExprSyntaxNodeProtocol { diff --git a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesD.swift b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesD.swift index f2da648a9bd..bfb6248909d 100644 --- a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesD.swift +++ b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesD.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! @_spi(RawSyntax) public protocol RawDeclSyntaxNodeProtocol: RawSyntaxNodeProtocol {} diff --git a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesEF.swift b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesEF.swift index 9018cb9dc79..0f22f3561e4 100644 --- a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesEF.swift +++ b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesEF.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! @_spi(RawSyntax) public protocol RawExprSyntaxNodeProtocol: RawSyntaxNodeProtocol {} diff --git a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesGHI.swift b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesGHI.swift index a2f2b9cb8d7..98a08bbcf8a 100644 --- a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesGHI.swift +++ b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesGHI.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! @_spi(RawSyntax) public struct RawGenericArgumentClauseSyntax: RawSyntaxNodeProtocol { diff --git a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesJKLMN.swift b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesJKLMN.swift index 2e4d2cb833a..8943c340f96 100644 --- a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesJKLMN.swift +++ b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesJKLMN.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! @_spi(RawSyntax) public struct RawKeyPathComponentListSyntax: RawSyntaxNodeProtocol { diff --git a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesOP.swift b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesOP.swift index 1c9b98ff39c..92769c67809 100644 --- a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesOP.swift +++ b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesOP.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! @_spi(RawSyntax) public protocol RawPatternSyntaxNodeProtocol: RawSyntaxNodeProtocol {} diff --git a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesQRS.swift b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesQRS.swift index fec5610c123..a470f1fcd20 100644 --- a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesQRS.swift +++ b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesQRS.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! @_spi(RawSyntax) public protocol RawStmtSyntaxNodeProtocol: RawSyntaxNodeProtocol {} diff --git a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesTUVWXYZ.swift b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesTUVWXYZ.swift index 39f3bde6d01..7b4cd43f3d1 100644 --- a/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesTUVWXYZ.swift +++ b/Sources/SwiftSyntax/generated/raw/RawSyntaxNodesTUVWXYZ.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! @_spi(RawSyntax) public protocol RawTypeSyntaxNodeProtocol: RawSyntaxNodeProtocol {} diff --git a/Sources/SwiftSyntax/generated/raw/RawSyntaxValidation.swift b/Sources/SwiftSyntax/generated/raw/RawSyntaxValidation.swift index 885d3839979..29fa79504f0 100644 --- a/Sources/SwiftSyntax/generated/raw/RawSyntaxValidation.swift +++ b/Sources/SwiftSyntax/generated/raw/RawSyntaxValidation.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! /// Check that the `layout` is valid for the given 'SyntaxKind'. /// diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesAB.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesAB.swift index 5d2eccd0e58..9eb5c55c70d 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesAB.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesAB.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // MARK: - ABIAttributeArgumentsSyntax diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesC.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesC.swift index 5e3d1201b2f..2b2ff47ac3b 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesC.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesC.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // MARK: - _CanImportExprSyntax diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesD.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesD.swift index de11563f88c..3489e4b7b02 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesD.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesD.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // MARK: - DeclModifierDetailSyntax diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesEF.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesEF.swift index e098442d675..16ba2c3789c 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesEF.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesEF.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // MARK: - EditorPlaceholderDeclSyntax diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesGHI.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesGHI.swift index 321adc489d2..a5ea4e5b12d 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesGHI.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesGHI.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // MARK: - GenericArgumentClauseSyntax diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesJKLMN.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesJKLMN.swift index 3c49ca82268..882d54cd112 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesJKLMN.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesJKLMN.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // MARK: - KeyPathComponentSyntax diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesOP.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesOP.swift index dd6ee8f30e2..7a05bae1bb1 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesOP.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesOP.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // MARK: - ObjCSelectorPieceSyntax diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesQRS.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesQRS.swift index 39f92c444ca..45a63b99074 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesQRS.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesQRS.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // MARK: - RegexLiteralExprSyntax diff --git a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesTUVWXYZ.swift b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesTUVWXYZ.swift index 22a1546cb57..d0a1ee418c8 100644 --- a/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesTUVWXYZ.swift +++ b/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesTUVWXYZ.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! // MARK: - TernaryExprSyntax diff --git a/Sources/SwiftSyntaxBuilder/generated/BuildableNodes.swift b/Sources/SwiftSyntaxBuilder/generated/BuildableNodes.swift index fbb65d34701..dac72f24a88 100644 --- a/Sources/SwiftSyntaxBuilder/generated/BuildableNodes.swift +++ b/Sources/SwiftSyntaxBuilder/generated/BuildableNodes.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! #if compiler(>=6) @_spi(RawSyntax) @_spi(ExperimentalLanguageFeatures) @_spi(Compiler) public import SwiftSyntax diff --git a/Sources/SwiftSyntaxBuilder/generated/RenamedChildrenBuilderCompatibility.swift b/Sources/SwiftSyntaxBuilder/generated/RenamedChildrenBuilderCompatibility.swift index 323ec1564b3..315c88c4396 100644 --- a/Sources/SwiftSyntaxBuilder/generated/RenamedChildrenBuilderCompatibility.swift +++ b/Sources/SwiftSyntaxBuilder/generated/RenamedChildrenBuilderCompatibility.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! #if compiler(>=6) @_spi(RawSyntax) @_spi(ExperimentalLanguageFeatures) @_spi(Compiler) public import SwiftSyntax diff --git a/Sources/SwiftSyntaxBuilder/generated/ResultBuilders.swift b/Sources/SwiftSyntaxBuilder/generated/ResultBuilders.swift index dc93691c823..b25f3fe36e5 100644 --- a/Sources/SwiftSyntaxBuilder/generated/ResultBuilders.swift +++ b/Sources/SwiftSyntaxBuilder/generated/ResultBuilders.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! #if compiler(>=6) @_spi(RawSyntax) @_spi(ExperimentalLanguageFeatures) @_spi(Compiler) public import SwiftSyntax diff --git a/Sources/SwiftSyntaxBuilder/generated/SyntaxExpressibleByStringInterpolationConformances.swift b/Sources/SwiftSyntaxBuilder/generated/SyntaxExpressibleByStringInterpolationConformances.swift index 20194a34e65..a4df90cbb35 100644 --- a/Sources/SwiftSyntaxBuilder/generated/SyntaxExpressibleByStringInterpolationConformances.swift +++ b/Sources/SwiftSyntaxBuilder/generated/SyntaxExpressibleByStringInterpolationConformances.swift @@ -1,5 +1,3 @@ -//// Automatically generated by generate-swift-syntax -//// Do not edit directly! //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project @@ -11,6 +9,8 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +//// Automatically generated by generate-swift-syntax +//// Do not edit directly! #if compiler(>=6) @_spi(RawSyntax) @_spi(ExperimentalLanguageFeatures) @_spi(Compiler) internal import SwiftSyntax diff --git a/Sources/SwiftSyntaxMacros/MacroProtocols/AccessorMacro.swift b/Sources/SwiftSyntaxMacros/MacroProtocols/AccessorMacro.swift index c55efd830bf..136b1075b24 100644 --- a/Sources/SwiftSyntaxMacros/MacroProtocols/AccessorMacro.swift +++ b/Sources/SwiftSyntaxMacros/MacroProtocols/AccessorMacro.swift @@ -1,5 +1,7 @@ //===----------------------------------------------------------------------===// // +// This source file is part of the Swift.org open source project +// // Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // diff --git a/Sources/SwiftSyntaxMacros/MacroProtocols/AttachedMacro.swift b/Sources/SwiftSyntaxMacros/MacroProtocols/AttachedMacro.swift index 89c740eaf4f..98c5db13fb3 100644 --- a/Sources/SwiftSyntaxMacros/MacroProtocols/AttachedMacro.swift +++ b/Sources/SwiftSyntaxMacros/MacroProtocols/AttachedMacro.swift @@ -1,5 +1,7 @@ //===----------------------------------------------------------------------===// // +// This source file is part of the Swift.org open source project +// // Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // diff --git a/Sources/SwiftSyntaxMacros/MacroProtocols/BodyMacro.swift b/Sources/SwiftSyntaxMacros/MacroProtocols/BodyMacro.swift index 36fa0a8a84b..347d8be1ca4 100644 --- a/Sources/SwiftSyntaxMacros/MacroProtocols/BodyMacro.swift +++ b/Sources/SwiftSyntaxMacros/MacroProtocols/BodyMacro.swift @@ -1,5 +1,7 @@ //===----------------------------------------------------------------------===// // +// This source file is part of the Swift.org open source project +// // Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // diff --git a/Sources/SwiftSyntaxMacros/MacroProtocols/CodeItemMacro.swift b/Sources/SwiftSyntaxMacros/MacroProtocols/CodeItemMacro.swift index 1d721a28bb8..878b80e61e6 100644 --- a/Sources/SwiftSyntaxMacros/MacroProtocols/CodeItemMacro.swift +++ b/Sources/SwiftSyntaxMacros/MacroProtocols/CodeItemMacro.swift @@ -1,5 +1,7 @@ //===----------------------------------------------------------------------===// // +// This source file is part of the Swift.org open source project +// // Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // diff --git a/Sources/SwiftSyntaxMacros/MacroProtocols/DeclarationMacro.swift b/Sources/SwiftSyntaxMacros/MacroProtocols/DeclarationMacro.swift index 600be72596a..1c31deedce8 100644 --- a/Sources/SwiftSyntaxMacros/MacroProtocols/DeclarationMacro.swift +++ b/Sources/SwiftSyntaxMacros/MacroProtocols/DeclarationMacro.swift @@ -1,5 +1,7 @@ //===----------------------------------------------------------------------===// // +// This source file is part of the Swift.org open source project +// // Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // diff --git a/Sources/SwiftSyntaxMacros/MacroProtocols/FreestandingMacro.swift b/Sources/SwiftSyntaxMacros/MacroProtocols/FreestandingMacro.swift index 0a1d30e6677..1c58616e8d8 100644 --- a/Sources/SwiftSyntaxMacros/MacroProtocols/FreestandingMacro.swift +++ b/Sources/SwiftSyntaxMacros/MacroProtocols/FreestandingMacro.swift @@ -1,6 +1,8 @@ //===----------------------------------------------------------------------===// // -// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2024 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 diff --git a/Sources/SwiftSyntaxMacros/MacroProtocols/PeerMacro.swift b/Sources/SwiftSyntaxMacros/MacroProtocols/PeerMacro.swift index b141aad14f7..6cd8f798f9c 100644 --- a/Sources/SwiftSyntaxMacros/MacroProtocols/PeerMacro.swift +++ b/Sources/SwiftSyntaxMacros/MacroProtocols/PeerMacro.swift @@ -1,5 +1,7 @@ //===----------------------------------------------------------------------===// // +// This source file is part of the Swift.org open source project +// // Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // diff --git a/Sources/SwiftSyntaxMacros/MacroProtocols/PreambleMacro.swift b/Sources/SwiftSyntaxMacros/MacroProtocols/PreambleMacro.swift index 32c669d6a10..c8165137956 100644 --- a/Sources/SwiftSyntaxMacros/MacroProtocols/PreambleMacro.swift +++ b/Sources/SwiftSyntaxMacros/MacroProtocols/PreambleMacro.swift @@ -1,5 +1,7 @@ //===----------------------------------------------------------------------===// // +// This source file is part of the Swift.org open source project +// // Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // diff --git a/Sources/VersionMarkerModules/SwiftSyntax509/Empty.swift b/Sources/VersionMarkerModules/SwiftSyntax509/Empty.swift index 0798e028cb5..a88215cc57f 100644 --- a/Sources/VersionMarkerModules/SwiftSyntax509/Empty.swift +++ b/Sources/VersionMarkerModules/SwiftSyntax509/Empty.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// 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 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 SwiftSyntax509 module is intentionally empty. // It serves as an indicator which version of swift-syntax a package is building against. // See the 'Macro Versioning.md' document for more details. diff --git a/Sources/VersionMarkerModules/SwiftSyntax510/Empty.swift b/Sources/VersionMarkerModules/SwiftSyntax510/Empty.swift index 7008f58470d..77a8628a3a8 100644 --- a/Sources/VersionMarkerModules/SwiftSyntax510/Empty.swift +++ b/Sources/VersionMarkerModules/SwiftSyntax510/Empty.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// 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 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 SwiftSyntax510 module is intentionally empty. // It serves as an indicator which version of swift-syntax a package is building against. // See the 'Macro Versioning.md' document for more details. diff --git a/Sources/VersionMarkerModules/SwiftSyntax600/Empty.swift b/Sources/VersionMarkerModules/SwiftSyntax600/Empty.swift index 47cd22ab51c..06eae434f8c 100644 --- a/Sources/VersionMarkerModules/SwiftSyntax600/Empty.swift +++ b/Sources/VersionMarkerModules/SwiftSyntax600/Empty.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// 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 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 SwiftSyntax600 module is intentionally empty. // It serves as an indicator which version of swift-syntax a package is building against. // See the 'Macro Versioning.md' document for more details. diff --git a/Sources/VersionMarkerModules/SwiftSyntax601/Empty.swift b/Sources/VersionMarkerModules/SwiftSyntax601/Empty.swift index 0484a0f8f3c..9f93369e93a 100644 --- a/Sources/VersionMarkerModules/SwiftSyntax601/Empty.swift +++ b/Sources/VersionMarkerModules/SwiftSyntax601/Empty.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// 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 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 SwiftSyntax601 module is intentionally empty. // It serves as an indicator which version of swift-syntax a package is building against. // See the 'Macro Versioning.md' document for more details. diff --git a/Sources/_SwiftLibraryPluginProviderCShims/LoadLibrary.c b/Sources/_SwiftLibraryPluginProviderCShims/LoadLibrary.c index 05dfdfe5cac..55c0e29c461 100644 --- a/Sources/_SwiftLibraryPluginProviderCShims/LoadLibrary.c +++ b/Sources/_SwiftLibraryPluginProviderCShims/LoadLibrary.c @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2024 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/Sources/_SwiftLibraryPluginProviderCShims/include/LoadLibrary.h b/Sources/_SwiftLibraryPluginProviderCShims/include/LoadLibrary.h index dbc2e961b79..c80ec25f01b 100644 --- a/Sources/_SwiftLibraryPluginProviderCShims/include/LoadLibrary.h +++ b/Sources/_SwiftLibraryPluginProviderCShims/include/LoadLibrary.h @@ -1,12 +1,12 @@ //===----------------------------------------------------------------------===// // -// 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) 2024 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/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 // //===----------------------------------------------------------------------===// diff --git a/cmake/modules/AddSwiftHostLibrary.cmake b/cmake/modules/AddSwiftHostLibrary.cmake index 25d6c49799f..de65eabb184 100644 --- a/cmake/modules/AddSwiftHostLibrary.cmake +++ b/cmake/modules/AddSwiftHostLibrary.cmake @@ -1,10 +1,14 @@ -# This source file is part of the Swift.org open source project -# -# Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors -# Licensed under Apache License v2.0 with Runtime Library Exception -# -# See http://swift.org/LICENSE.txt for license information -# See http://swift.org/CONTRIBUTORS.txt for Swift project authors +##===----------------------------------------------------------------------===## +## +## This source file is part of the Swift.org open source project +## +## Copyright (c) 2014 - 2023 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 +## +##===----------------------------------------------------------------------===## function(target_link_swift_syntax_libraries TARGET) cmake_parse_arguments(ARGS "PUBLIC;PRIVATE;INTERFACE" "" "" ${ARGN}) diff --git a/cmake/modules/SwiftCompilerCapability.cmake b/cmake/modules/SwiftCompilerCapability.cmake index d62e387184f..7a00b319aae 100644 --- a/cmake/modules/SwiftCompilerCapability.cmake +++ b/cmake/modules/SwiftCompilerCapability.cmake @@ -1,3 +1,14 @@ +##===----------------------------------------------------------------------===## +## +## 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 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 +## +##===----------------------------------------------------------------------===## # Test if the Swift compiler returns success for supplied compiler arguments.... function(swift_supports_compiler_arguments out_var) diff --git a/utils/bazel/BUILD.bazel b/utils/bazel/BUILD.bazel index e69de29bb2d..9f08804f57d 100644 --- a/utils/bazel/BUILD.bazel +++ b/utils/bazel/BUILD.bazel @@ -0,0 +1,11 @@ +##===----------------------------------------------------------------------===## +## +## 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 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 +## +##===----------------------------------------------------------------------===## diff --git a/utils/bazel/opt_wrapper.bzl b/utils/bazel/opt_wrapper.bzl index b100390ef1e..63d48df1177 100644 --- a/utils/bazel/opt_wrapper.bzl +++ b/utils/bazel/opt_wrapper.bzl @@ -1,3 +1,15 @@ +##===----------------------------------------------------------------------===## +## +## 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 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 rule for forcing all dependent targets to be built in the opt configuration diff --git a/utils/bazel/swift_syntax_library.bzl b/utils/bazel/swift_syntax_library.bzl index db53a486171..032c610fa39 100644 --- a/utils/bazel/swift_syntax_library.bzl +++ b/utils/bazel/swift_syntax_library.bzl @@ -1,3 +1,15 @@ +##===----------------------------------------------------------------------===## +## +## 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 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 +## +##===----------------------------------------------------------------------===## + """Convenience wrapper for swift_library targets using this repo's conventions""" load("@build_bazel_rules_apple//apple:ios.bzl", "ios_unit_test")