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