|
14 | 14 | // |
15 | 15 | //===----------------------------------------------------------------------===// |
16 | 16 |
|
17 | | -let Flags = [FrontendOption, NoDriverOption] in { |
18 | | - |
19 | | -def triple : Separate<["-"], "triple">, Alias<target>; |
20 | | - |
21 | | -def primary_file : Separate<["-"], "primary-file">, |
22 | | - HelpText<"Produce output for this file, not the whole module">; |
| 17 | +let Flags = [FrontendOption, NoDriverOption, ArgumentIsFileList] in { |
23 | 18 |
|
24 | 19 | def filelist : Separate<["-"], "filelist">, |
25 | 20 | HelpText<"Specify source inputs in a file rather than on the command line">; |
26 | 21 | def primary_filelist : Separate<["-"], "primary-filelist">, |
27 | 22 | HelpText<"Specify primary inputs in a file rather than on the command line">; |
| 23 | + |
| 24 | +} // end let Flags = [FrontendOption, NoDriverOption, ArgumentIsFileList] |
| 25 | + |
| 26 | + |
| 27 | +let Flags = [FrontendOption, NoDriverOption, CacheInvariant] in { |
| 28 | + |
28 | 29 | def output_filelist : Separate<["-"], "output-filelist">, |
29 | 30 | HelpText<"Specify outputs in a file rather than on the command line">; |
30 | 31 | def supplementary_output_file_map : Separate<["-"], "supplementary-output-file-map">, |
31 | 32 | HelpText<"Specify supplementary outputs in a file rather than on the command line">; |
| 33 | +def index_unit_output_path_filelist : Separate<["-"], "index-unit-output-path-filelist">, |
| 34 | + HelpText<"Specify index unit output paths in a file rather than on the command line">; |
32 | 35 |
|
33 | | -def frontend_parseable_output : Flag<["-"], "frontend-parseable-output">, |
34 | | - HelpText<"Emit textual output in a parseable format">; |
35 | | - |
36 | | -def emit_module_doc : Flag<["-"], "emit-module-doc">, |
37 | | - HelpText<"Emit a module documentation file based on documentation " |
38 | | - "comments">; |
39 | 36 | def emit_module_doc_path |
40 | 37 | : Separate<["-"], "emit-module-doc-path">, MetaVarName<"<path>">, |
41 | 38 | HelpText<"Output module documentation file <path>">; |
42 | | - |
43 | | -def emit_module_source_info : Flag<["-"], "emit-module-source-info">, |
44 | | - HelpText<"Output module source info file">; |
45 | | - |
46 | | -def ignore_module_source_info : Flag<["-"], "ignore-module-source-info">, |
47 | | - HelpText<"Avoid getting source location from .swiftsourceinfo files">; |
48 | | - |
49 | | -def merge_modules |
50 | | - : Flag<["-"], "merge-modules">, ModeOpt, |
51 | | - HelpText<"Merge the input modules without otherwise processing them">; |
52 | | - |
53 | 39 | def emit_dependencies_path |
54 | 40 | : Separate<["-"], "emit-dependencies-path">, MetaVarName<"<path>">, |
55 | 41 | HelpText<"Output basic Make-compatible dependencies file to <path>">; |
56 | | - |
57 | | -def emit_reference_dependencies : Flag<["-"], "emit-reference-dependencies">, |
58 | | - HelpText<"Emit a Swift-style dependencies file">; |
59 | 42 | def emit_reference_dependencies_path |
60 | 43 | : Separate<["-"], "emit-reference-dependencies-path">, MetaVarName<"<path>">, |
61 | 44 | HelpText<"Output Swift-style dependencies file to <path>">; |
62 | 45 |
|
63 | 46 | def emit_fixits_path |
64 | 47 | : Separate<["-"], "emit-fixits-path">, MetaVarName<"<path>">, |
65 | 48 | HelpText<"Output compiler fixits as source edits to <path>">; |
66 | | - |
67 | 49 | def emit_abi_descriptor_path |
68 | 50 | : Separate<["-"], "emit-abi-descriptor-path">, MetaVarName<"<path>">, |
69 | 51 | HelpText<"Output the ABI descriptor of current module to <path>">; |
70 | | - |
71 | 52 | def emit_module_semantic_info_path |
72 | 53 | : Separate<["-"], "emit-module-semantic-info-path">, MetaVarName<"<path>">, |
73 | 54 | HelpText<"Output semantic info of current module to <path>">; |
74 | 55 |
|
| 56 | +def diagnostic_documentation_path |
| 57 | + : Separate<["-"], "diagnostic-documentation-path">, MetaVarName<"<path>">, |
| 58 | + HelpText<"Path to diagnostic documentation resources">; |
| 59 | + |
| 60 | +def dump_api_path : Separate<["-"], "dump-api-path">, |
| 61 | + HelpText<"The path to output swift interface files for the compiled source files">; |
| 62 | + |
| 63 | +def group_info_path : Separate<["-"], "group-info-path">, |
| 64 | + HelpText<"The path to collect the group information of the compiled module">; |
| 65 | + |
| 66 | +def prebuilt_module_cache_path : |
| 67 | + Separate<["-"], "prebuilt-module-cache-path">, |
| 68 | + HelpText<"Directory of prebuilt modules for loading module interfaces">; |
| 69 | +def prebuilt_module_cache_path_EQ : |
| 70 | + Joined<["-"], "prebuilt-module-cache-path=">, |
| 71 | + Alias<prebuilt_module_cache_path>; |
| 72 | + |
| 73 | +def backup_module_interface_path : |
| 74 | + Separate<["-"], "backup-module-interface-path">, |
| 75 | + HelpText<"Directory of module interfaces as backups to those from SDKs">; |
| 76 | +def backup_module_interface_path_EQ : |
| 77 | + Joined<["-"], "backup-module-interface-path=">, |
| 78 | + Alias<backup_module_interface_path>; |
| 79 | + |
| 80 | +} // end let Flags = [FrontendOption, NoDriverOption, CacheInvariant] |
| 81 | + |
| 82 | + |
| 83 | +let Flags = [FrontendOption, NoDriverOption] in { |
| 84 | + |
| 85 | +def triple : Separate<["-"], "triple">, Alias<target>; |
| 86 | + |
| 87 | +def primary_file : Separate<["-"], "primary-file">, |
| 88 | + HelpText<"Produce output for this file, not the whole module">; |
| 89 | + |
| 90 | +def frontend_parseable_output : Flag<["-"], "frontend-parseable-output">, |
| 91 | + HelpText<"Emit textual output in a parseable format">; |
| 92 | + |
| 93 | +def emit_module_doc : Flag<["-"], "emit-module-doc">, |
| 94 | + HelpText<"Emit a module documentation file based on documentation " |
| 95 | + "comments">; |
| 96 | + |
| 97 | +def emit_module_source_info : Flag<["-"], "emit-module-source-info">, |
| 98 | + HelpText<"Output module source info file">; |
| 99 | +def ignore_module_source_info : Flag<["-"], "ignore-module-source-info">, |
| 100 | + HelpText<"Avoid getting source location from .swiftsourceinfo files">; |
| 101 | + |
| 102 | +def merge_modules |
| 103 | + : Flag<["-"], "merge-modules">, ModeOpt, |
| 104 | + HelpText<"Merge the input modules without otherwise processing them">; |
| 105 | +def emit_reference_dependencies : Flag<["-"], "emit-reference-dependencies">, |
| 106 | + HelpText<"Emit a Swift-style dependencies file">; |
| 107 | + |
75 | 108 | def serialize_module_interface_dependency_hashes |
76 | 109 | : Flag<["-"], "serialize-module-interface-dependency-hashes">, |
77 | 110 | Flags<[HelpHidden]>; |
@@ -129,10 +162,6 @@ def enable_cross_import_overlays : Flag<["-"], "enable-cross-import-overlays">, |
129 | 162 | def disable_cross_import_overlays : Flag<["-"], "disable-cross-import-overlays">, |
130 | 163 | HelpText<"Do not automatically import declared cross-import overlays.">; |
131 | 164 |
|
132 | | -def diagnostic_documentation_path |
133 | | - : Separate<["-"], "diagnostic-documentation-path">, MetaVarName<"<path>">, |
134 | | - HelpText<"Path to diagnostic documentation resources">; |
135 | | - |
136 | 165 | def enable_testable_attr_requires_testable_module : |
137 | 166 | Flag<["-"], "enable-testable-attr-requires-testable-module">, |
138 | 167 | HelpText<"Enable checking of @testable">; |
@@ -904,9 +933,6 @@ def index_ignore_stdlib : |
904 | 933 | Flag<["-"], "index-ignore-stdlib">, |
905 | 934 | HelpText<"Avoid emitting index data for the standard library.">; |
906 | 935 |
|
907 | | -def index_unit_output_path_filelist : Separate<["-"], "index-unit-output-path-filelist">, |
908 | | - HelpText<"Specify index unit output paths in a file rather than on the command line">; |
909 | | - |
910 | 936 | def dump_interface_hash : Flag<["-"], "dump-interface-hash">, |
911 | 937 | HelpText<"Parse input file(s) and dump interface token hash(es)">, |
912 | 938 | ModeOpt; |
@@ -969,29 +995,9 @@ def experimental_one_way_closure_params : |
969 | 995 | Flag<["-"], "experimental-one-way-closure-params">, |
970 | 996 | HelpText<"Enable experimental support for one-way closure parameters">; |
971 | 997 |
|
972 | | -def prebuilt_module_cache_path : |
973 | | - Separate<["-"], "prebuilt-module-cache-path">, |
974 | | - HelpText<"Directory of prebuilt modules for loading module interfaces">; |
975 | | -def prebuilt_module_cache_path_EQ : |
976 | | - Joined<["-"], "prebuilt-module-cache-path=">, |
977 | | - Alias<prebuilt_module_cache_path>; |
978 | | - |
979 | | -def backup_module_interface_path : |
980 | | - Separate<["-"], "backup-module-interface-path">, |
981 | | - HelpText<"Directory of module interfaces as backups to those from SDKs">; |
982 | | -def backup_module_interface_path_EQ : |
983 | | - Joined<["-"], "backup-module-interface-path=">, |
984 | | - Alias<backup_module_interface_path>; |
985 | | - |
986 | 998 | def force_public_linkage : Flag<["-"], "force-public-linkage">, |
987 | 999 | HelpText<"Force public linkage for private symbols. Used by LLDB.">; |
988 | 1000 |
|
989 | | -def dump_api_path : Separate<["-"], "dump-api-path">, |
990 | | - HelpText<"The path to output swift interface files for the compiled source files">; |
991 | | - |
992 | | -def group_info_path : Separate<["-"], "group-info-path">, |
993 | | - HelpText<"The path to collect the group information of the compiled module">; |
994 | | - |
995 | 1001 | def diagnostics_editor_mode : Flag<["-"], "diagnostics-editor-mode">, |
996 | 1002 | HelpText<"Diagnostics will be used in editor">; |
997 | 1003 |
|
|
0 commit comments