Skip to content

NFC: Add missing copyright headers. #31

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
Nov 5, 2019
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
11 changes: 11 additions & 0 deletions Sources/SwiftDriver/Options/Options.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//===--------------- Options.swift - Swift Driver Options -----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//

extension Option {
public static let INPUT: Option = Option("<input>", .input, attributes: [.argumentIsPath])
Expand Down
12 changes: 12 additions & 0 deletions Sources/SwiftDriver/Utilities/PrefixTrie.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
//==------------------ PrefixTrie.swift - Prefix Trie ---------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//

/// A prefix trie is a data structure for quickly matching prefixes of strings.
/// It's a tree structure where each node in the tree corresponds to another
/// element in the prefix of whatever you're looking for.
Expand Down
14 changes: 13 additions & 1 deletion Sources/makeOptions/makeOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,19 @@ int makeOptions_main() {

// Add static properties to Option for each of the options.
auto &out = std::cout;
out << "\n";

out <<
"//===--------------- Options.swift - Swift Driver Options -----------------===//\n"
"//\n"
"// This source file is part of the Swift.org open source project\n"
"//\n"
"// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors\n"
"// Licensed under Apache License v2.0 with Runtime Library Exception\n"
"//\n"
"// See https://swift.org/LICENSE.txt for license information\n"
"// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors\n"
"//\n"
"//===----------------------------------------------------------------------===//\n\n";
out << "extension Option {\n";
forEachOption([&](const RawOption &option) {
// Look through each spelling of the option.
Expand Down