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