1 //==--- DiagnosticFrontendKinds.td - frontend diagnostics -----------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 class BackendInfo : CatBackend, ShowInSystemHeader;
12 let Component = "Frontend" in {
14 def err_fe_error_opening : Error<"error opening '%0': %1">;
15 def err_fe_error_reading : Error<"error reading '%0'">;
16 def err_fe_error_reading_stdin : Error<"error reading stdin: %0">;
17 def err_fe_error_backend : Error<"error in backend: %0">, DefaultFatal;
19 def err_fe_inline_asm : Error<"%0">, CatInlineAsm;
20 def warn_fe_inline_asm : Warning<"%0">, CatInlineAsm, InGroup<BackendInlineAsm>;
21 def note_fe_inline_asm : Note<"%0">, CatInlineAsm;
22 def note_fe_inline_asm_here : Note<"instantiated into assembly here">;
23 def err_fe_cannot_link_module : Error<"cannot link module '%0': %1">,
26 def warn_fe_frame_larger_than : Warning<"stack frame size of %0 bytes in %q1">,
27 BackendInfo, InGroup<BackendFrameLargerThanEQ>;
28 def warn_fe_backend_frame_larger_than: Warning<"%0">,
29 BackendInfo, InGroup<BackendFrameLargerThanEQ>;
30 def err_fe_backend_frame_larger_than: Error<"%0">, BackendInfo;
31 def note_fe_backend_frame_larger_than: Note<"%0">, BackendInfo;
33 def warn_fe_backend_plugin: Warning<"%0">, BackendInfo, InGroup<BackendPlugin>;
34 def err_fe_backend_plugin: Error<"%0">, BackendInfo;
35 def remark_fe_backend_plugin: Remark<"%0">, BackendInfo, InGroup<RemarkBackendPlugin>;
36 def note_fe_backend_plugin: Note<"%0">, BackendInfo;
38 def warn_fe_override_module : Warning<
39 "overriding the module target triple with %0">,
40 InGroup<DiagGroup<"override-module">>;
42 def remark_fe_backend_optimization_remark : Remark<"%0">, BackendInfo,
43 InGroup<BackendOptimizationRemark>;
44 def remark_fe_backend_optimization_remark_missed : Remark<"%0">, BackendInfo,
45 InGroup<BackendOptimizationRemarkMissed>;
46 def remark_fe_backend_optimization_remark_analysis : Remark<"%0">, BackendInfo,
47 InGroup<BackendOptimizationRemarkAnalysis>;
48 def remark_fe_backend_optimization_remark_analysis_fpcommute : Remark<"%0; "
49 "allow reordering by specifying '#pragma clang loop vectorize(enable)' "
50 "before the loop or by providing the compiler option '-ffast-math'.">,
51 BackendInfo, InGroup<BackendOptimizationRemarkAnalysis>;
52 def remark_fe_backend_optimization_remark_analysis_aliasing : Remark<"%0; "
53 "allow reordering by specifying '#pragma clang loop vectorize(enable)' "
54 "before the loop. If the arrays will always be independent specify "
55 "'#pragma clang loop vectorize(assume_safety)' before the loop or provide "
56 "the '__restrict__' qualifier with the independent array arguments. "
57 "Erroneous results will occur if these options are incorrectly applied!">,
58 BackendInfo, InGroup<BackendOptimizationRemarkAnalysis>;
59 def warn_fe_backend_optimization_failure : Warning<"%0">, BackendInfo,
60 InGroup<BackendOptimizationFailure>, DefaultWarn;
61 def note_fe_backend_invalid_loc : Note<"could "
62 "not determine the original source location for %0:%1:%2">, BackendInfo;
64 def err_fe_backend_unsupported : Error<"%0">, BackendInfo;
66 def remark_sanitize_address_insert_extra_padding_accepted : Remark<
67 "-fsanitize-address-field-padding applied to %0">, ShowInSystemHeader,
68 InGroup<SanitizeAddressRemarks>;
69 def remark_sanitize_address_insert_extra_padding_rejected : Remark<
70 "-fsanitize-address-field-padding ignored for %0 because it "
71 "%select{is not C++|is packed|is a union|is trivially copyable|"
72 "has trivial destructor|is standard layout|is in a blacklisted file|"
73 "is blacklisted}1">, ShowInSystemHeader,
74 InGroup<SanitizeAddressRemarks>;
76 def err_fe_invalid_code_complete_file : Error<
77 "cannot locate code-completion file %0">, DefaultFatal;
78 def err_fe_stdout_binary : Error<"unable to change standard output to binary">,
80 def err_fe_dependency_file_requires_MT : Error<
81 "-dependency-file requires at least one -MT or -MQ option">;
82 def err_fe_invalid_plugin_name : Error<
83 "unable to find plugin '%0'">;
84 def err_fe_expected_compiler_job : Error<
85 "unable to handle compilation, expected exactly one compiler job in '%0'">;
86 def err_fe_expected_clang_command : Error<
87 "expected a clang compiler command">;
88 def err_fe_remap_missing_to_file : Error<
89 "could not remap file '%0' to the contents of file '%1'">, DefaultFatal;
90 def err_fe_remap_missing_from_file : Error<
91 "could not remap from missing file '%0'">, DefaultFatal;
92 def err_fe_unable_to_load_pch : Error<
93 "unable to load PCH file">;
94 def err_fe_unable_to_load_plugin : Error<
95 "unable to load plugin '%0': '%1'">;
96 def err_fe_unable_to_create_target : Error<
97 "unable to create target: '%0'">;
98 def err_fe_unable_to_interface_with_target : Error<
99 "unable to interface with target machine">;
100 def err_fe_unable_to_open_output : Error<
101 "unable to open output file '%0': '%1'">;
102 def err_fe_pth_file_has_no_source_header : Error<
103 "PTH file '%0' does not designate an original source header file for -include-pth">;
104 def warn_fe_macro_contains_embedded_newline : Warning<
105 "macro '%0' contains embedded newline; text after the newline is ignored">;
106 def warn_fe_cc_print_header_failure : Warning<
107 "unable to open CC_PRINT_HEADERS file: %0 (using stderr)">;
108 def warn_fe_cc_log_diagnostics_failure : Warning<
109 "unable to open CC_LOG_DIAGNOSTICS file: %0 (using stderr)">;
110 def warn_fe_unable_to_open_stats_file : Warning<
111 "unable to open statistics output file '%0': '%1'">,
112 InGroup<DiagGroup<"unable-to-open-stats-file">>;
113 def err_fe_no_pch_in_dir : Error<
114 "no suitable precompiled header file found in directory '%0'">;
115 def err_fe_action_not_available : Error<
116 "action %0 not compiled in">;
117 def err_fe_invalid_alignment : Error<
118 "invalid value '%1' in '%0'; alignment must be a power of 2">;
120 def warn_fe_serialized_diag_merge_failure : Warning<
121 "unable to merge a subprocess's serialized diagnostics">,
122 InGroup<SerializedDiagnostics>;
123 def warn_fe_serialized_diag_failure : Warning<
124 "unable to open file %0 for serializing diagnostics (%1)">,
125 InGroup<SerializedDiagnostics>;
127 def err_verify_missing_line : Error<
128 "missing or invalid line number following '@' in expected %0">;
129 def err_verify_missing_file : Error<
130 "file '%0' could not be located in expected %1">;
131 def err_verify_invalid_range : Error<
132 "invalid range following '-' in expected %0">;
133 def err_verify_missing_start : Error<
134 "cannot find start ('{{') of expected %0">;
135 def err_verify_missing_end : Error<
136 "cannot find end ('}}') of expected %0">;
137 def err_verify_invalid_content : Error<
138 "invalid expected %0: %1">;
139 def err_verify_missing_regex : Error<
140 "cannot find start of regex ('{{') in %0">;
141 def err_verify_inconsistent_diags : Error<
142 "'%0' diagnostics %select{expected|seen}1 but not %select{seen|expected}1: "
144 def err_verify_invalid_no_diags : Error<
145 "%select{expected|'expected-no-diagnostics'}0 directive cannot follow "
146 "%select{'expected-no-diagnostics' directive|other expected directives}0">;
147 def err_verify_no_directives : Error<
148 "no expected directives found: consider use of 'expected-no-diagnostics'">;
150 def note_fixit_applied : Note<"FIX-IT applied suggested code changes">;
151 def note_fixit_in_macro : Note<
152 "FIX-IT unable to apply suggested code changes in a macro">;
153 def note_fixit_failed : Note<
154 "FIX-IT unable to apply suggested code changes">;
155 def note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">;
156 def warn_fixit_no_changes : Note<
157 "FIX-IT detected errors it could not fix; no output will be generated">;
160 def err_relocatable_without_isysroot : Error<
161 "must specify system root with -isysroot when building a relocatable "
164 def warn_unknown_diag_option : Warning<
165 "unknown %select{warning|remark}0 option '%1'%select{|; did you mean '%3'?}2">,
166 InGroup<UnknownWarningOption>;
167 def warn_unknown_warning_specifier : Warning<
168 "unknown %0 warning specifier: '%1'">,
169 InGroup<UnknownWarningOption>;
171 def err_unknown_analyzer_checker : Error<
172 "no analyzer checkers are associated with '%0'">;
173 def note_suggest_disabling_all_checkers : Note<
174 "use -analyzer-disable-all-checks to disable all static analyzer checkers">;
176 def warn_incompatible_analyzer_plugin_api : Warning<
177 "checker plugin '%0' is not compatible with this version of the analyzer">,
178 InGroup<DiagGroup<"analyzer-incompatible-plugin"> >;
179 def note_incompatible_analyzer_plugin_api : Note<
180 "current API version is '%0', but plugin was compiled with version '%1'">;
182 def err_module_interface_requires_modules_ts : Error<
183 "module interface compilation requires '-fmodules-ts'">;
184 def warn_module_config_mismatch : Warning<
185 "module file %0 cannot be loaded due to a configuration mismatch with the current "
186 "compilation">, InGroup<DiagGroup<"module-file-config-mismatch">>, DefaultError;
187 def err_module_map_not_found : Error<"module map file '%0' not found">,
189 def err_missing_module_name : Error<
190 "no module name provided; specify one with -fmodule-name=">,
192 def err_missing_module : Error<
193 "no module named '%0' declared in module map file '%1'">, DefaultFatal;
194 def err_no_submodule : Error<"no submodule named %0 in module '%1'">;
195 def err_no_submodule_suggest : Error<
196 "no submodule named %0 in module '%1'; did you mean '%2'?">;
197 def warn_missing_submodule : Warning<"missing submodule '%0'">,
198 InGroup<IncompleteUmbrella>;
199 def note_module_import_here : Note<"module imported here">;
200 def err_module_cannot_create_includes : Error<
201 "cannot create includes file for module %0: %1">;
202 def warn_module_config_macro_undef : Warning<
203 "%select{definition|#undef}0 of configuration macro '%1' has no effect on "
204 "the import of '%2'; pass '%select{-D%1=...|-U%1}0' on the command line "
205 "to configure the module">,
206 InGroup<ConfigMacros>;
207 def note_module_def_undef_here : Note<
208 "macro was %select{defined|#undef'd}0 here">;
209 def remark_module_build : Remark<"building module '%0' as '%1'">,
210 InGroup<ModuleBuild>;
211 def remark_module_build_done : Remark<"finished building module '%0'">,
212 InGroup<ModuleBuild>;
213 def err_modules_embed_file_not_found :
214 Error<"file '%0' specified by '-fmodules-embed-file=' not found">,
217 def err_test_module_file_extension_version : Error<
218 "test module file extension '%0' has different version (%1.%2) than expected "
221 def err_missing_vfs_overlay_file : Error<
222 "virtual filesystem overlay file '%0' not found">, DefaultFatal;
223 def err_invalid_vfs_overlay : Error<
224 "invalid virtual filesystem overlay file '%0'">, DefaultFatal;
226 def warn_option_invalid_ocl_version : Warning<
227 "OpenCL version %0 does not support the option '%1'">, InGroup<Deprecated>;