Skip to content

Commit a234bef

Browse files
authored
Merge pull request #1330 from etcwilde/ewilde/generated-file-note
Add generated file note to Options.swift
2 parents 302ab58 + 9cbe4d9 commit a234bef

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Sources/SwiftOptions/Options.swift

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010
//
1111
//===----------------------------------------------------------------------===//
12+
//
13+
// NOTE: Generated file, do not edit!
14+
//
15+
// This file is generated from 'apple/swift:include/swift/Option/Options.td'.
16+
// Please see README.md#rebuilding-optionsswift for details
17+
//
18+
//===----------------------------------------------------------------------===//
1219

1320
extension Option {
1421
public static let INPUT: Option = Option("<input>", .input, attributes: [.argumentIsPath])

Sources/makeOptions/makeOptions.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,13 @@ int makeOptions_main() {
232232
"// See https://swift.org/LICENSE.txt for license information\n"
233233
"// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors\n"
234234
"//\n"
235+
"//===----------------------------------------------------------------------===//\n"
236+
"//\n"
237+
"// NOTE: Generated file, do not edit!\n"
238+
"//\n"
239+
"// This file is generated from 'apple/swift:include/swift/Option/Options.td'.\n"
240+
"// Please see README.md#rebuilding-optionsswift for details\n"
241+
"//\n"
235242
"//===----------------------------------------------------------------------===//\n\n";
236243
out << "extension Option {\n";
237244
forEachOption([&](const RawOption &option) {

0 commit comments

Comments
 (0)