@@ -66,9 +66,6 @@ def ModuleInterfaceOptionIgnorablePrivate : OptionFlag;
66
66
// for a supplementary output. E.g., `-emit-module` and `-emit-module-path`.
67
67
def SupplementaryOutput : OptionFlag;
68
68
69
- // The option should be accepted by swift-api-extract.
70
- def SwiftAPIExtractOption : OptionFlag;
71
-
72
69
// The option should be accepted by swift-symbolgraph-extract.
73
70
def SwiftSymbolGraphExtractOption : OptionFlag;
74
71
@@ -227,7 +224,7 @@ def driver_mode : Joined<["--"], "driver-mode=">, Flags<[HelpHidden]>,
227
224
228
225
def help : Flag<["-", "--"], "help">,
229
226
Flags<[FrontendOption, AutolinkExtractOption, ModuleWrapOption,
230
- SwiftIndentOption, SwiftAPIExtractOption,
227
+ SwiftIndentOption,
231
228
SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
232
229
HelpText<"Display available options">;
233
230
def h : Flag<["-"], "h">, Alias<help>;
@@ -248,19 +245,19 @@ def parseable_output : Flag<["-"], "parseable-output">,
248
245
// Windows Options
249
246
250
247
def windows_sdk_root : Separate<["-"], "windows-sdk-root">,
251
- Flags<[ArgumentIsPath, FrontendOption, SwiftAPIExtractOption,
248
+ Flags<[ArgumentIsPath, FrontendOption,
252
249
SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
253
250
HelpText<"Windows SDK Root">, MetaVarName<"<root>">;
254
251
def windows_sdk_version : Separate<["-"], "windows-sdk-version">,
255
- Flags<[FrontendOption, SwiftAPIExtractOption,
252
+ Flags<[FrontendOption,
256
253
SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
257
254
HelpText<"Windows SDK Version">, MetaVarName<"<version>">;
258
255
def visualc_tools_root : Separate<["-"], "visualc-tools-root">,
259
- Flags<[ArgumentIsPath, FrontendOption, SwiftAPIExtractOption,
256
+ Flags<[ArgumentIsPath, FrontendOption,
260
257
SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
261
258
HelpText<"VisualC++ Tools Root">, MetaVarName<"<root>">;
262
259
def visualc_tools_version : Separate<["-"], "visualc-tools-version">,
263
- Flags<[FrontendOption, SwiftAPIExtractOption,
260
+ Flags<[FrontendOption,
264
261
SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
265
262
HelpText<"VisualC++ ToolSet Version">, MetaVarName<"<version>">;
266
263
@@ -271,19 +268,19 @@ def _DASH_DASH : Option<["--"], "", KIND_REMAINING_ARGS>,
271
268
def o : JoinedOrSeparate<["-"], "o">,
272
269
Flags<[FrontendOption, AutolinkExtractOption, ModuleWrapOption,
273
270
NoInteractiveOption, SwiftIndentOption, ArgumentIsPath,
274
- SwiftAPIExtractOption, SwiftAPIDigesterOption, CacheInvariant]>,
271
+ SwiftAPIDigesterOption, CacheInvariant]>,
275
272
HelpText<"Write output to <file>">, MetaVarName<"<file>">;
276
273
277
274
def j : JoinedOrSeparate<["-"], "j">, Flags<[DoesNotAffectIncrementalBuild]>,
278
275
HelpText<"Number of commands to execute in parallel">, MetaVarName<"<n>">;
279
276
280
277
def sdk : Separate<["-"], "sdk">,
281
- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption,
278
+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption,
282
279
SwiftAPIDigesterOption]>,
283
280
HelpText<"Compile against <sdk>">, MetaVarName<"<sdk>">;
284
281
285
282
def swift_version : Separate<["-"], "swift-version">,
286
- Flags<[FrontendOption, ModuleInterfaceOption, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption,
283
+ Flags<[FrontendOption, ModuleInterfaceOption, SwiftSymbolGraphExtractOption,
287
284
SwiftAPIDigesterOption]>,
288
285
HelpText<"Interpret input according to a specific Swift language version number">,
289
286
MetaVarName<"<vers>">;
@@ -305,17 +302,17 @@ def e : Separate<["-"], "e">, Flags<[NewDriverOnlyOption]>,
305
302
HelpText<"Executes a line of code provided on the command line">;
306
303
307
304
def F : JoinedOrSeparate<["-"], "F">,
308
- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
305
+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
309
306
HelpText<"Add directory to framework search path">;
310
307
def F_EQ : Joined<["-"], "F=">, Flags<[FrontendOption, ArgumentIsPath]>,
311
308
Alias<F>;
312
309
313
310
def Fsystem : Separate<["-"], "Fsystem">,
314
- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption]>,
311
+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption]>,
315
312
HelpText<"Add directory to system framework search path">;
316
313
317
314
def I : JoinedOrSeparate<["-"], "I">,
318
- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
315
+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
319
316
HelpText<"Add directory to the import search path">;
320
317
def I_EQ : Joined<["-"], "I=">, Flags<[FrontendOption, ArgumentIsPath]>,
321
318
Alias<I>;
@@ -484,7 +481,7 @@ def localization_path : Separate<["-"], "localization-path">,
484
481
MetaVarName<"<path>">;
485
482
486
483
def module_cache_path : Separate<["-"], "module-cache-path">,
487
- Flags<[FrontendOption, DoesNotAffectIncrementalBuild, ArgumentIsPath, SwiftAPIExtractOption,
484
+ Flags<[FrontendOption, DoesNotAffectIncrementalBuild, ArgumentIsPath,
488
485
SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
489
486
HelpText<"Specifies the module cache path">;
490
487
@@ -544,11 +541,11 @@ def library_level_EQ : Joined<["-"], "library-level=">,
544
541
Alias<library_level>;
545
542
546
543
def module_name : Separate<["-"], "module-name">,
547
- Flags<[FrontendOption, ModuleInterfaceOption, SwiftAPIExtractOption,
544
+ Flags<[FrontendOption, ModuleInterfaceOption,
548
545
SwiftSymbolGraphExtractOption]>,
549
546
HelpText<"Name of the module to build">;
550
547
def project_name : Separate<["-"], "project-name">,
551
- Flags<[FrontendOption, ModuleInterfaceOptionIgnorable, SwiftAPIExtractOption,
548
+ Flags<[FrontendOption, ModuleInterfaceOptionIgnorable,
552
549
SwiftSymbolGraphExtractOption]>,
553
550
HelpText<"Name of the project this module to build belongs to">;
554
551
@@ -915,7 +912,7 @@ def enable_app_extension_library : Flag<["-"], "application-extension-library">,
915
912
HelpText<"Restrict code to those available for App Extension Libraries">;
916
913
917
914
def libc : Separate<["-"], "libc">,
918
- Flags<[SwiftAPIExtractOption, SwiftSymbolGraphExtractOption]>,
915
+ Flags<[SwiftSymbolGraphExtractOption]>,
919
916
HelpText<"libc runtime library to use">;
920
917
921
918
// Linker options
@@ -930,7 +927,7 @@ def framework : Separate<["-"], "framework">, Group<linker_option_Group>,
930
927
HelpText<"Specifies a framework which should be linked against">;
931
928
932
929
def L : JoinedOrSeparate<["-"], "L">, Group<linker_option_Group>,
933
- Flags<[FrontendOption, DoesNotAffectIncrementalBuild, ArgumentIsPath, SwiftAPIExtractOption,
930
+ Flags<[FrontendOption, DoesNotAffectIncrementalBuild, ArgumentIsPath,
934
931
SwiftSymbolGraphExtractOption]>,
935
932
HelpText<"Add directory to library link search path">;
936
933
def L_EQ : Joined<["-"], "L=">, Group<linker_option_Group>,
@@ -1347,7 +1344,7 @@ def resource_dir : Separate<["-"], "resource-dir">,
1347
1344
HelpText<"The directory that holds the compiler resource files">;
1348
1345
1349
1346
def target : Separate<["-"], "target">,
1350
- Flags<[FrontendOption, ModuleWrapOption, ModuleInterfaceOption, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption,
1347
+ Flags<[FrontendOption, ModuleWrapOption, ModuleInterfaceOption, SwiftSymbolGraphExtractOption,
1351
1348
SwiftAPIDigesterOption]>,
1352
1349
HelpText<"Generate code for the given target <triple>, such as x86_64-apple-macos10.9">, MetaVarName<"<triple>">;
1353
1350
def target_legacy_spelling : Joined<["--"], "target=">,
@@ -1365,7 +1362,7 @@ def target_variant : Separate<["-"], "target-variant">,
1365
1362
" variant target triple in addition to the main -target triple">;
1366
1363
1367
1364
def clang_target : Separate<["-"], "clang-target">,
1368
- Flags<[FrontendOption, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
1365
+ Flags<[FrontendOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
1369
1366
HelpText<"Separately set the target we should use for internal Clang instance">;
1370
1367
1371
1368
def disable_clang_target : Flag<["-"], "disable-clang-target">,
@@ -1520,7 +1517,7 @@ def allowable_client : Separate<["-"], "allowable-client">,
1520
1517
// VFS
1521
1518
1522
1519
def vfsoverlay : JoinedOrSeparate<["-"], "vfsoverlay">,
1523
- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption ]>,
1520
+ Flags<[FrontendOption, ArgumentIsPath]>,
1524
1521
HelpText<"Add directory to VFS overlay file">;
1525
1522
def vfsoverlay_EQ : Joined<["-"], "vfsoverlay=">,
1526
1523
Alias<vfsoverlay>;
@@ -1568,7 +1565,7 @@ def symbol_graph_minimum_access_level: Separate<["-"], "symbol-graph-minimum-acc
1568
1565
MetaVarName<"<level>">;
1569
1566
1570
1567
def pretty_print: Flag<["-"], "pretty-print">,
1571
- Flags<[SwiftAPIExtractOption, SwiftSymbolGraphExtractOption]>,
1568
+ Flags<[SwiftSymbolGraphExtractOption]>,
1572
1569
HelpText<"Pretty-print the output JSON">;
1573
1570
1574
1571
def emit_extension_block_symbols: Flag<["-"], "emit-extension-block-symbols">,
@@ -1977,11 +1974,11 @@ def cache_replay_prefix_map: Separate<["-"], "cache-replay-prefix-map">,
1977
1974
def plugin_search_Group : OptionGroup<"<plugin search options>">;
1978
1975
1979
1976
def plugin_path : Separate<["-"], "plugin-path">, Group<plugin_search_Group>,
1980
- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
1977
+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
1981
1978
HelpText<"Add directory to the plugin search path">;
1982
1979
1983
1980
def external_plugin_path : Separate<["-"], "external-plugin-path">, Group<plugin_search_Group>,
1984
- Flags<[FrontendOption, ArgumentIsPath, SwiftAPIExtractOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
1981
+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
1985
1982
HelpText<"Add directory to the plugin search path with a plugin server executable">,
1986
1983
MetaVarName<"<path>#<plugin-server-path>">;
1987
1984
0 commit comments