Skip to content

Commit 46e3779

Browse files
authored
Merge pull request #31 from rxwei/copyright-headers
NFC: Add missing copyright headers.
2 parents 92e6773 + 008d53b commit 46e3779

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

Sources/SwiftDriver/Options/Options.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
//===--------------- Options.swift - Swift Driver Options -----------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2019 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
extension Option {
314
public static let INPUT: Option = Option("<input>", .input, attributes: [.argumentIsPath])

Sources/SwiftDriver/Utilities/PrefixTrie.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
//==------------------ PrefixTrie.swift - Prefix Trie ---------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2019 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
/// A prefix trie is a data structure for quickly matching prefixes of strings.
214
/// It's a tree structure where each node in the tree corresponds to another
315
/// element in the prefix of whatever you're looking for.

Sources/makeOptions/makeOptions.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,19 @@ int makeOptions_main() {
214214

215215
// Add static properties to Option for each of the options.
216216
auto &out = std::cout;
217-
out << "\n";
217+
218+
out <<
219+
"//===--------------- Options.swift - Swift Driver Options -----------------===//\n"
220+
"//\n"
221+
"// This source file is part of the Swift.org open source project\n"
222+
"//\n"
223+
"// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors\n"
224+
"// Licensed under Apache License v2.0 with Runtime Library Exception\n"
225+
"//\n"
226+
"// See https://swift.org/LICENSE.txt for license information\n"
227+
"// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors\n"
228+
"//\n"
229+
"//===----------------------------------------------------------------------===//\n\n";
218230
out << "extension Option {\n";
219231
forEachOption([&](const RawOption &option) {
220232
// Look through each spelling of the option.

0 commit comments

Comments
 (0)