Skip to content

Commit 008d53b

Browse files
committed
Modify makeOptions.cpp to generate a license header.
1 parent 3bdc6f7 commit 008d53b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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)