Skip to content

Commit 8d8b1ed

Browse files
committed
Cleanup on driver diagnostics
1 parent 21debbc commit 8d8b1ed

File tree

1 file changed

+34
-30
lines changed

1 file changed

+34
-30
lines changed

include/swift/AST/DiagnosticsDriver.def

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -42,26 +42,27 @@
4242
DIAG(REMARK,ID,Options,Text,Signature)
4343
#endif
4444

45-
WARNING(warning_parallel_execution_not_supported,none,
45+
WARNING(warning_parallel_execution_not_supported, none,
4646
"parallel execution not supported; falling back to serial execution",
4747
())
4848

49-
ERROR(error_unable_to_execute_command,none,
49+
ERROR(error_unable_to_execute_command, none,
5050
"unable to execute command: %0", (StringRef))
51-
ERROR(error_command_signalled_without_signal_number,none,
51+
ERROR(error_command_signalled_without_signal_number, none,
5252
"%0 command failed due to signal (use -v to see invocation)", (StringRef))
53-
ERROR(error_command_signalled,none,
54-
"%0 command failed due to signal %1 (use -v to see invocation)", (StringRef, int))
55-
ERROR(error_command_failed,none,
53+
ERROR(error_command_signalled, none,
54+
"%0 command failed due to signal %1 (use -v to see invocation)",
55+
(StringRef, int))
56+
ERROR(error_command_failed, none,
5657
"%0 command failed with exit code %1 (use -v to see invocation)",
5758
(StringRef, int))
5859

59-
ERROR(error_expected_one_frontend_job,none,
60+
ERROR(error_expected_one_frontend_job, none,
6061
"unable to handle compilation, expected exactly one frontend job", ())
61-
ERROR(error_expected_frontend_command,none,
62+
ERROR(error_expected_frontend_command, none,
6263
"expected a swift frontend command", ())
6364

64-
ERROR(error_cannot_specify__o_for_multiple_outputs,none,
65+
ERROR(error_cannot_specify__o_for_multiple_outputs, none,
6566
"cannot specify -o when generating multiple output files", ())
6667

6768
ERROR(error_static_emit_executable_disallowed,none,
@@ -70,40 +71,40 @@ ERROR(error_static_emit_executable_disallowed,none,
7071
ERROR(error_unable_to_load_output_file_map, none,
7172
"unable to load output file map '%1': %0", (StringRef, StringRef))
7273

73-
ERROR(error_no_output_file_map_specified,none,
74+
ERROR(error_no_output_file_map_specified, none,
7475
"no output file map specified", ())
7576

76-
ERROR(error_unable_to_make_temporary_file,none,
77+
ERROR(error_unable_to_make_temporary_file, none,
7778
"unable to make temporary file: %0", (StringRef))
7879

79-
ERROR(error_no_input_files,none,
80+
ERROR(error_no_input_files, none,
8081
"no input files", ())
8182

82-
ERROR(error_unexpected_input_file,none,
83+
ERROR(error_unexpected_input_file, none,
8384
"unexpected input file: %0", (StringRef))
8485

85-
ERROR(error_unknown_target,none,
86+
ERROR(error_unknown_target, none,
8687
"unknown target '%0'", (StringRef))
8788

88-
ERROR(error_framework_bridging_header,none,
89+
ERROR(error_framework_bridging_header, none,
8990
"using bridging headers with framework targets is unsupported", ())
9091
ERROR(error_bridging_header_module_interface,none,
9192
"using bridging headers with module interfaces is unsupported",
9293
())
9394

94-
ERROR(error_i_mode,none,
95+
ERROR(error_i_mode, none,
9596
"the flag '-i' is no longer required and has been removed; "
9697
"use '%0 input-filename'", (StringRef))
97-
WARNING(warning_unnecessary_repl_mode,none,
98+
WARNING(warning_unnecessary_repl_mode, none,
9899
"unnecessary option '%0'; this is the default for '%1' "
99100
"with no input files", (StringRef, StringRef))
100-
ERROR(error_unsupported_option,none,
101+
ERROR(error_unsupported_option, none,
101102
"option '%0' is not supported by '%1'; did you mean to use '%2'?",
102103
(StringRef, StringRef, StringRef))
103104

104-
WARNING(incremental_requires_output_file_map,none,
105+
WARNING(incremental_requires_output_file_map, none,
105106
"ignoring -incremental (currently requires an output file map)", ())
106-
WARNING(incremental_requires_build_record_entry,none,
107+
WARNING(incremental_requires_build_record_entry, none,
107108
"ignoring -incremental; output file map has no master dependencies "
108109
"entry (\"%0\" under \"\")", (StringRef))
109110

@@ -112,9 +113,9 @@ WARNING(unable_to_open_incremental_comparison_log,none,
112113

113114
ERROR(error_os_minimum_deployment,none,
114115
"Swift requires a minimum deployment target of %0", (StringRef))
115-
ERROR(error_sdk_too_old,none,
116+
ERROR(error_sdk_too_old, none,
116117
"Swift does not support the SDK '%0'", (StringRef))
117-
ERROR(error_ios_maximum_deployment_32,none,
118+
ERROR(error_ios_maximum_deployment_32, none,
118119
"iOS %0 does not support 32-bit programs", (unsigned))
119120

120121
WARNING(warn_arclite_not_found_when_link_objc_runtime,none,
@@ -124,19 +125,19 @@ WARNING(warn_arclite_not_found_when_link_objc_runtime,none,
124125
ERROR(error_two_files_same_name,none,
125126
"filename \"%0\" used twice: '%1' and '%2'",
126127
(StringRef, StringRef, StringRef))
127-
NOTE(note_explain_two_files_same_name,none,
128+
NOTE(note_explain_two_files_same_name, none,
128129
"filenames are used to distinguish private declarations with the same "
129130
"name", ())
130131

131-
WARNING(warn_cannot_stat_input,none,
132+
WARNING(warn_cannot_stat_input, none,
132133
"unable to determine when '%0' was last modified: %1",
133134
(StringRef, StringRef))
134135

135136
WARNING(warn_unable_to_load_dependencies, none,
136137
"unable to load dependencies file \"%0\", disabling incremental mode",
137138
(StringRef))
138139

139-
ERROR(error_input_changed_during_build,none,
140+
ERROR(error_input_changed_during_build, none,
140141
"input file '%0' was modified during the build",
141142
(StringRef))
142143

@@ -150,21 +151,24 @@ ERROR(error_option_not_supported, none,
150151
WARNING(warn_ignore_embed_bitcode, none,
151152
"ignoring -embed-bitcode since no object file is being generated", ())
152153
WARNING(warn_ignore_embed_bitcode_marker, none,
153-
"ignoring -embed-bitcode-marker since no object file is being generated", ())
154+
"ignoring -embed-bitcode-marker since no object file is being "
155+
"generated", ())
154156

155-
WARNING(verify_debug_info_requires_debug_option,none,
157+
WARNING(verify_debug_info_requires_debug_option, none,
156158
"ignoring '-verify-debug-info'; no debug info is being generated", ())
157159

158-
ERROR(error_profile_missing,none,
160+
ERROR(error_profile_missing, none,
159161
"no profdata file exists at '%0'", (StringRef))
160162

161163
WARNING(warn_opt_remark_disabled, none,
162164
"Emission of optimization records has been disabled, because it "
163165
"requires a single compiler invocation: consider enabling the "
164166
"-whole-module-optimization flag", ())
165167

166-
WARNING(warn_ignoring_batch_mode,none,
167-
"ignoring '-enable-batch-mode' because '%0' was also specified", (StringRef))
168+
WARNING(warn_ignoring_batch_mode, none,
169+
"ignoring '-enable-batch-mode' because '%0' was also specified",
170+
(StringRef))
171+
168172
WARNING(warn_ignoring_wmo, none,
169173
"ignoring '-wmo' because '-dump-ast' was also specified", ())
170174

0 commit comments

Comments
 (0)