@@ -66,9 +66,6 @@ def ModuleInterfaceOptionIgnorablePrivate : OptionFlag;
6666// for a supplementary output. E.g., `-emit-module` and `-emit-module-path`.
6767def SupplementaryOutput : OptionFlag;
6868
69- // The option should be accepted by swift-api-extract.
70- def SwiftAPIExtractOption : OptionFlag;
71-
7269// The option should be accepted by swift-symbolgraph-extract.
7370def SwiftSymbolGraphExtractOption : OptionFlag;
7471
@@ -227,7 +224,7 @@ def driver_mode : Joined<["--"], "driver-mode=">, Flags<[HelpHidden]>,
227224
228225def help : Flag<["-", "--"], "help">,
229226 Flags<[FrontendOption, AutolinkExtractOption, ModuleWrapOption,
230- SwiftIndentOption, SwiftAPIExtractOption,
227+ SwiftIndentOption,
231228 SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
232229 HelpText<"Display available options">;
233230def h : Flag<["-"], "h">, Alias<help>;
@@ -248,19 +245,19 @@ def parseable_output : Flag<["-"], "parseable-output">,
248245// Windows Options
249246
250247def windows_sdk_root : Separate<["-"], "windows-sdk-root">,
251- Flags<[ArgumentIsPath, FrontendOption, SwiftAPIExtractOption,
248+ Flags<[ArgumentIsPath, FrontendOption,
252249 SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
253250 HelpText<"Windows SDK Root">, MetaVarName<"<root>">;
254251def windows_sdk_version : Separate<["-"], "windows-sdk-version">,
255- Flags<[FrontendOption, SwiftAPIExtractOption,
252+ Flags<[FrontendOption,
256253 SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
257254 HelpText<"Windows SDK Version">, MetaVarName<"<version>">;
258255def visualc_tools_root : Separate<["-"], "visualc-tools-root">,
259- Flags<[ArgumentIsPath, FrontendOption, SwiftAPIExtractOption,
256+ Flags<[ArgumentIsPath, FrontendOption,
260257 SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
261258 HelpText<"VisualC++ Tools Root">, MetaVarName<"<root>">;
262259def visualc_tools_version : Separate<["-"], "visualc-tools-version">,
263- Flags<[FrontendOption, SwiftAPIExtractOption,
260+ Flags<[FrontendOption,
264261 SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
265262 HelpText<"VisualC++ ToolSet Version">, MetaVarName<"<version>">;
266263
@@ -271,19 +268,19 @@ def _DASH_DASH : Option<["--"], "", KIND_REMAINING_ARGS>,
271268def o : JoinedOrSeparate<["-"], "o">,
272269 Flags<[FrontendOption, AutolinkExtractOption, ModuleWrapOption,
273270 NoInteractiveOption, SwiftIndentOption, ArgumentIsPath,
274- SwiftAPIExtractOption, SwiftAPIDigesterOption, CacheInvariant]>,
271+ SwiftAPIDigesterOption, CacheInvariant]>,
275272 HelpText<"Write output to <file>">, MetaVarName<"<file>">;
276273
277274def j : JoinedOrSeparate<["-"], "j">, Flags<[DoesNotAffectIncrementalBuild]>,
278275 HelpText<"Number of commands to execute in parallel">, MetaVarName<"<n>">;
279276
280277def sdk : Separate<["-"], "sdk">,
281- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption,
278+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption,
282279 SwiftAPIDigesterOption]>,
283280 HelpText<"Compile against <sdk>">, MetaVarName<"<sdk>">;
284281
285282def swift_version : Separate<["-"], "swift-version">,
286- Flags<[FrontendOption, ModuleInterfaceOption, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption,
283+ Flags<[FrontendOption, ModuleInterfaceOption, SwiftSymbolGraphExtractOption,
287284 SwiftAPIDigesterOption]>,
288285 HelpText<"Interpret input according to a specific Swift language version number">,
289286 MetaVarName<"<vers>">;
@@ -305,17 +302,17 @@ def e : Separate<["-"], "e">, Flags<[NewDriverOnlyOption]>,
305302 HelpText<"Executes a line of code provided on the command line">;
306303
307304def F : JoinedOrSeparate<["-"], "F">,
308- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
305+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
309306 HelpText<"Add directory to framework search path">;
310307def F_EQ : Joined<["-"], "F=">, Flags<[FrontendOption, ArgumentIsPath]>,
311308 Alias<F>;
312309
313310def Fsystem : Separate<["-"], "Fsystem">,
314- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption]>,
311+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption]>,
315312 HelpText<"Add directory to system framework search path">;
316313
317314def I : JoinedOrSeparate<["-"], "I">,
318- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
315+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
319316 HelpText<"Add directory to the import search path">;
320317def I_EQ : Joined<["-"], "I=">, Flags<[FrontendOption, ArgumentIsPath]>,
321318 Alias<I>;
@@ -484,7 +481,7 @@ def localization_path : Separate<["-"], "localization-path">,
484481 MetaVarName<"<path>">;
485482
486483def module_cache_path : Separate<["-"], "module-cache-path">,
487- Flags<[FrontendOption, DoesNotAffectIncrementalBuild, ArgumentIsPath, SwiftAPIExtractOption,
484+ Flags<[FrontendOption, DoesNotAffectIncrementalBuild, ArgumentIsPath,
488485 SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
489486 HelpText<"Specifies the module cache path">;
490487
@@ -544,11 +541,11 @@ def library_level_EQ : Joined<["-"], "library-level=">,
544541 Alias<library_level>;
545542
546543def module_name : Separate<["-"], "module-name">,
547- Flags<[FrontendOption, ModuleInterfaceOption, SwiftAPIExtractOption,
544+ Flags<[FrontendOption, ModuleInterfaceOption,
548545 SwiftSymbolGraphExtractOption]>,
549546 HelpText<"Name of the module to build">;
550547def project_name : Separate<["-"], "project-name">,
551- Flags<[FrontendOption, ModuleInterfaceOptionIgnorable, SwiftAPIExtractOption,
548+ Flags<[FrontendOption, ModuleInterfaceOptionIgnorable,
552549 SwiftSymbolGraphExtractOption]>,
553550 HelpText<"Name of the project this module to build belongs to">;
554551
@@ -915,7 +912,7 @@ def enable_app_extension_library : Flag<["-"], "application-extension-library">,
915912 HelpText<"Restrict code to those available for App Extension Libraries">;
916913
917914def libc : Separate<["-"], "libc">,
918- Flags<[SwiftAPIExtractOption, SwiftSymbolGraphExtractOption]>,
915+ Flags<[SwiftSymbolGraphExtractOption]>,
919916 HelpText<"libc runtime library to use">;
920917
921918// Linker options
@@ -930,7 +927,7 @@ def framework : Separate<["-"], "framework">, Group<linker_option_Group>,
930927 HelpText<"Specifies a framework which should be linked against">;
931928
932929def L : JoinedOrSeparate<["-"], "L">, Group<linker_option_Group>,
933- Flags<[FrontendOption, DoesNotAffectIncrementalBuild, ArgumentIsPath, SwiftAPIExtractOption,
930+ Flags<[FrontendOption, DoesNotAffectIncrementalBuild, ArgumentIsPath,
934931 SwiftSymbolGraphExtractOption]>,
935932 HelpText<"Add directory to library link search path">;
936933def L_EQ : Joined<["-"], "L=">, Group<linker_option_Group>,
@@ -1347,7 +1344,7 @@ def resource_dir : Separate<["-"], "resource-dir">,
13471344 HelpText<"The directory that holds the compiler resource files">;
13481345
13491346def target : Separate<["-"], "target">,
1350- Flags<[FrontendOption, ModuleWrapOption, ModuleInterfaceOption, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption,
1347+ Flags<[FrontendOption, ModuleWrapOption, ModuleInterfaceOption, SwiftSymbolGraphExtractOption,
13511348 SwiftAPIDigesterOption]>,
13521349 HelpText<"Generate code for the given target <triple>, such as x86_64-apple-macos10.9">, MetaVarName<"<triple>">;
13531350def target_legacy_spelling : Joined<["--"], "target=">,
@@ -1365,7 +1362,7 @@ def target_variant : Separate<["-"], "target-variant">,
13651362 " variant target triple in addition to the main -target triple">;
13661363
13671364def clang_target : Separate<["-"], "clang-target">,
1368- Flags<[FrontendOption, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
1365+ Flags<[FrontendOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
13691366 HelpText<"Separately set the target we should use for internal Clang instance">;
13701367
13711368def disable_clang_target : Flag<["-"], "disable-clang-target">,
@@ -1520,7 +1517,7 @@ def allowable_client : Separate<["-"], "allowable-client">,
15201517// VFS
15211518
15221519def vfsoverlay : JoinedOrSeparate<["-"], "vfsoverlay">,
1523- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption ]>,
1520+ Flags<[FrontendOption, ArgumentIsPath]>,
15241521 HelpText<"Add directory to VFS overlay file">;
15251522def vfsoverlay_EQ : Joined<["-"], "vfsoverlay=">,
15261523 Alias<vfsoverlay>;
@@ -1568,7 +1565,7 @@ def symbol_graph_minimum_access_level: Separate<["-"], "symbol-graph-minimum-acc
15681565 MetaVarName<"<level>">;
15691566
15701567def pretty_print: Flag<["-"], "pretty-print">,
1571- Flags<[SwiftAPIExtractOption, SwiftSymbolGraphExtractOption]>,
1568+ Flags<[SwiftSymbolGraphExtractOption]>,
15721569 HelpText<"Pretty-print the output JSON">;
15731570
15741571def emit_extension_block_symbols: Flag<["-"], "emit-extension-block-symbols">,
@@ -1977,11 +1974,11 @@ def cache_replay_prefix_map: Separate<["-"], "cache-replay-prefix-map">,
19771974def plugin_search_Group : OptionGroup<"<plugin search options>">;
19781975
19791976def plugin_path : Separate<["-"], "plugin-path">, Group<plugin_search_Group>,
1980- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
1977+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
19811978 HelpText<"Add directory to the plugin search path">;
19821979
19831980def external_plugin_path : Separate<["-"], "external-plugin-path">, Group<plugin_search_Group>,
1984- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
1981+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
19851982 HelpText<"Add directory to the plugin search path with a plugin server executable">,
19861983 MetaVarName<"<path>#<plugin-server-path>">;
19871984
0 commit comments