Skip to content

Commit 7759027

Browse files
committed
[Gardening] Reformat DiagnosticsFrontend.def
1 parent c83e890 commit 7759027

File tree

1 file changed

+66
-59
lines changed

1 file changed

+66
-59
lines changed

include/swift/AST/DiagnosticsFrontend.def

Lines changed: 66 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -38,69 +38,70 @@
3838
#endif
3939

4040
WARNING(warning_no_such_sdk,none,
41-
"no such SDK: '%0'", (StringRef))
41+
"no such SDK: '%0'", (StringRef))
4242

4343
ERROR(error_no_frontend_args, none,
44-
"no arguments provided to '-frontend'", ())
44+
"no arguments provided to '-frontend'", ())
4545

4646
ERROR(error_no_such_file_or_directory,none,
47-
"no such file or directory: '%0'", (StringRef))
47+
"no such file or directory: '%0'", (StringRef))
4848

4949
ERROR(error_unsupported_target_os, none,
50-
"unsupported target OS: '%0'", (StringRef))
50+
"unsupported target OS: '%0'", (StringRef))
5151

5252
ERROR(error_unsupported_target_arch, none,
53-
"unsupported target architecture: '%0'", (StringRef))
53+
"unsupported target architecture: '%0'", (StringRef))
5454

5555
ERROR(error_unsupported_opt_for_target, none,
56-
"unsupported option '%0' for target '%1'", (StringRef, StringRef))
56+
"unsupported option '%0' for target '%1'", (StringRef, StringRef))
5757

5858
ERROR(error_argument_not_allowed_with, none,
59-
"argument '%0' is not allowed with '%1'", (StringRef, StringRef))
59+
"argument '%0' is not allowed with '%1'", (StringRef, StringRef))
6060

6161
WARNING(warning_argument_not_supported_with_optimization, none,
62-
"argument '%0' is not supported with optimization", (StringRef))
62+
"argument '%0' is not supported with optimization", (StringRef))
6363

6464
ERROR(error_option_requires_sanitizer, none,
65-
"option '%0' requires a sanitizer to be enabled. Use -sanitize= to enable a"
66-
" sanitizer", (StringRef))
65+
"option '%0' requires a sanitizer to be enabled. Use -sanitize= to "
66+
"enable a sanitizer", (StringRef))
6767

6868
ERROR(error_option_missing_required_argument, none,
69-
"option '%0' is missing a required argument (%1)", (StringRef, StringRef))
69+
"option '%0' is missing a required argument (%1)", (StringRef, StringRef))
7070

7171
ERROR(cannot_open_file,none,
72-
"cannot open file '%0' (%1)", (StringRef, StringRef))
72+
"cannot open file '%0' (%1)", (StringRef, StringRef))
7373
ERROR(cannot_open_serialized_file,none,
74-
"cannot open file '%0' for diagnostics emission (%1)", (StringRef, StringRef))
74+
"cannot open file '%0' for diagnostics emission (%1)",
75+
(StringRef, StringRef))
7576
ERROR(error_open_input_file,none,
76-
"error opening input file '%0' (%1)", (StringRef, StringRef))
77+
"error opening input file '%0' (%1)", (StringRef, StringRef))
7778
ERROR(error_clang_importer_create_fail,none,
78-
"clang importer creation failed", ())
79+
"clang importer creation failed", ())
7980
ERROR(error_missing_arg_value,none,
80-
"missing argument value for '%0', expected %1 argument(s)",
81-
(StringRef, unsigned))
81+
"missing argument value for '%0', expected %1 argument(s)",
82+
(StringRef, unsigned))
8283
ERROR(error_unknown_arg,none,
83-
"unknown argument: '%0'", (StringRef))
84+
"unknown argument: '%0'", (StringRef))
8485
ERROR(error_invalid_arg_value,none,
85-
"invalid value '%1' in '%0'", (StringRef, StringRef))
86+
"invalid value '%1' in '%0'", (StringRef, StringRef))
8687
WARNING(warning_cannot_multithread_batch_mode,none,
87-
"ignoring -num-threads argument; cannot multithread batch mode", ())
88+
"ignoring -num-threads argument; cannot multithread batch mode", ())
8889
ERROR(error_unsupported_option_argument,none,
89-
"unsupported argument '%1' to option '%0'", (StringRef, StringRef))
90+
"unsupported argument '%1' to option '%0'", (StringRef, StringRef))
9091
ERROR(error_immediate_mode_missing_stdlib,none,
91-
"could not load the swift standard library", ())
92+
"could not load the swift standard library", ())
9293
ERROR(error_immediate_mode_missing_library,none,
93-
"could not load %select{shared library|framework}0 '%1'",
94-
(unsigned, StringRef))
94+
"could not load %select{shared library|framework}0 '%1'",
95+
(unsigned, StringRef))
9596
ERROR(error_immediate_mode_primary_file,none,
96-
"immediate mode is incompatible with -primary-file", ())
97+
"immediate mode is incompatible with -primary-file", ())
9798
ERROR(error_missing_frontend_action,none,
98-
"no frontend action was selected", ())
99+
"no frontend action was selected", ())
99100
ERROR(error_invalid_source_location_str,none,
100-
"invalid source location string '%0'", (StringRef))
101+
"invalid source location string '%0'", (StringRef))
101102
ERROR(error_no_source_location_scope_map,none,
102-
"-dump-scope-maps argument must be 'expanded' or a list of source locations",
103-
())
103+
"-dump-scope-maps argument must be 'expanded' or a list of "
104+
"source locations", ())
104105

105106
NOTE(note_swift_version_major, none,
106107
"use major version, as in '-swift-version %0'", (unsigned))
@@ -140,46 +141,50 @@ ERROR(error_underlying_module_not_found,none,
140141
"underlying Objective-C module %0 not found", (Identifier))
141142

142143
ERROR(error_unable_to_load_supplementary_output_file_map, none,
143-
"unable to load supplementary output file map '%0': %1", (StringRef, StringRef))
144+
"unable to load supplementary output file map '%0': %1",
145+
(StringRef, StringRef))
144146

145147
ERROR(error_missing_entry_in_supplementary_output_file_map, none,
146-
"supplementary output file map '%0' is missing an entry for '%1' (this likely indicates a compiler issue; please file a bug report)", (StringRef, StringRef))
148+
"supplementary output file map '%0' is missing an entry for '%1' "
149+
"(this likely indicates a compiler issue; please file a bug report)",
150+
(StringRef, StringRef))
147151

148152
ERROR(error_repl_requires_no_input_files,none,
149-
"REPL mode requires no input files", ())
153+
"REPL mode requires no input files", ())
150154
ERROR(error_mode_requires_one_input_file,none,
151-
"this mode requires a single input file", ())
155+
"this mode requires a single input file", ())
152156
ERROR(error_mode_requires_an_input_file,none,
153-
"this mode requires at least one input file", ())
157+
"this mode requires at least one input file", ())
154158
ERROR(error_mode_requires_one_sil_multi_sib,none,
155-
"this mode requires .sil for primary-file and only .sib for other inputs", ())
159+
"this mode requires .sil for primary-file and only .sib for other inputs",
160+
())
156161

157162
ERROR(error_no_output_filename_specified,none,
158-
"an output filename was not specified for a mode which requires an output "
159-
"filename", ())
163+
"an output filename was not specified for a mode which requires an "
164+
"output filename", ())
160165

161166
ERROR(error_implicit_output_file_is_directory,none,
162-
"the implicit output file '%0' is a directory; explicitly specify a filename "
163-
"using -o", (StringRef))
167+
"the implicit output file '%0' is a directory; explicitly specify a "
168+
"filename using -o", (StringRef))
164169

165170
ERROR(error_if_any_output_files_are_specified_they_all_must_be,none,
166-
"if any output files are specified, they all must be", ())
171+
"if any output files are specified, they all must be", ())
167172

168173
ERROR(error_primary_file_not_found,none,
169174
"primary file '%0' was not found in file list '%1'",
170175
(StringRef, StringRef))
171176

172177
ERROR(error_cannot_have_input_files_with_file_list,none,
173-
"cannot have input files with file list", ())
178+
"cannot have input files with file list", ())
174179

175180
ERROR(error_cannot_have_primary_files_with_primary_file_list,none,
176-
"cannot have primary input files with primary file list", ())
181+
"cannot have primary input files with primary file list", ())
177182

178183
ERROR(error_cannot_have_supplementary_outputs,none,
179-
"cannot have '%0' with '%1'", (StringRef, StringRef))
184+
"cannot have '%0' with '%1'", (StringRef, StringRef))
180185

181186
ERROR(error_duplicate_input_file,none,
182-
"duplicate input file '%0'", (StringRef))
187+
"duplicate input file '%0'", (StringRef))
183188

184189
ERROR(repl_must_be_initialized,none,
185190
"variables currently must have an initial value when entered at the "
@@ -192,33 +197,35 @@ ERROR(verify_encountered_fatal,none,
192197
"fatal error encountered while in -verify mode", ())
193198

194199
ERROR(error_parse_input_file,none,
195-
"error parsing input file '%0' (%1)", (StringRef, StringRef))
200+
"error parsing input file '%0' (%1)", (StringRef, StringRef))
196201

197202
ERROR(error_write_index_unit,none,
198-
"writing index unit file: %0", (StringRef))
203+
"writing index unit file: %0", (StringRef))
199204
ERROR(error_create_index_dir,none,
200-
"creating index directory: %0", (StringRef))
205+
"creating index directory: %0", (StringRef))
201206
ERROR(error_write_index_record,none,
202-
"writing index record file: %0", (StringRef))
207+
"writing index record file: %0", (StringRef))
203208
ERROR(error_index_failed_status_check,none,
204-
"failed file status check: %0", (StringRef))
209+
"failed file status check: %0", (StringRef))
205210
ERROR(error_index_inputs_more_than_outputs,none,
206-
"index output filenames do not match input source files", ())
211+
"index output filenames do not match input source files", ())
207212

208213
ERROR(error_wrong_number_of_arguments,none,
209-
"wrong number of '%0' arguments (expected %1, got %2)", (StringRef, int, int))
214+
"wrong number of '%0' arguments (expected %1, got %2)",
215+
(StringRef, int, int))
210216

211217
ERROR(error_formatting_multiple_file_ranges,none,
212-
"file ranges don't support multiple input files", ())
218+
"file ranges don't support multiple input files", ())
213219

214220
ERROR(error_formatting_invalid_range,none,
215-
"file range is invalid", ())
221+
"file range is invalid", ())
216222

217223
WARNING(stats_disabled,none,
218-
"compiler was not built with support for collecting statistics", ())
224+
"compiler was not built with support for collecting statistics", ())
219225

220226
WARNING(tbd_only_supported_in_whole_module,none,
221-
"TBD generation is only supported when the whole module can be seen", ())
227+
"TBD generation is only supported when the whole module can be seen",
228+
())
222229

223230
ERROR(symbol_in_tbd_not_in_ir,none,
224231
"symbol '%0' (%1) is in TBD file, but not in generated IR",
@@ -232,12 +239,12 @@ ERROR(tbd_validation_failure,none,
232239
"add -Xfrontend -validate-tbd-against-ir=none to squash the errors", ())
233240

234241
ERROR(redundant_prefix_compilation_flag,none,
235-
"invalid argument '-D%0'; did you provide a redundant '-D' in your build settings?",
236-
(StringRef))
242+
"invalid argument '-D%0'; did you provide a redundant '-D' in your "
243+
"build settings?", (StringRef))
237244

238245
ERROR(invalid_conditional_compilation_flag,none,
239-
"conditional compilation flags must be valid Swift identifiers (rather than '%0')",
240-
(StringRef))
246+
"conditional compilation flags must be valid Swift identifiers "
247+
"(rather than '%0')", (StringRef))
241248

242249
WARNING(cannot_assign_value_to_conditional_compilation_flag,none,
243250
"conditional compilation flags do not have values in Swift; they are "

0 commit comments

Comments
 (0)