]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticFrontendKinds.td
MFV of r220547, tzdata2011f:
[FreeBSD/FreeBSD.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
83 def err_verify_missing_start : Error<
84     "cannot find start ('{{') of expected %0">;
85 def err_verify_missing_end : Error<
86     "cannot find end ('}}') of expected %0">;
87 def err_verify_invalid_content : Error<
88     "invalid expected %0: %1">;
89 def err_verify_inconsistent_diags : Error<
90     "'%0' diagnostics %select{expected|seen}1 but not %select{seen|expected}1: "
91     "%2">;
92
93 def note_fixit_applied : Note<"FIX-IT applied suggested code changes">;
94 def note_fixit_in_macro : Note<
95     "FIX-IT unable to apply suggested code changes in a macro">;
96 def note_fixit_failed : Note<
97     "FIX-IT unable to apply suggested code changes">;
98 def note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">;
99 def note_fixit_main_file_unchanged : Note<
100     "main file unchanged">;
101 def warn_fixit_no_changes : Note<
102     "FIX-IT detected errors it could not fix; no output will be generated">;
103
104 def err_fe_invoking : Error<"error invoking%0: %1">, DefaultFatal;
105
106 // PCH reader
107 def err_relocatable_without_isysroot : Error<
108     "must specify system root with -isysroot when building a relocatable "
109     "PCH file">;
110 def warn_pch_target_triple : Error<
111     "PCH file was compiled for the target '%0' but the current translation "
112     "unit is being compiled for target '%1'">;
113 def warn_pch_c99 : Error<
114     "C99 support was %select{disabled|enabled}0 in PCH file but is "
115     "currently %select{disabled|enabled}1">;
116 def warn_pch_cplusplus : Error<
117     "C++ support was %select{disabled|enabled}0 in PCH file but is "
118     "currently %select{disabled|enabled}1">;
119 def warn_pch_cplusplus0x : Error<
120     "C++0x support was %select{disabled|enabled}0 in PCH file but is "
121     "currently %select{disabled|enabled}1">;
122 def warn_pch_objective_c : Error<
123     "Objective-C support was %select{disabled|enabled}0 in PCH file but is "
124     "currently %select{disabled|enabled}1">;
125 def warn_pch_objective_c2 : Error<
126     "Objective-C 2.0 support was %select{disabled|enabled}0 in PCH file but "
127     "is currently %select{disabled|enabled}1">;
128 def warn_pch_nonfragile_abi : Error<
129     "PCH file was compiled with the %select{32-bit|non-fragile}0 Objective-C "
130     "ABI but the %select{32-bit|non-fragile}1 Objective-C ABI is selected">;
131 def warn_pch_nonfragile_abi2 : Error<
132     "PCH file was compiled with the %select{32-bit|enhanced non-fragile}0 "
133     "Objective-C ABI but the %select{32-bit|enhanced non-fragile}1 "
134     "Objective-C ABI is selected">;
135 def warn_pch_apple_kext : Error<
136     "PCH file was compiled %select{with|without}0 support for Apple's kernel "
137     "extensions ABI but it is currently %select{disabled|enabled}1">;
138 def warn_pch_objc_auto_properties : Error<
139     "PCH file was compiled %select{with|without}0 support for auto-synthesized "
140     "@properties but it is currently %select{disabled|enabled}1">;
141 def warn_pch_no_constant_cfstrings : Error<
142     "Objctive-C NSstring generation support was %select{disabled|enabled}0 "
143     "in PCH file but currently %select{disabled|enabled}1">; 
144 def warn_pch_extensions : Error<
145     "extensions were %select{enabled|disabled}0 in PCH file but are "
146     "currently %select{enabled|disabled}1">;
147 def warn_pch_gnu_extensions : Error<
148     "GNU extensions were %select{disabled|enabled}0 in PCH file but are "
149     "currently %select{disabled|enabled}1">;
150 def warn_pch_gnu_keywords : Error<
151     "GNU keywords were %select{disabled|enabled}0 in PCH file but are "
152     "currently %select{disabled|enabled}1">;
153 def warn_pch_microsoft_extensions : Error<
154     "Microsoft extensions were %select{disabled|enabled}0 in PCH file but are "
155     "currently %select{disabled|enabled}1">;
156 def warn_pch_ms_bitfields : Error<
157     "Microsoft-compatible structure layout was %select{disabled|enabled}0 in "
158     "PCH file but is currently %select{disabled|enabled}1">;
159 def warn_pch_heinous_extensions : Error<
160     "heinous extensions were %select{disabled|enabled}0 in PCH file but are "
161     "currently %select{disabled|enabled}1">;
162 def warn_pch_lax_vector_conversions : Error<
163     "lax vector conversions were %select{disabled|enabled}0 in PCH file but "
164     "are currently %select{disabled|enabled}1">;
165 def warn_pch_altivec : Error<
166     "AltiVec initializers were %select{disabled|enabled}0 in PCH file but "
167     "are currently %select{disabled|enabled}1">;
168 def warn_pch_opencl : Error<
169     "OpenCL language extensions were %select{disabled|enabled}0 in PCH file "
170     "but are currently %select{disabled|enabled}1">;
171 def warn_pch_cuda : Error<
172     "CUDA language extensions were %select{disabled|enabled}0 in PCH file "
173     "but are currently %select{disabled|enabled}1">;
174 def warn_pch_elide_constructors : Error<
175     "Elidable copy constructors were %select{disabled|enabled}0 in PCH file "
176     "but are currently %select{disabled|enabled}1">;
177 def warn_pch_exceptions : Error<
178     "exceptions were %select{disabled|enabled}0 in PCH file but "
179     "are currently %select{disabled|enabled}1">;
180 def warn_pch_objc_exceptions : Error<
181     "Objective-C exceptions were %select{disabled|enabled}0 in PCH file but "
182     "are currently %select{disabled|enabled}1">;
183 def warn_pch_cxx_exceptions : Error<
184     "C++ exceptions were %select{disabled|enabled}0 in PCH file but "
185     "are currently %select{disabled|enabled}1">;
186 def warn_pch_sjlj_exceptions : Error<
187     "sjlj-exceptions were %select{disabled|enabled}0 in PCH file but "
188     "are currently %select{disabled|enabled}1">;
189 def warn_pch_objc_runtime : Error<
190     "PCH file was compiled with the %select{NeXT|GNU}0 runtime but the "
191     "%select{NeXT|GNU}1 runtime is selected">;
192 def warn_pch_freestanding : Error<
193     "PCH file was compiled with a %select{hosted|freestanding}0  "
194     "implementation but a %select{hosted|freestanding}1 implementation "
195     "is selected">;
196 def warn_pch_builtins : Error<
197     "PCH file was compiled with builtins %select{enabled|disabled}0 but "
198     "builtins are currently %select{enabled|disabled}1">;
199 def warn_pch_thread_safe_statics : Error<
200     "PCH file was compiled %select{without|with}0 thread-safe statics but "
201     "thread-safe statics are currently %select{disabled|enabled}1">;
202 def warn_pch_posix_threads : Error<
203     "PCH file was compiled %select{without|with}0 POSIX thread support but "
204     "POSIX threads are currently %select{disabled|enabled}1">;
205 def warn_pch_stack_protector : Error<
206     "stack protector was %select{off|on|required}0 in PCH file but "
207     "is currently %select{off|on|required}1">;
208 def warn_pch_blocks : Error<
209     "blocks were %select{disabled|enabled}0 in PCH file but "
210     "are currently %select{disabled|enabled}1">;
211 def warn_pch_math_errno : Error<
212     "math functions %select{do not respect|respect}0 'errno' in PCH "
213     "file but they are currently set to %select{not respect|respect}1 "
214     "'errno'">;
215 def warn_pch_optimize : Error<
216     "the macro '__OPTIMIZE__' was %select{not defined|defined}0 in "
217     "the PCH file but is currently %select{undefined|defined}1">;
218 def warn_pch_optimize_size : Error<
219     "the macro '__OPTIMIZE_SIZE__' was %select{not defined|defined}0 in "
220     "the PCH file but is currently %select{undefined|defined}1">;
221 def warn_pch_static : Error<
222     "the PCH file was compiled %select{dynamic|static}0 but the "
223     "current translation unit is being compiled as %select{dynamic|static}1">;
224 def warn_pch_pic_level : Error<
225     "PCH file was compiled with PIC level %0, but the current translation "
226     "unit will be compiled with PIC level %1">;
227 def warn_pch_gnu_inline : Error<
228     "PCH file was compiled with %select{C99|GNU|}0 inline semantics but "
229     "%select{C99|GNU}1 inline semantics are currently selected">;
230 def warn_pch_no_inline : Error<
231     "the macro '__NO_INLINE__' was %select{not defined|defined}0 in "
232     "the PCH file but is currently %select{undefined|defined}1">;
233 def warn_pch_gc_mode : Error<
234     "the PCH file was built with %select{no||hybrid}0 garbage collection but "
235     "the current translation unit will compiled with %select{no||hybrid}1 "
236     "garbage collection">;
237 def warn_pch_version_too_old : Error<
238     "PCH file uses an older PCH format that is no longer supported">;
239 def warn_pch_version_too_new : Error<
240     "PCH file uses a newer PCH format that cannot be read">;
241 def warn_pch_different_branch : Error<
242     "PCH file built from a different branch (%0) than the compiler (%1)">;
243 def warn_cmdline_conflicting_macro_def : Error<
244     "definition of the macro '%0' conflicts with the definition used to "
245     "build the precompiled header">;
246 def note_pch_macro_defined_as : Note<
247     "definition of macro '%0' in the precompiled header">;
248 def warn_cmdline_missing_macro_defs : Warning<
249     "macro definitions used to build the precompiled header are missing">;
250 def note_using_macro_def_from_pch : Note<
251     "using this macro definition from precompiled header">;
252 def warn_macro_name_used_in_pch : Error<
253     "definition of macro %0 conflicts with an identifier used in the "
254     "precompiled header">;
255 def warn_pch_compiler_options_mismatch : Error<
256     "compiler options used when building the precompiled header differ from "
257     "the options used when using the precompiled header">;
258 def warn_pch_access_control : Error<
259     "C++ access control was %select{disabled|enabled}0 in the PCH file but "
260     "is currently %select{disabled|enabled}1">;
261 def warn_pch_char_signed : Error<
262     "char was %select{unsigned|signed}0 in the PCH file but "
263     "is currently %select{unsigned|signed}1">;
264 def warn_pch_short_wchar : Error<
265     "-fshort-wchar was %select{disabled|enabled}0 in the PCH file but "
266     "is currently %select{disabled|enabled}1">;
267 def warn_pch_short_enums : Error<
268     "-fshort-enums was %select{disabled|enabled}0 in the PCH file but "
269     "is currently %select{disabled|enabled}1">;
270
271 def err_not_a_pch_file : Error<
272     "'%0' does not appear to be a precompiled header file">, DefaultFatal;
273 def warn_unknown_warning_option : Warning<
274     "unknown warning option '%0'">,
275     InGroup<DiagGroup<"unknown-warning-option"> >;
276 def warn_unknown_warning_specifier : Warning<
277     "unknown %0 warning specifier: '%1'">,
278     InGroup<DiagGroup<"unknown-warning-option"> >;
279
280 def warn_unkwown_analyzer_checker : Warning<
281     "no analyzer checkers are associated with '%0'">;
282 }