@@ -60,6 +60,9 @@ def SupplementaryOutput : OptionFlag;
60
60
// The option should be accepted by swift-symbolgraph-extract.
61
61
def SwiftSymbolGraphExtractOption : OptionFlag;
62
62
63
+ // The option should be accepted by swift-synthesize-interface.
64
+ def SwiftSynthesizeInterfaceOption : OptionFlag;
65
+
63
66
// The option should be accepted by swift-api-digester.
64
67
def SwiftAPIDigesterOption : OptionFlag;
65
68
@@ -215,15 +218,17 @@ def driver_mode : Joined<["--"], "driver-mode=">, Flags<[HelpHidden]>,
215
218
216
219
def help : Flag<["-", "--"], "help">,
217
220
Flags<[FrontendOption, AutolinkExtractOption, ModuleWrapOption,
218
- SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
221
+ SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption,
222
+ SwiftSynthesizeInterfaceOption]>,
219
223
HelpText<"Display available options">;
220
224
def h : Flag<["-"], "h">, Alias<help>;
221
225
def help_hidden : Flag<["-", "--"], "help-hidden">,
222
226
Flags<[HelpHidden, FrontendOption]>,
223
227
HelpText<"Display available options, including hidden options">;
224
228
225
229
def v : Flag<["-"], "v">,
226
- Flags<[DoesNotAffectIncrementalBuild, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
230
+ Flags<[DoesNotAffectIncrementalBuild, SwiftSymbolGraphExtractOption,
231
+ SwiftAPIDigesterOption, SwiftSynthesizeInterfaceOption]>,
227
232
HelpText<"Show commands to run and use verbose output">;
228
233
def version : Flag<["-", "--"], "version">, Flags<[FrontendOption]>,
229
234
HelpText<"Print version information and exit">;
@@ -236,26 +241,30 @@ def parseable_output : Flag<["-"], "parseable-output">,
236
241
237
242
def windows_sdk_root : Separate<["-"], "windows-sdk-root">,
238
243
Flags<[ArgumentIsPath, FrontendOption,
239
- SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
244
+ SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption,
245
+ SwiftSynthesizeInterfaceOption]>,
240
246
HelpText<"Windows SDK Root">, MetaVarName<"<root>">;
241
247
def windows_sdk_version : Separate<["-"], "windows-sdk-version">,
242
248
Flags<[FrontendOption,
243
- SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
249
+ SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption,
250
+ SwiftSynthesizeInterfaceOption]>,
244
251
HelpText<"Windows SDK Version">, MetaVarName<"<version>">;
245
252
def visualc_tools_root : Separate<["-"], "visualc-tools-root">,
246
253
Flags<[ArgumentIsPath, FrontendOption,
247
- SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
254
+ SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption,
255
+ SwiftSynthesizeInterfaceOption]>,
248
256
HelpText<"VisualC++ Tools Root">, MetaVarName<"<root>">;
249
257
def visualc_tools_version : Separate<["-"], "visualc-tools-version">,
250
258
Flags<[FrontendOption,
251
- SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
259
+ SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption,
260
+ SwiftSynthesizeInterfaceOption]>,
252
261
HelpText<"VisualC++ ToolSet Version">, MetaVarName<"<version>">;
253
262
254
263
// Android Options
255
264
256
265
def sysroot : Separate<["-"], "sysroot">,
257
266
Flags<[ArgumentIsPath, FrontendOption, SwiftSymbolGraphExtractOption,
258
- SwiftAPIDigesterOption]>,
267
+ SwiftAPIDigesterOption, SwiftSynthesizeInterfaceOption ]>,
259
268
HelpText<"Native Platform sysroot">, MetaVarName<"<sysroot>">;
260
269
261
270
// Standard Options
@@ -265,26 +274,26 @@ def _DASH_DASH : Option<["--"], "", KIND_REMAINING_ARGS>,
265
274
def o : JoinedOrSeparate<["-"], "o">,
266
275
Flags<[FrontendOption, AutolinkExtractOption, ModuleWrapOption,
267
276
NoInteractiveOption, ArgumentIsPath, SwiftAPIDigesterOption,
268
- CacheInvariant]>,
277
+ SwiftSynthesizeInterfaceOption, CacheInvariant]>,
269
278
HelpText<"Write output to <file>">, MetaVarName<"<file>">;
270
279
271
280
def j : JoinedOrSeparate<["-"], "j">, Flags<[DoesNotAffectIncrementalBuild]>,
272
281
HelpText<"Number of commands to execute in parallel">, MetaVarName<"<n>">;
273
282
274
283
def sdk : Separate<["-"], "sdk">,
275
284
Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption,
276
- SwiftAPIDigesterOption]>,
285
+ SwiftAPIDigesterOption, SwiftSynthesizeInterfaceOption ]>,
277
286
HelpText<"Compile against <sdk>">, MetaVarName<"<sdk>">;
278
287
279
288
def swift_version : Separate<["-"], "swift-version">,
280
289
Flags<[FrontendOption, ModuleInterfaceOption, SwiftSymbolGraphExtractOption,
281
- SwiftAPIDigesterOption]>,
290
+ SwiftAPIDigesterOption, SwiftSynthesizeInterfaceOption ]>,
282
291
HelpText<"Interpret input according to a specific Swift language version number">,
283
292
MetaVarName<"<vers>">;
284
293
285
294
def language_mode : Separate<["-"], "language-mode">,
286
295
Flags<[FrontendOption, ModuleInterfaceOption, SwiftSymbolGraphExtractOption,
287
- SwiftAPIDigesterOption]>,
296
+ SwiftAPIDigesterOption, SwiftSynthesizeInterfaceOption ]>,
288
297
HelpText<"Interpret input according to a specific Swift language mode">,
289
298
MetaVarName<"<mode>">,
290
299
Alias<swift_version>;
@@ -306,17 +315,20 @@ def e : Separate<["-"], "e">, Flags<[NewDriverOnlyOption]>,
306
315
HelpText<"Executes a line of code provided on the command line">;
307
316
308
317
def F : JoinedOrSeparate<["-"], "F">,
309
- Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
318
+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption,
319
+ SwiftAPIDigesterOption, SwiftSynthesizeInterfaceOption]>,
310
320
HelpText<"Add directory to framework search path">;
311
321
def F_EQ : Joined<["-"], "F=">, Flags<[FrontendOption, ArgumentIsPath]>,
312
322
Alias<F>;
313
323
314
324
def Fsystem : Separate<["-"], "Fsystem">,
315
- Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption]>,
325
+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption,
326
+ SwiftSynthesizeInterfaceOption]>,
316
327
HelpText<"Add directory to system framework search path">;
317
328
318
329
def I : JoinedOrSeparate<["-"], "I">,
319
- Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
330
+ Flags<[FrontendOption, ArgumentIsPath, SwiftSymbolGraphExtractOption,
331
+ SwiftAPIDigesterOption, SwiftSynthesizeInterfaceOption]>,
320
332
HelpText<"Add directory to the import search path">;
321
333
def I_EQ : Joined<["-"], "I=">, Flags<[FrontendOption, ArgumentIsPath]>,
322
334
Alias<I>;
@@ -492,7 +504,8 @@ def localization_path : Separate<["-"], "localization-path">,
492
504
493
505
def module_cache_path : Separate<["-"], "module-cache-path">,
494
506
Flags<[FrontendOption, DoesNotAffectIncrementalBuild, ArgumentIsPath,
495
- SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
507
+ SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption,
508
+ SwiftSynthesizeInterfaceOption]>,
496
509
HelpText<"Specifies the module cache path">;
497
510
498
511
def enable_library_evolution : Flag<["-"], "enable-library-evolution">,
@@ -556,11 +569,11 @@ def library_level_EQ : Joined<["-"], "library-level=">,
556
569
557
570
def module_name : Separate<["-"], "module-name">,
558
571
Flags<[FrontendOption, ModuleInterfaceOption,
559
- SwiftSymbolGraphExtractOption]>,
572
+ SwiftSymbolGraphExtractOption, SwiftSynthesizeInterfaceOption ]>,
560
573
HelpText<"Name of the module to build">;
561
574
def project_name : Separate<["-"], "project-name">,
562
575
Flags<[FrontendOption, ModuleInterfaceOptionIgnorable,
563
- SwiftSymbolGraphExtractOption]>,
576
+ SwiftSymbolGraphExtractOption, SwiftSynthesizeInterfaceOption ]>,
564
577
HelpText<"Name of the project this module to build belongs to">;
565
578
566
579
def module_name_EQ : Joined<["-"], "module-name=">, Flags<[FrontendOption]>,
@@ -787,7 +800,8 @@ def enable_experimental_cxx_interop :
787
800
788
801
def cxx_interoperability_mode :
789
802
Joined<["-"], "cxx-interoperability-mode=">,
790
- Flags<[FrontendOption, ModuleInterfaceOption, SwiftSymbolGraphExtractOption]>,
803
+ Flags<[FrontendOption, ModuleInterfaceOption, SwiftSymbolGraphExtractOption,
804
+ SwiftSynthesizeInterfaceOption]>,
791
805
HelpText<"Enables C++ interoperability; pass 'default' to enable or 'off' to disable">;
792
806
793
807
def experimental_c_foreign_reference_types :
@@ -1381,7 +1395,9 @@ def num_threads : Separate<["-"], "num-threads">,
1381
1395
def Xfrontend : Separate<["-"], "Xfrontend">, Flags<[HelpHidden]>,
1382
1396
MetaVarName<"<arg>">, HelpText<"Pass <arg> to the Swift frontend">;
1383
1397
1384
- def Xcc : Separate<["-"], "Xcc">, Flags<[FrontendOption, SwiftSymbolGraphExtractOption]>,
1398
+ def Xcc : Separate<["-"], "Xcc">,
1399
+ Flags<[FrontendOption, SwiftSymbolGraphExtractOption,
1400
+ SwiftSynthesizeInterfaceOption]>,
1385
1401
MetaVarName<"<arg>">,
1386
1402
HelpText<"Pass <arg> to the C/C++/Objective-C compiler">;
1387
1403
@@ -1393,13 +1409,16 @@ def Xllvm : Separate<["-"], "Xllvm">,
1393
1409
MetaVarName<"<arg>">, HelpText<"Pass <arg> to LLVM.">;
1394
1410
1395
1411
def resource_dir : Separate<["-"], "resource-dir">,
1396
- Flags<[FrontendOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption, HelpHidden, ArgumentIsPath]>,
1412
+ Flags<[FrontendOption, SwiftSymbolGraphExtractOption,
1413
+ SwiftAPIDigesterOption, SwiftSynthesizeInterfaceOption,
1414
+ HelpHidden, ArgumentIsPath]>,
1397
1415
MetaVarName<"</usr/lib/swift>">,
1398
1416
HelpText<"The directory that holds the compiler resource files">;
1399
1417
1400
1418
def target : Separate<["-"], "target">,
1401
- Flags<[FrontendOption, ModuleWrapOption, ModuleInterfaceOption, SwiftSymbolGraphExtractOption,
1402
- SwiftAPIDigesterOption]>,
1419
+ Flags<[FrontendOption, ModuleWrapOption, ModuleInterfaceOption,
1420
+ SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption,
1421
+ SwiftSynthesizeInterfaceOption]>,
1403
1422
HelpText<"Generate code for the given target <triple>, such as x86_64-apple-macos10.9">, MetaVarName<"<triple>">;
1404
1423
def target_legacy_spelling : Joined<["--"], "target=">,
1405
1424
Flags<[FrontendOption]>, Alias<target>;
@@ -1416,7 +1435,8 @@ def target_variant : Separate<["-"], "target-variant">,
1416
1435
" variant target triple in addition to the main -target triple">;
1417
1436
1418
1437
def clang_target : Separate<["-"], "clang-target">,
1419
- Flags<[FrontendOption, SwiftSymbolGraphExtractOption, SwiftAPIDigesterOption]>,
1438
+ Flags<[FrontendOption, SwiftSymbolGraphExtractOption,
1439
+ SwiftAPIDigesterOption, SwiftSynthesizeInterfaceOption]>,
1420
1440
HelpText<"Separately set the target we should use for internal Clang instance">;
1421
1441
1422
1442
def disable_clang_target : Flag<["-"], "disable-clang-target">,
0 commit comments