]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticFrontendKinds.td
Copy head to stable/9 as part of 9.0-RELEASE release cycle.
[FreeBSD/stable/9.git] / contrib / llvm / tools / clang / include / clang / Basic / DiagnosticFrontendKinds.td
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
10 let Component = "Frontend" in {
11
12 def err_fe_error_opening : Error<"error opening '%0': %1">;
13 def err_fe_error_reading : Error<"error reading '%0'">;
14 def err_fe_error_reading_stdin : Error<"error reading stdin">;
15 def err_fe_error_backend : Error<"error in backend: %0">, DefaultFatal;
16 def err_fe_invalid_ast_file : Error<"invalid AST file: '%0'">, DefaultFatal;
17 def err_fe_invalid_ast_action : Error<"invalid action for AST input">,
18                                       DefaultFatal;
19 // Error generated by the backend.
20 def err_fe_inline_asm : Error<"%0">, CatInlineAsm;
21 def note_fe_inline_asm_here : Note<"instantiated into assembly here">;
22
23
24
25 def err_fe_invalid_code_complete_file : Error<
26     "cannot locate code-completion file %0">, DefaultFatal;
27 def err_fe_stdout_binary : Error<"unable to change standard output to binary">,
28   DefaultFatal;
29 def err_fe_stderr_binary : Error<"unable to change standard error to binary">,
30   DefaultFatal;
31 def err_fe_dependency_file_requires_MT : Error<
32     "-dependency-file requires at least one -MT or -MQ option">;
33 def err_fe_incompatible_options : Error<
34     "'%0' cannot be used with '%1'">, DefaultFatal;
35 def err_fe_no_fixit_and_codegen : Error<
36     "FIX-ITs cannot be applied when generating code">;
37 def err_fe_unable_to_find_fixit_file : Error<
38     "FIX-IT could not find file '%0'">;
39 def err_fe_invalid_plugin_name : Error<
40     "unable to find plugin '%0'">;
41 def err_fe_expected_compiler_job : Error<
42     "unable to handle compilation, expected exactly one compiler job in '%0'">;
43 def err_fe_expected_clang_command : Error<
44     "expected a clang compiler command">;
45 def err_fe_remap_missing_to_file : Error<
46     "could not remap file '%0' to the contents of file '%1'">, DefaultFatal;
47 def err_fe_remap_missing_from_file : Error<
48     "could not remap from missing file '%0'">, DefaultFatal;
49 def err_fe_unable_to_load_pch : Error<
50     "unable to load PCH file">;
51 def err_fe_unable_to_load_plugin : Error<
52     "unable to load plugin '%0': '%1'">;
53 def err_fe_unable_to_create_target : Error<
54     "unable to create target: '%0'">;
55 def err_fe_unable_to_interface_with_target : Error<
56     "unable to interface with target machine">;
57 def err_fe_unable_to_read_pch_file : Error<
58     "unable to read PCH file: '%0'">;
59 def err_fe_not_a_pch_file : Error<
60     "input is not a PCH file: '%0'">;
61 def err_fe_pch_malformed : Error<
62     "malformed or corrupted PCH file: '%0'">, DefaultFatal;
63 def err_fe_pch_malformed_block : Error<
64     "malformed block record in PCH file: '%0'">, DefaultFatal;
65 def err_fe_pch_error_at_end_block : Error<
66     "error at end of module block in PCH file: '%0'">, DefaultFatal;
67 def err_fe_pch_file_modified : Error<
68     "file '%0' has been modified since the precompiled header was built">,
69     DefaultFatal;
70 def err_fe_unable_to_open_output : Error<
71     "unable to open output file '%0': '%1'">;
72 def err_fe_unable_to_rename_temp : Error<
73     "unable to rename temporary '%0' to output file '%1': '%2'">;
74 def err_fe_unable_to_open_logfile : Error<
75     "unable to open logfile file '%0': '%1'">;
76 def err_fe_pth_file_has_no_source_header : Error<
77     "PTH file '%0' does not designate an original source header file for -include-pth">;
78 def warn_fe_macro_contains_embedded_newline : Warning<
79     "macro '%0' contains embedded newline, text after the newline is ignored.">;
80 def warn_fe_cc_print_header_failure : Warning<
81     "unable to open CC_PRINT_HEADERS file: %0 (using stderr)">;
82 def warn_fe_cc_log_diagnostics_failure : Warning<
83     "unable to open CC_LOG_DIAGNOSTICS file: %0 (using stderr)">;
84
85 def err_verify_missing_start : Error<
86     "cannot find start ('{{') of expected %0">;
87 def err_verify_missing_end : Error<
88     "cannot find end ('}}') of expected %0">;
89 def err_verify_invalid_content : Error<
90     "invalid expected %0: %1">;
91 def err_verify_inconsistent_diags : Error<
92     "'%0' diagnostics %select{expected|seen}1 but not %select{seen|expected}1: "
93     "%2">;
94
95 def note_fixit_applied : Note<"FIX-IT applied suggested code changes">;
96 def note_fixit_in_macro : Note<
97     "FIX-IT unable to apply suggested code changes in a macro">;
98 def note_fixit_failed : Note<
99     "FIX-IT unable to apply suggested code changes">;
100 def note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">;
101 def note_fixit_main_file_unchanged : Note<
102     "main file unchanged">;
103 def warn_fixit_no_changes : Note<
104     "FIX-IT detected errors it could not fix; no output will be generated">;
105
106 def err_fe_invoking : Error<"error invoking%0: %1">, DefaultFatal;
107
108 // PCH reader
109 def err_relocatable_without_isysroot : Error<
110     "must specify system root with -isysroot when building a relocatable "
111     "PCH file">;
112 def warn_pch_target_triple : Error<
113     "PCH file was compiled for the target '%0' but the current translation "
114     "unit is being compiled for target '%1'">;
115 def warn_pch_c99 : Error<
116     "C99 support was %select{disabled|enabled}0 in PCH file but is "
117     "currently %select{disabled|enabled}1">;
118 def warn_pch_c1x : Error<
119     "C1X support was %select{disabled|enabled}0 in PCH file but is "
120     "currently %select{disabled|enabled}1">;
121 def warn_pch_cplusplus : Error<
122     "C++ support was %select{disabled|enabled}0 in PCH file but is "
123     "currently %select{disabled|enabled}1">;
124 def warn_pch_cplusplus0x : Error<
125     "C++0x support was %select{disabled|enabled}0 in PCH file but is "
126     "currently %select{disabled|enabled}1">;
127 def warn_pch_objective_c : Error<
128     "Objective-C support was %select{disabled|enabled}0 in PCH file but is "
129     "currently %select{disabled|enabled}1">;
130 def warn_pch_objective_c2 : Error<
131     "Objective-C 2.0 support was %select{disabled|enabled}0 in PCH file but "
132     "is currently %select{disabled|enabled}1">;
133 def warn_pch_nonfragile_abi : Error<
134     "PCH file was compiled with the %select{32-bit|non-fragile}0 Objective-C "
135     "ABI but the %select{32-bit|non-fragile}1 Objective-C ABI is selected">;
136 def warn_pch_nonfragile_abi2 : Error<
137     "PCH file was compiled with the %select{32-bit|enhanced non-fragile}0 "
138     "Objective-C ABI but the %select{32-bit|enhanced non-fragile}1 "
139     "Objective-C ABI is selected">;
140 def warn_pch_auto_ref_count : Error<
141     "PCH file was compiled %select{without|with} automated reference counting,"
142     "which is currently %select{disabled|enabled}">;
143 def warn_pch_apple_kext : Error<
144     "PCH file was compiled %select{with|without}0 support for Apple's kernel "
145     "extensions ABI but it is currently %select{disabled|enabled}1">;
146 def warn_pch_objc_auto_properties : Error<
147     "PCH file was compiled %select{with|without}0 support for auto-synthesized "
148     "@properties but it is currently %select{disabled|enabled}1">;
149 def warn_pch_no_constant_cfstrings : Error<
150     "Objctive-C NSstring generation support was %select{disabled|enabled}0 "
151     "in PCH file but currently %select{disabled|enabled}1">; 
152 def warn_pch_extensions : Error<
153     "extensions were %select{enabled|disabled}0 in PCH file but are "
154     "currently %select{enabled|disabled}1">;
155 def warn_pch_gnu_extensions : Error<
156     "GNU extensions were %select{disabled|enabled}0 in PCH file but are "
157     "currently %select{disabled|enabled}1">;
158 def warn_pch_gnu_keywords : Error<
159     "GNU keywords were %select{disabled|enabled}0 in PCH file but are "
160     "currently %select{disabled|enabled}1">;
161 def warn_pch_microsoft_extensions : Error<
162     "Microsoft extensions were %select{disabled|enabled}0 in PCH file but are "
163     "currently %select{disabled|enabled}1">;
164 def warn_pch_ms_bitfields : Error<
165     "Microsoft-compatible structure layout was %select{disabled|enabled}0 in "
166     "PCH file but is currently %select{disabled|enabled}1">;
167 def warn_pch_heinous_extensions : Error<
168     "heinous extensions were %select{disabled|enabled}0 in PCH file but are "
169     "currently %select{disabled|enabled}1">;
170 def warn_pch_lax_vector_conversions : Error<
171     "lax vector conversions were %select{disabled|enabled}0 in PCH file but "
172     "are currently %select{disabled|enabled}1">;
173 def warn_pch_altivec : Error<
174     "AltiVec initializers were %select{disabled|enabled}0 in PCH file but "
175     "are currently %select{disabled|enabled}1">;
176 def warn_pch_opencl : Error<
177     "OpenCL language extensions were %select{disabled|enabled}0 in PCH file "
178     "but are currently %select{disabled|enabled}1">;
179 def warn_pch_cuda : Error<
180     "CUDA language extensions were %select{disabled|enabled}0 in PCH file "
181     "but are currently %select{disabled|enabled}1">;
182 def warn_pch_elide_constructors : Error<
183     "Elidable copy constructors were %select{disabled|enabled}0 in PCH file "
184     "but are currently %select{disabled|enabled}1">;
185 def warn_pch_exceptions : Error<
186     "exceptions were %select{disabled|enabled}0 in PCH file but "
187     "are currently %select{disabled|enabled}1">;
188 def warn_pch_objc_exceptions : Error<
189     "Objective-C exceptions were %select{disabled|enabled}0 in PCH file but "
190     "are currently %select{disabled|enabled}1">;
191 def warn_pch_cxx_exceptions : Error<
192     "C++ exceptions were %select{disabled|enabled}0 in PCH file but "
193     "are currently %select{disabled|enabled}1">;
194 def warn_pch_sjlj_exceptions : Error<
195     "sjlj-exceptions were %select{disabled|enabled}0 in PCH file but "
196     "are currently %select{disabled|enabled}1">;
197 def warn_pch_objc_runtime : Error<
198     "PCH file was compiled with the %select{NeXT|GNU}0 runtime but the "
199     "%select{NeXT|GNU}1 runtime is selected">;
200 def warn_pch_freestanding : Error<
201     "PCH file was compiled with a %select{hosted|freestanding}0  "
202     "implementation but a %select{hosted|freestanding}1 implementation "
203     "is selected">;
204 def warn_pch_builtins : Error<
205     "PCH file was compiled with builtins %select{enabled|disabled}0 but "
206     "builtins are currently %select{enabled|disabled}1">;
207 def warn_pch_thread_safe_statics : Error<
208     "PCH file was compiled %select{without|with}0 thread-safe statics but "
209     "thread-safe statics are currently %select{disabled|enabled}1">;
210 def warn_pch_posix_threads : Error<
211     "PCH file was compiled %select{without|with}0 POSIX thread support but "
212     "POSIX threads are currently %select{disabled|enabled}1">;
213 def warn_pch_stack_protector : Error<
214     "stack protector was %select{off|on|required}0 in PCH file but "
215     "is currently %select{off|on|required}1">;
216 def warn_pch_blocks : Error<
217     "blocks were %select{disabled|enabled}0 in PCH file but "
218     "are currently %select{disabled|enabled}1">;
219 def warn_pch_math_errno : Error<
220     "math functions %select{do not respect|respect}0 'errno' in PCH "
221     "file but they are currently set to %select{not respect|respect}1 "
222     "'errno'">;
223 def warn_pch_optimize : Error<
224     "the macro '__OPTIMIZE__' was %select{not defined|defined}0 in "
225     "the PCH file but is currently %select{undefined|defined}1">;
226 def warn_pch_optimize_size : Error<
227     "the macro '__OPTIMIZE_SIZE__' was %select{not defined|defined}0 in "
228     "the PCH file but is currently %select{undefined|defined}1">;
229 def warn_pch_static : Error<
230     "the PCH file was compiled %select{dynamic|static}0 but the "
231     "current translation unit is being compiled as %select{dynamic|static}1">;
232 def warn_pch_pic_level : Error<
233     "PCH file was compiled with PIC level %0, but the current translation "
234     "unit will be compiled with PIC level %1">;
235 def warn_pch_gnu_inline : Error<
236     "PCH file was compiled with %select{C99|GNU|}0 inline semantics but "
237     "%select{C99|GNU}1 inline semantics are currently selected">;
238 def warn_pch_no_inline : Error<
239     "the macro '__NO_INLINE__' was %select{not defined|defined}0 in "
240     "the PCH file but is currently %select{undefined|defined}1">;
241 def warn_pch_deprecated : Error<
242     "the macro '__DEPRECATED' was %select{not defined|defined}0 in "
243     "the PCH file but is currently %select{undefined|defined}1">;
244 def warn_pch_gc_mode : Error<
245     "the PCH file was built with %select{no||hybrid}0 garbage collection but "
246     "the current translation unit will compiled with %select{no||hybrid}1 "
247     "garbage collection">;
248 def warn_pch_version_too_old : Error<
249     "PCH file uses an older PCH format that is no longer supported">;
250 def warn_pch_version_too_new : Error<
251     "PCH file uses a newer PCH format that cannot be read">;
252 def warn_pch_different_branch : Error<
253     "PCH file built from a different branch (%0) than the compiler (%1)">;
254 def warn_cmdline_conflicting_macro_def : Error<
255     "definition of the macro '%0' conflicts with the definition used to "
256     "build the precompiled header">;
257 def note_pch_macro_defined_as : Note<
258     "definition of macro '%0' in the precompiled header">;
259 def warn_cmdline_missing_macro_defs : Warning<
260     "macro definitions used to build the precompiled header are missing">;
261 def note_using_macro_def_from_pch : Note<
262     "using this macro definition from precompiled header">;
263 def warn_macro_name_used_in_pch : Error<
264     "definition of macro %0 conflicts with an identifier used in the "
265     "precompiled header">;
266 def warn_pch_compiler_options_mismatch : Error<
267     "compiler options used when building the precompiled header differ from "
268     "the options used when using the precompiled header">;
269 def warn_pch_access_control : Error<
270     "C++ access control was %select{disabled|enabled}0 in the PCH file but "
271     "is currently %select{disabled|enabled}1">;
272 def warn_pch_char_signed : Error<
273     "char was %select{unsigned|signed}0 in the PCH file but "
274     "is currently %select{unsigned|signed}1">;
275 def warn_pch_short_wchar : Error<
276     "-fshort-wchar was %select{disabled|enabled}0 in the PCH file but "
277     "is currently %select{disabled|enabled}1">;
278 def warn_pch_short_enums : Error<
279     "-fshort-enums was %select{disabled|enabled}0 in the PCH file but "
280     "is currently %select{disabled|enabled}1">;
281
282 def err_not_a_pch_file : Error<
283     "'%0' does not appear to be a precompiled header file">, DefaultFatal;
284 def warn_unknown_warning_option : Warning<
285     "unknown warning option '%0'">,
286     InGroup<DiagGroup<"unknown-warning-option"> >;
287 def warn_unknown_negative_warning_option : Warning<
288     "unknown warning option '%0'">,
289     InGroup<DiagGroup<"unknown-warning-option"> >, DefaultIgnore;
290 def warn_unknown_warning_specifier : Warning<
291     "unknown %0 warning specifier: '%1'">,
292     InGroup<DiagGroup<"unknown-warning-option"> >;
293
294 def warn_unkwown_analyzer_checker : Warning<
295     "no analyzer checkers are associated with '%0'">;
296 }