Skip to content

Commit 476788c

Browse files
committed
Add generated file note to Options.swift
Updating makeOptions to include note that options.swift is generated so it should not be edited by hand.
1 parent 679b324 commit 476788c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/makeOptions/makeOptions.cpp

Lines changed: 7 additions & 0 deletions
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)