Skip to content

Add copyright headers to all files #1002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Sources/SwiftBasicFormat/Trivia+Indented.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2022 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

extension Trivia {
Expand Down
12 changes: 12 additions & 0 deletions Sources/SwiftBasicFormat/Utils.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2022 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

extension SyntaxProtocol {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftCompilerSupport/ConsistencyCheck.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-------------------------- ConsistencyCheck.swift --------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftDiagnostics/Diagnostic.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- Diagnostics.swift ------------------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftDiagnostics/DiagnosticsFormatter.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------ DiagnosticsFormatter.swift - Formatter for diagnostics ----------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftDiagnostics/FixIt.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- FixIt.swift ------------------------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftDiagnostics/Message.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- Message.swift ----------------------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftDiagnostics/Note.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- Note.swift -------------------------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftOperators/Operator.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------ Operator.swift ------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftOperators/OperatorError+Diagnostics.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------ OperatorError.swift ---------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftOperators/OperatorError.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------ OperatorError.swift ---------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftOperators/OperatorTable+Defaults.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------ OperatorPrecedence+Defaults.swift -----------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftOperators/OperatorTable+Folding.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------ OperatorPrecedence+Folding.swift ------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftOperators/OperatorTable+Semantics.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-------------- OperatorPrecedence+Semantics.swift --------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftOperators/OperatorTable.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------ OperatorPrecedence.swift --------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
11 changes: 8 additions & 3 deletions Sources/SwiftOperators/PrecedenceGraph.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
//===----------------------------------------------------------------------===//
//
// File.swift
//
// This source file is part of the Swift.org open source project
//
// Created by Doug Gregor on 8/18/22.
// Copyright (c) 2014 - 2022 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

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftOperators/PrecedenceGroup.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------ PrecedenceGroup.swift -----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftOperators/SyntaxSynthesis.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------ SyntaxSynthesis.swift -----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Attributes.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------------ Attributes.swift ----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Availability.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------------ Availability.swift ----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/CharacterInfo.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------- CharacterInfo.swift --------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Declarations.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------- Declarations.swift ---------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- DiagnosticExtensions.swift ---------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Diagnostics/MissingNodesError.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- MissingNodesError.swift ------------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- ParseDiagnosticsGenerator.swift ----------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- ParserDiagnosticKinds.swift --------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Diagnostics/PresenceUtils.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- PresenceUtils.swift ----------------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Diagnostics/SyntaxExtensions.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- SyntaxExtensions.swift -------------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Diagnostics/Utils.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- Utils.swift ------------------------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Directives.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------------ Directives.swift ----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Expressions.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------- Expressions.swift ----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Lexer.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-------------------------- Lexer.swift -------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Lookahead.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------------ Lookahead.swift -----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/LoopProgressCondition.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===---------------------- TokenConsumer.swift ---------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Modifiers.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------------ Modifiers.swift -----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Names.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-------------------------- Names.swift -------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Parser.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-------------------------- Parser.swift ------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Patterns.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------------- Patterns.swift -----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/RawTokenKindSubset.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- RawTokenKindSubset.swift -----------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Recovery.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------------- Recovery.swift -----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Statements.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------------ Statements.swift ----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/SyntaxUtils.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- SyntaxUtils.swift ------------------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/TokenConsumer.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===---------------------- TokenConsumer.swift ---------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/TokenPrecedence.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- TokenPrecedence.swift --------------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/TopLevel.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------------- TopLevel.swift -----------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/TriviaParser.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===----------------------- TriviaParser.swift ---------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Types.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-------------------------- Types.swift -------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/AbsolutePosition.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--------------- AbsolutePosition.swift - Source Positions ------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/BumpPtrAllocator.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===---------- BumpPtrAllocator.swift - Bump-pointer Allocaiton ----------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/CommonAncestor.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- CommonAncestor.swift ---------------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/IncrementalParseTransition.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------ IncrementalParseTransition.swift - Parse Transition State -----===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/PlatformMutex.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------ PlatformMutex.swift - Platform-specific Mutual Exclusion -----===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/Raw/RawSyntax.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------ RawSyntax.swift - Raw Syntax nodes ----------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/Raw/RawSyntaxLayoutView.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- RawSyntaxLayoutView.swift ----------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/Raw/RawSyntaxNodeProtocol.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------- RawSyntaxNodeProtocol.swift - Typed Raw Syntax Protocol ------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/Raw/RawSyntaxTokenView.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- RawSyntaxTokenView.swift -----------------------------------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/SourceLength.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===------------------ SourceLength.swift - Source Length ----------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/SourceLocation.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--------------- SourceLocation.swift - Source Locations --------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/SourcePresence.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===---------------- SourcePresence.swift - Source Presence --------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/Syntax.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--------------- Syntax.swift - Base Syntax Type eraser --------------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/SyntaxArena.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-------- SyntaxArena.swift - RawSyntaxData Memory Management --------===//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
Loading