DiagnosticFrontendKinds.td revision 321369
1256694Snp//==--- DiagnosticFrontendKinds.td - frontend diagnostics -----------------===//
2256694Snp//
3256694Snp//                     The LLVM Compiler Infrastructure
4256694Snp//
5256694Snp// This file is distributed under the University of Illinois Open Source
6256694Snp// License. See LICENSE.TXT for details.
7256694Snp//
8256694Snp//===----------------------------------------------------------------------===//
9256694Snp
10256694Snpclass BackendInfo : CatBackend, ShowInSystemHeader;
11256694Snp
12256694Snplet Component = "Frontend" in {
13256694Snp
14256694Snpdef err_fe_error_opening : Error<"error opening '%0': %1">;
15256694Snpdef err_fe_error_reading : Error<"error reading '%0'">;
16256694Snpdef err_fe_error_reading_stdin : Error<"error reading stdin: %0">;
17256694Snpdef err_fe_error_backend : Error<"error in backend: %0">, DefaultFatal;
18256694Snp
19256694Snpdef err_fe_inline_asm : Error<"%0">, CatInlineAsm;
20256694Snpdef warn_fe_inline_asm : Warning<"%0">, CatInlineAsm, InGroup<BackendInlineAsm>;
21256694Snpdef note_fe_inline_asm : Note<"%0">, CatInlineAsm;
22256694Snpdef note_fe_inline_asm_here : Note<"instantiated into assembly here">;
23256694Snpdef err_fe_cannot_link_module : Error<"cannot link module '%0': %1">,
24256694Snp  DefaultFatal;
25256694Snp
26256694Snpdef warn_fe_frame_larger_than : Warning<"stack frame size of %0 bytes in %q1">,
27256694Snp    BackendInfo, InGroup<BackendFrameLargerThanEQ>;
28256694Snpdef warn_fe_backend_frame_larger_than: Warning<"%0">,
29256694Snp    BackendInfo, InGroup<BackendFrameLargerThanEQ>;
30256694Snpdef err_fe_backend_frame_larger_than: Error<"%0">, BackendInfo;
31256694Snpdef note_fe_backend_frame_larger_than: Note<"%0">, BackendInfo;
32256694Snp
33256694Snpdef warn_fe_backend_plugin: Warning<"%0">, BackendInfo, InGroup<BackendPlugin>;
34256694Snpdef err_fe_backend_plugin: Error<"%0">, BackendInfo;
35256694Snpdef remark_fe_backend_plugin: Remark<"%0">, BackendInfo, InGroup<RemarkBackendPlugin>;
36256694Snpdef note_fe_backend_plugin: Note<"%0">, BackendInfo;
37256694Snp
38256694Snpdef warn_fe_override_module : Warning<
39256694Snp    "overriding the module target triple with %0">, 
40256694Snp    InGroup<DiagGroup<"override-module">>;
41256694Snp
42256694Snpdef remark_fe_backend_optimization_remark : Remark<"%0">, BackendInfo,
43256694Snp    InGroup<BackendOptimizationRemark>;
44256694Snpdef remark_fe_backend_optimization_remark_missed : Remark<"%0">, BackendInfo,
45256694Snp    InGroup<BackendOptimizationRemarkMissed>;
46256694Snpdef remark_fe_backend_optimization_remark_analysis : Remark<"%0">, BackendInfo,
47256694Snp    InGroup<BackendOptimizationRemarkAnalysis>;
48256694Snpdef remark_fe_backend_optimization_remark_analysis_fpcommute : Remark<"%0; "
49256694Snp    "allow reordering by specifying '#pragma clang loop vectorize(enable)' "
50256694Snp    "before the loop or by providing the compiler option '-ffast-math'.">,
51256694Snp    BackendInfo, InGroup<BackendOptimizationRemarkAnalysis>;
52256694Snpdef remark_fe_backend_optimization_remark_analysis_aliasing : Remark<"%0; "
53309378Sjhb    "allow reordering by specifying '#pragma clang loop vectorize(enable)' "
54256694Snp    "before the loop. If the arrays will always be independent specify "
55256694Snp    "'#pragma clang loop vectorize(assume_safety)' before the loop or provide "
56256694Snp    "the '__restrict__' qualifier with the independent array arguments. "
57256694Snp    "Erroneous results will occur if these options are incorrectly applied!">,
58256694Snp    BackendInfo, InGroup<BackendOptimizationRemarkAnalysis>;
59256694Snpdef warn_fe_backend_optimization_failure : Warning<"%0">, BackendInfo,
60256694Snp    InGroup<BackendOptimizationFailure>, DefaultWarn;
61256694Snpdef note_fe_backend_invalid_loc : Note<"could "
62256694Snp  "not determine the original source location for %0:%1:%2">, BackendInfo;
63256694Snp
64256694Snpdef err_fe_backend_unsupported : Error<"%0">, BackendInfo;
65256694Snp
66256694Snpdef remark_sanitize_address_insert_extra_padding_accepted : Remark<
67256694Snp    "-fsanitize-address-field-padding applied to %0">, ShowInSystemHeader,
68256694Snp    InGroup<SanitizeAddressRemarks>;
69256694Snpdef remark_sanitize_address_insert_extra_padding_rejected : Remark<
70256694Snp    "-fsanitize-address-field-padding ignored for %0 because it "
71256694Snp    "%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>;
75
76def err_fe_invalid_code_complete_file : Error<
77    "cannot locate code-completion file %0">, DefaultFatal;
78def err_fe_stdout_binary : Error<"unable to change standard output to binary">,
79  DefaultFatal;
80def err_fe_dependency_file_requires_MT : Error<
81    "-dependency-file requires at least one -MT or -MQ option">;
82def err_fe_invalid_plugin_name : Error<
83    "unable to find plugin '%0'">;
84def err_fe_expected_compiler_job : Error<
85    "unable to handle compilation, expected exactly one compiler job in '%0'">;
86def err_fe_expected_clang_command : Error<
87    "expected a clang compiler command">;
88def err_fe_remap_missing_to_file : Error<
89    "could not remap file '%0' to the contents of file '%1'">, DefaultFatal;
90def err_fe_remap_missing_from_file : Error<
91    "could not remap from missing file '%0'">, DefaultFatal;
92def err_fe_unable_to_load_pch : Error<
93    "unable to load PCH file">;
94def err_fe_unable_to_load_plugin : Error<
95    "unable to load plugin '%0': '%1'">;
96def err_fe_unable_to_create_target : Error<
97    "unable to create target: '%0'">;
98def err_fe_unable_to_interface_with_target : Error<
99    "unable to interface with target machine">;
100def err_fe_unable_to_open_output : Error<
101    "unable to open output file '%0': '%1'">;
102def err_fe_pth_file_has_no_source_header : Error<
103    "PTH file '%0' does not designate an original source header file for -include-pth">;
104def warn_fe_macro_contains_embedded_newline : Warning<
105    "macro '%0' contains embedded newline; text after the newline is ignored">;
106def warn_fe_cc_print_header_failure : Warning<
107    "unable to open CC_PRINT_HEADERS file: %0 (using stderr)">;
108def warn_fe_cc_log_diagnostics_failure : Warning<
109    "unable to open CC_LOG_DIAGNOSTICS file: %0 (using stderr)">;
110def 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">>;
113def err_fe_no_pch_in_dir : Error<
114    "no suitable precompiled header file found in directory '%0'">;
115def err_fe_action_not_available : Error<
116    "action %0 not compiled in">;
117def err_fe_invalid_alignment : Error<
118    "invalid value '%1' in '%0'; alignment must be a power of 2">;
119
120def warn_fe_serialized_diag_merge_failure : Warning<
121    "unable to merge a subprocess's serialized diagnostics">,
122    InGroup<SerializedDiagnostics>;
123def warn_fe_serialized_diag_failure : Warning<
124    "unable to open file %0 for serializing diagnostics (%1)">,
125    InGroup<SerializedDiagnostics>;
126
127def err_verify_missing_line : Error<
128    "missing or invalid line number following '@' in expected %0">;
129def err_verify_missing_file : Error<
130    "file '%0' could not be located in expected %1">;
131def err_verify_invalid_range : Error<
132    "invalid range following '-' in expected %0">;
133def err_verify_missing_start : Error<
134    "cannot find start ('{{') of expected %0">;
135def err_verify_missing_end : Error<
136    "cannot find end ('}}') of expected %0">;
137def err_verify_invalid_content : Error<
138    "invalid expected %0: %1">;
139def err_verify_missing_regex : Error<
140    "cannot find start of regex ('{{') in %0">;
141def err_verify_inconsistent_diags : Error<
142    "'%0' diagnostics %select{expected|seen}1 but not %select{seen|expected}1: "
143    "%2">;
144def 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">;
147def err_verify_no_directives : Error<
148    "no expected directives found: consider use of 'expected-no-diagnostics'">;
149
150def note_fixit_applied : Note<"FIX-IT applied suggested code changes">;
151def note_fixit_in_macro : Note<
152    "FIX-IT unable to apply suggested code changes in a macro">;
153def note_fixit_failed : Note<
154    "FIX-IT unable to apply suggested code changes">;
155def note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">;
156def warn_fixit_no_changes : Note<
157    "FIX-IT detected errors it could not fix; no output will be generated">;
158
159// PCH reader
160def err_relocatable_without_isysroot : Error<
161    "must specify system root with -isysroot when building a relocatable "
162    "PCH file">;
163
164def warn_unknown_diag_option : Warning<
165    "unknown %select{warning|remark}0 option '%1'%select{|; did you mean '%3'?}2">,
166    InGroup<UnknownWarningOption>;
167def warn_unknown_warning_specifier : Warning<
168    "unknown %0 warning specifier: '%1'">,
169    InGroup<UnknownWarningOption>;
170
171def err_unknown_analyzer_checker : Error<
172    "no analyzer checkers are associated with '%0'">;
173def note_suggest_disabling_all_checkers : Note<
174    "use -analyzer-disable-all-checks to disable all static analyzer checkers">;
175
176def 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"> >;
179def note_incompatible_analyzer_plugin_api : Note<
180    "current API version is '%0', but plugin was compiled with version '%1'">;
181
182def err_module_build_requires_fmodules : Error<
183  "module compilation requires '-fmodules'">;
184def err_module_interface_requires_modules_ts : Error<
185  "module interface compilation requires '-fmodules-ts'">;
186def warn_module_config_mismatch : Warning<
187  "module file %0 cannot be loaded due to a configuration mismatch with the current "
188  "compilation">, InGroup<DiagGroup<"module-file-config-mismatch">>, DefaultError;
189def err_module_map_not_found : Error<"module map file '%0' not found">, 
190  DefaultFatal;
191def err_missing_module_name : Error<
192  "no module name provided; specify one with -fmodule-name=">, 
193  DefaultFatal;
194def err_missing_module : Error<
195  "no module named '%0' declared in module map file '%1'">, DefaultFatal;
196def err_no_submodule : Error<"no submodule named %0 in module '%1'">;
197def err_no_submodule_suggest : Error<
198  "no submodule named %0 in module '%1'; did you mean '%2'?">;
199def warn_missing_submodule : Warning<"missing submodule '%0'">,
200  InGroup<IncompleteUmbrella>;
201def note_module_import_here : Note<"module imported here">;
202def err_module_cannot_create_includes : Error<
203  "cannot create includes file for module %0: %1">;
204def warn_module_config_macro_undef : Warning<
205  "%select{definition|#undef}0 of configuration macro '%1' has no effect on "
206  "the import of '%2'; pass '%select{-D%1=...|-U%1}0' on the command line "
207  "to configure the module">,
208  InGroup<ConfigMacros>;
209def note_module_def_undef_here : Note<
210  "macro was %select{defined|#undef'd}0 here">;
211def remark_module_build : Remark<"building module '%0' as '%1'">,
212  InGroup<ModuleBuild>;
213def remark_module_build_done : Remark<"finished building module '%0'">,
214  InGroup<ModuleBuild>;
215def err_modules_embed_file_not_found :
216  Error<"file '%0' specified by '-fmodules-embed-file=' not found">,
217  DefaultFatal;
218
219def err_test_module_file_extension_version : Error<
220  "test module file extension '%0' has different version (%1.%2) than expected "
221  "(%3.%4)">;
222
223def err_missing_vfs_overlay_file : Error<
224  "virtual filesystem overlay file '%0' not found">, DefaultFatal;
225def err_invalid_vfs_overlay : Error<
226  "invalid virtual filesystem overlay file '%0'">, DefaultFatal;
227
228def warn_option_invalid_ocl_version : Warning<
229  "OpenCL version %0 does not support the option '%1'">, InGroup<Deprecated>;
230}
231