From 476788ccdcd8a0a149a819af75ad04e73482e781 Mon Sep 17 00:00:00 2001 From: Evan Wilde Date: Wed, 12 Apr 2023 11:34:47 -0700 Subject: [PATCH 1/2] 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. --- Sources/makeOptions/makeOptions.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/makeOptions/makeOptions.cpp b/Sources/makeOptions/makeOptions.cpp index a4ab3d4b5..3f8fafcef 100644 --- a/Sources/makeOptions/makeOptions.cpp +++ b/Sources/makeOptions/makeOptions.cpp @@ -232,6 +232,13 @@ int makeOptions_main() { "// 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" + "// NOTE: Generated file, do not edit!\n" + "//\n" + "// This file is generated from 'apple/swift:include/swift/Option/Options.td'.\n" + "// Please see README.md#rebuilding-optionsswift for details\n" + "//\n" "//===----------------------------------------------------------------------===//\n\n"; out << "extension Option {\n"; forEachOption([&](const RawOption &option) { From 9cbe4d90abb61ae18d1b53a9fff591061a1a8969 Mon Sep 17 00:00:00 2001 From: Evan Wilde Date: Wed, 12 Apr 2023 14:28:09 -0700 Subject: [PATCH 2/2] Update Option.swift header Updating the Option.swift header with the new generated comment --- Sources/SwiftOptions/Options.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/SwiftOptions/Options.swift b/Sources/SwiftOptions/Options.swift index 9ef16a15a..387c46fe5 100644 --- a/Sources/SwiftOptions/Options.swift +++ b/Sources/SwiftOptions/Options.swift @@ -9,6 +9,13 @@ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// +// +// NOTE: Generated file, do not edit! +// +// This file is generated from 'apple/swift:include/swift/Option/Options.td'. +// Please see README.md#rebuilding-optionsswift for details +// +//===----------------------------------------------------------------------===// extension Option { public static let INPUT: Option = Option("", .input, attributes: [.argumentIsPath])