Skip to content

Commit cf828a8

Browse files
committed
Consistently add license headers to all files
To prepare for the GitHub Action license header check.
1 parent a3c9cfd commit cf828a8

File tree

15 files changed

+131
-36
lines changed

15 files changed

+131
-36
lines changed

.devcontainer/default/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift.org open source project
4+
##
5+
## Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
6+
## Licensed under Apache License v2.0 with Runtime Library Exception
7+
##
8+
## See https://swift.org/LICENSE.txt for license information
9+
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
##
11+
##===----------------------------------------------------------------------===##
12+
113
FROM swiftlang/swift:nightly-main-jammy
214

315
RUN \

.license_header_template

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@@===----------------------------------------------------------------------===@@
2+
@@
3+
@@ This source file is part of the Swift.org open source project
4+
@@
5+
@@ Copyright (c) YEARS Apple Inc. and the Swift project authors
6+
@@ Licensed under Apache License v2.0 with Runtime Library Exception
7+
@@
8+
@@ See https://swift.org/LICENSE.txt for license information
9+
@@ See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
@@
11+
@@===----------------------------------------------------------------------===@@

.licenseignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*Package.swift
2+
Utilities/ubsan_supressions.supp
3+
sourcekit-lsp-dev-utils

Sources/CAtomics/CAtomics.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
112

Sources/Csourcekitd/sourcekitd.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
113
// This file is here to prevent the package manager from warning about a target with no sources.

Sources/SKTestSupport/INPUTS/AbstractBuildServer.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
#!/usr/bin/env python3
2+
##===----------------------------------------------------------------------===##
3+
##
4+
## This source file is part of the Swift.org open source project
5+
##
6+
## Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
7+
## Licensed under Apache License v2.0 with Runtime Library Exception
8+
##
9+
## See https://swift.org/LICENSE.txt for license information
10+
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11+
##
12+
##===----------------------------------------------------------------------===##
13+
114
import json
215
import sys
316
from typing import Dict, List, Optional

Sources/SourceKitD/sourcekitd_uids.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//// Automatically Generated From UIDs.swift.gyb.
2-
//// Do Not Edit Directly! To regenerate run Utilities/generate-uids.py
31
//===----------------------------------------------------------------------===//
42
//
53
// This source file is part of the Swift.org open source project
@@ -11,6 +9,8 @@
119
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1210
//
1311
//===----------------------------------------------------------------------===//
12+
// Automatically Generated From UIDs.swift.gyb.
13+
// Do Not Edit Directly! To regenerate run Utilities/generate-uids.py
1414

1515
#if compiler(>=6)
1616
package import Csourcekitd

Sources/SourceKitD/sourcekitd_uids.swift.gyb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
%{
2-
from gyb_sourcekit_support.UIDs import UID_KEYS, UID_REQUESTS, UID_KINDS, KEY, REQUEST, KIND
3-
# Ignore the following admonition it applies to the resulting .swift file only
4-
}%
5-
//// Automatically Generated From UIDs.swift.gyb.
6-
//// Do Not Edit Directly! To regenerate run Utilities/generate-uids.py
71
//===----------------------------------------------------------------------===//
82
//
93
// This source file is part of the Swift.org open source project
@@ -15,6 +9,13 @@
159
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1610
//
1711
//===----------------------------------------------------------------------===//
12+
// Automatically Generated From UIDs.swift.gyb.
13+
// Do Not Edit Directly! To regenerate run Utilities/generate-uids.py
14+
15+
%{
16+
from gyb_sourcekit_support.UIDs import UID_KEYS, UID_REQUESTS, UID_KINDS, KEY, REQUEST, KIND
17+
# Ignore the following admonition it applies to the resulting .swift file only
18+
}%
1819
%{
1920
def variable_name(name):
2021
if name == 'Operator':

Tests/CompletionScoringPerfTests/CandidateBatchPerfTests.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
//===----------------------------------------------------------------------===//
12
//
2-
// CandidateBatchPerfTests.swift
3-
// CompletionScoringPerfTests
3+
// This source file is part of the Swift.org open source project
44
//
5-
// Created by Alex Hoppen on 21.2.22.
5+
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
67
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
712

813
import CompletionScoring
914
import CompletionScoringTestSupport

Tests/CompletionScoringPerfTests/ScoringPerfTests.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
//===----------------------------------------------------------------------===//
12
//
2-
// ScoringPerfTests.swift
3-
// CompletionScoringPerfTests
3+
// This source file is part of the Swift.org open source project
44
//
5-
// Created by Ben Langmuir on 1/25/21.
5+
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
67
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
712

813
import CompletionScoring
914
import CompletionScoringTestSupport

Utilities/build-script-helper.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
#!/usr/bin/env python3
2+
##===----------------------------------------------------------------------===##
3+
##
4+
## This source file is part of the Swift.org open source project
5+
##
6+
## Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
7+
## Licensed under Apache License v2.0 with Runtime Library Exception
8+
##
9+
## See https://swift.org/LICENSE.txt for license information
10+
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11+
##
12+
##===----------------------------------------------------------------------===##
213

314
import argparse
415
import json

Utilities/generate-uids.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
#!/usr/bin/env python3
2+
##===----------------------------------------------------------------------===##
3+
##
4+
## This source file is part of the Swift.org open source project
5+
##
6+
## Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
7+
## Licensed under Apache License v2.0 with Runtime Library Exception
8+
##
9+
## See https://swift.org/LICENSE.txt for license information
10+
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11+
##
12+
##===----------------------------------------------------------------------===##
213

314
import argparse
415
from pathlib import Path

Utilities/swiftpm.sublime-build

Lines changed: 0 additions & 22 deletions
This file was deleted.

cmake/modules/SwiftSupport.cmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift.org open source project
4+
##
5+
## Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
6+
## Licensed under Apache License v2.0 with Runtime Library Exception
7+
##
8+
## See https://swift.org/LICENSE.txt for license information
9+
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
##
11+
##===----------------------------------------------------------------------===##
112

213
# Returns the current architecture name in a variable
314
#

0 commit comments

Comments
 (0)