]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticDriverKinds.td
Upgrade Unbound to 1.7.2. More to follow.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / clang / include / clang / Basic / DiagnosticDriverKinds.td
1 //==--- DiagnosticDriverKinds.td - libdriver 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 = "Driver" in {
11
12 def err_drv_no_such_file : Error<"no such file or directory: '%0'">;
13 def err_drv_unsupported_opt : Error<"unsupported option '%0'">;
14 def err_drv_unsupported_opt_for_target : Error<
15   "unsupported option '%0' for target '%1'">;
16 def err_drv_unsupported_option_argument : Error<
17   "unsupported argument '%1' to option '%0'">;
18 def err_drv_unknown_stdin_type : Error<
19   "-E or -x required when input is from standard input">;
20 def err_drv_unknown_stdin_type_clang_cl : Error<
21   "use /Tc or /Tp to set input type for standard input">;
22 def err_drv_unknown_language : Error<"language not recognized: '%0'">;
23 def err_drv_invalid_arch_name : Error<
24   "invalid arch name '%0'">;
25 def err_drv_cuda_bad_gpu_arch : Error<"Unsupported CUDA gpu architecture: %0">;
26 def err_drv_no_cuda_installation : Error<
27   "cannot find CUDA installation.  Provide its path via --cuda-path, or pass "
28   "-nocudainc to build without CUDA includes.">;
29 def err_drv_no_cuda_libdevice : Error<
30   "cannot find libdevice for %0. Provide path to different CUDA installation "
31   "via --cuda-path, or pass -nocudalib to build without linking with libdevice.">;
32 def err_drv_cuda_version_unsupported : Error<
33   "GPU arch %0 is supported by CUDA versions between %1 and %2 (inclusive), "
34   "but installation at %3 is %4.  Use --cuda-path to specify a different CUDA "
35   "install, pass a different GPU arch with --cuda-gpu-arch, or pass "
36   "--no-cuda-version-check.">;
37 def err_drv_cuda_nvptx_host : Error<"unsupported use of NVPTX for host compilation.">;
38 def err_drv_invalid_thread_model_for_target : Error<
39   "invalid thread model '%0' in '%1' for this target">;
40 def err_drv_invalid_linker_name : Error<
41   "invalid linker name in argument '%0'">;
42 def err_drv_invalid_pgo_instrumentor : Error<
43   "invalid PGO instrumentor in argument '%0'">;
44 def err_drv_invalid_rtlib_name : Error<
45   "invalid runtime library name in argument '%0'">;
46 def err_drv_unsupported_rtlib_for_platform : Error<
47   "unsupported runtime library '%0' for platform '%1'">;
48 def err_drv_invalid_stdlib_name : Error<
49   "invalid library name in argument '%0'">;
50 def err_drv_invalid_output_with_multiple_archs : Error<
51   "cannot use '%0' output with multiple -arch options">;
52 def err_drv_no_input_files : Error<"no input files">;
53 def err_drv_use_of_Z_option : Error<
54   "unsupported use of internal gcc -Z option '%0'">;
55 def err_drv_output_argument_with_multiple_files : Error<
56   "cannot specify -o when generating multiple output files">;
57 def err_drv_out_file_argument_with_multiple_sources : Error<
58   "cannot specify '%0%1' when compiling multiple source files">;
59 def err_no_external_assembler : Error<
60   "there is no external assembler that can be used on this platform">;
61 def err_drv_unable_to_remove_file : Error<
62   "unable to remove file: %0">;
63 def err_drv_command_failure : Error<
64   "unable to execute command: %0">;
65 def err_drv_invalid_darwin_version : Error<
66   "invalid Darwin version number: %0">;
67 def err_drv_missing_argument : Error<
68   "argument to '%0' is missing (expected %1 value%s1)">;
69 def err_drv_invalid_Xarch_argument_with_args : Error<
70   "invalid Xarch argument: '%0', options requiring arguments are unsupported">;
71 def err_drv_invalid_Xarch_argument_isdriver : Error<
72   "invalid Xarch argument: '%0', cannot change driver behavior inside Xarch argument">;
73 def err_drv_Xopenmp_target_missing_triple : Error<
74   "cannot deduce implicit triple value for -Xopenmp-target, specify triple using -Xopenmp-target=<triple>">;
75 def err_drv_invalid_Xopenmp_target_with_args : Error<
76   "invalid -Xopenmp-target argument: '%0', options requiring arguments are unsupported">;
77 def err_drv_argument_only_allowed_with : Error<
78   "invalid argument '%0' only allowed with '%1'">;
79 def err_drv_argument_not_allowed_with : Error<
80   "invalid argument '%0' not allowed with '%1'">;
81 def err_drv_invalid_version_number : Error<
82   "invalid version number in '%0'">;
83 def err_drv_no_linker_llvm_support : Error<
84   "'%0': unable to pass LLVM bit-code files to linker">;
85 def err_drv_no_ast_support : Error<
86   "'%0': unable to use AST files with this tool">;
87 def err_drv_no_module_support : Error<
88   "'%0': unable to use module files with this tool">;
89 def err_drv_clang_unsupported : Error<
90   "the clang compiler does not support '%0'">;
91 def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error<
92   "the clang compiler does not support '%0' for C++ on Darwin/i386">;
93 def err_drv_clang_unsupported_opt_faltivec : Error<
94   "the clang compiler does not support '%0', %1">;
95 def err_drv_command_failed : Error<
96   "%0 command failed with exit code %1 (use -v to see invocation)">;
97 def err_drv_compilationdatabase : Error<
98   "compilation database '%0' could not be opened: %1">;
99 def err_drv_command_signalled : Error<
100   "%0 command failed due to signal (use -v to see invocation)">;
101 def err_drv_force_crash : Error<
102   "failing because %select{environment variable 'FORCE_CLANG_DIAGNOSTICS_CRASH' is set|'-gen-reproducer' is used}0">;
103 def err_drv_invalid_mfloat_abi : Error<
104   "invalid float ABI '%0'">;
105 def err_drv_invalid_mtp : Error<
106   "invalid thread pointer reading mode '%0'">;
107 def err_drv_missing_arg_mtp : Error<
108   "missing argument to '%0'">;
109 def err_drv_invalid_libcxx_deployment : Error<
110   "invalid deployment target for -stdlib=libc++ (requires %0 or later)">;
111 def err_drv_invalid_argument_to_fdebug_prefix_map : Error<
112   "invalid argument '%0' to -fdebug-prefix-map">;
113 def err_drv_malformed_sanitizer_blacklist : Error<
114   "malformed sanitizer blacklist: '%0'">;
115 def err_drv_duplicate_config : Error<
116   "no more than one option '--config' is allowed">;
117 def err_drv_config_file_not_exist : Error<
118   "configuration file '%0' does not exist">;
119 def err_drv_config_file_not_found : Error<
120   "configuration file '%0' cannot be found">;
121 def note_drv_config_file_searched_in : Note<
122   "was searched for in the directory: %0">;
123 def err_drv_cannot_read_config_file : Error<
124   "cannot read configuration file '%0'">;
125 def err_drv_nested_config_file: Error<
126   "option '--config' is not allowed inside configuration file">;
127
128 def err_target_unsupported_arch
129   : Error<"the target architecture '%0' is not supported by the target '%1'">;
130 def err_cpu_unsupported_isa
131   : Error<"CPU '%0' does not support '%1' execution mode">;
132 def err_arch_unsupported_isa
133   : Error<"Architecture '%0' does not support '%1' execution mode">;
134
135 def err_drv_I_dash_not_supported : Error<
136   "'%0' not supported, please use -iquote instead">;
137 def err_drv_unknown_argument : Error<"unknown argument: '%0'">;
138 def warn_drv_unknown_argument_clang_cl : Warning<
139   "unknown argument ignored in clang-cl: '%0'">,
140   InGroup<UnknownArgument>;
141
142 def warn_drv_ycyu_no_arg_clang_cl : Warning<
143   "support for '%0' without a filename not implemented yet; flag ignored">,
144   InGroup<ClangClPch>;
145 def warn_drv_ycyu_different_arg_clang_cl : Warning<
146   "support for '/Yc' and '/Yu' with different filenames not implemented yet; flags ignored">,
147   InGroup<ClangClPch>;
148 def warn_drv_ycyu_no_fi_arg_clang_cl : Warning<
149   "support for '%0' without a corresponding /FI flag not implemented yet; flag ignored">,
150   InGroup<ClangClPch>;
151 def warn_drv_yc_multiple_inputs_clang_cl : Warning<
152   "support for '/Yc' with more than one source file not implemented yet; flag ignored">,
153   InGroup<ClangClPch>;
154
155 def err_drv_invalid_value : Error<"invalid value '%1' in '%0'">;
156 def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">;
157 def err_drv_invalid_remap_file : Error<
158     "invalid option '%0' not of the form <from-file>;<to-file>">;
159 def err_drv_invalid_gcc_output_type : Error<
160     "invalid output type '%0' for use with gcc tool">;
161 def err_drv_cc_print_options_failure : Error<
162     "unable to open CC_PRINT_OPTIONS file: %0">;
163 def err_drv_lto_without_lld : Error<"LTO requires -fuse-ld=lld">;
164 def err_drv_preamble_format : Error<
165     "incorrect format for -preamble-bytes=N,END">;
166 def warn_invalid_ios_deployment_target : Warning<
167   "invalid iOS deployment version '%0', iOS 10 is the maximum deployment "
168   "target for 32-bit targets">, InGroup<InvalidIOSDeploymentTarget>,
169   DefaultError;
170 def err_drv_conflicting_deployment_targets : Error<
171   "conflicting deployment targets, both '%0' and '%1' are present in environment">;
172 def err_arc_unsupported_on_runtime : Error<
173   "-fobjc-arc is not supported on platforms using the legacy runtime">;
174 def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this
175   "-fobjc-arc is not supported on versions of OS X prior to 10.6">;
176 def err_objc_weak_with_gc : Error<
177   "-fobjc-weak is not supported in Objective-C garbage collection">;
178 def err_objc_weak_unsupported : Error<
179   "-fobjc-weak is not supported on the current deployment target">;
180 def err_drv_mg_requires_m_or_mm : Error<
181   "option '-MG' requires '-M' or '-MM'">;
182 def err_drv_unknown_objc_runtime : Error<
183   "unknown or ill-formed Objective-C runtime '%0'">;
184 def err_drv_emit_llvm_link : Error<
185    "-emit-llvm cannot be used when linking">;
186 def err_drv_optimization_remark_pattern : Error<
187   "%0 in '%1'">;
188 def err_drv_no_neon_modifier : Error<"[no]neon is not accepted as modifier, please use [no]simd instead">;
189 def err_drv_invalid_omp_target : Error<"OpenMP target is invalid: '%0'">;
190 def err_drv_omp_host_ir_file_not_found : Error<
191   "The provided host compiler IR file '%0' is required to generate code for OpenMP target regions but cannot be found.">;
192 def err_drv_omp_host_target_not_supported : Error<
193   "The target '%0' is not a supported OpenMP host target.">;
194 def err_drv_expecting_fopenmp_with_fopenmp_targets : Error<
195   "The option -fopenmp-targets must be used in conjunction with a -fopenmp option compatible with offloading, please use -fopenmp=libomp or -fopenmp=libiomp5.">;
196 def warn_drv_omp_offload_target_duplicate : Warning<
197   "The OpenMP offloading target '%0' is similar to target '%1' already specified - will be ignored.">, 
198   InGroup<OpenMPTarget>;
199 def err_drv_bitcode_unsupported_on_toolchain : Error<
200   "-fembed-bitcode is not supported on versions of iOS prior to 6.0">;
201
202 def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>;
203 def warn_drv_optimization_value : Warning<"optimization level '%0' is not supported; using '%1%2' instead">,
204   InGroup<InvalidCommandLineArgument>;
205 def warn_ignored_gcc_optimization : Warning<"optimization flag '%0' is not supported">,
206   InGroup<IgnoredOptimizationArgument>;
207 def warn_ignored_clang_option : Warning<"the flag '%0' has been deprecated and will be ignored">,
208   InGroup<UnusedCommandLineArgument>;
209 def warn_drv_unsupported_opt_for_target : Warning<
210   "optimization flag '%0' is not supported for target '%1'">,
211   InGroup<IgnoredOptimizationArgument>;
212 def warn_c_kext : Warning<
213   "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">;
214 def warn_drv_input_file_unused : Warning<
215   "%0: '%1' input unused%select{ when '%3' is present|}2">,
216   InGroup<UnusedCommandLineArgument>;
217 def warn_drv_input_file_unused_by_cpp : Warning<
218   "%0: '%1' input unused in cpp mode">,
219   InGroup<UnusedCommandLineArgument>;
220 def warn_drv_preprocessed_input_file_unused : Warning<
221   "%0: previously preprocessed input%select{ unused when '%2' is present|}1">,
222   InGroup<UnusedCommandLineArgument>;
223 def warn_drv_unused_argument : Warning<
224   "argument unused during compilation: '%0'">,
225   InGroup<UnusedCommandLineArgument>;
226 def warn_drv_empty_joined_argument : Warning<
227   "joined argument expects additional value: '%0'">,
228   InGroup<UnusedCommandLineArgument>;
229 def warn_drv_diagnostics_hotness_requires_pgo : Warning<
230   "argument '%0' requires profile-guided optimization information">,
231   InGroup<UnusedCommandLineArgument>;
232 def warn_drv_clang_unsupported : Warning<
233   "the clang compiler does not support '%0'">;
234 def warn_drv_deprecated_arg : Warning<
235   "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>;
236 def warn_drv_assuming_mfloat_abi_is : Warning<
237   "unknown platform, assuming -mfloat-abi=%0">;
238 def warn_ignoring_ftabstop_value : Warning<
239   "ignoring invalid -ftabstop value '%0', using default value %1">;
240 def warn_drv_overriding_flag_option : Warning<
241   "overriding '%0' option with '%1'">,
242   InGroup<DiagGroup<"overriding-t-option">>;
243 def warn_drv_treating_input_as_cxx : Warning<
244   "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">,
245   InGroup<Deprecated>;
246 def warn_drv_pch_not_first_include : Warning<
247   "precompiled header '%0' was ignored because '%1' is not first '-include'">;
248 def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">,
249   InGroup<DiagGroup<"missing-sysroot">>;
250 def warn_incompatible_sysroot : Warning<"using sysroot for '%0' but targeting '%1'">,
251   InGroup<DiagGroup<"incompatible-sysroot">>;
252 def warn_debug_compression_unavailable : Warning<"cannot compress debug sections (zlib not installed)">,
253   InGroup<DiagGroup<"debug-compression-unavailable">>;
254 def warn_drv_enabling_rtti_with_exceptions : Warning<
255   "implicitly enabling rtti for exception handling">,
256   InGroup<DiagGroup<"rtti-for-exceptions">>;
257 def warn_drv_disabling_vptr_no_rtti_default : Warning<
258   "implicitly disabling vptr sanitizer because rtti wasn't enabled">,
259   InGroup<AutoDisableVptrSanitizer>;
260 def warn_drv_object_size_disabled_O0 : Warning<
261   "the object size sanitizer has no effect at -O0, but is explicitly enabled: %0">,
262   InGroup<InvalidCommandLineArgument>;
263
264 def note_drv_command_failed_diag_msg : Note<
265   "diagnostic msg: %0">;
266 def note_drv_t_option_is_global : Note<
267   "The last /TC or /TP option takes precedence over earlier instances">;
268 def note_drv_address_sanitizer_debug_runtime : Note<
269   "AddressSanitizer doesn't support linking with debug runtime libraries yet">;
270 def note_drv_use_standard : Note<"use '%0'"
271   "%select{| or '%3'|, '%3', or '%4'|, '%3', '%4', or '%5'}2 "
272   "for '%1' standard">;
273
274 def err_analyzer_config_no_value : Error<
275   "analyzer-config option '%0' has a key but no value">;
276 def err_analyzer_config_multiple_values : Error<
277   "analyzer-config option '%0' should contain only one '='">;
278
279 def err_drv_invalid_hvx_length : Error<
280   "-mhvx-length is not supported without a -mhvx/-mhvx= flag">;
281
282 def err_drv_modules_validate_once_requires_timestamp : Error<
283   "option '-fmodules-validate-once-per-build-session' requires "
284   "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">;
285
286 def err_test_module_file_extension_format : Error<
287   "-ftest-module-file-extension argument '%0' is not of the required form "
288   "'blockname:major:minor:hashed:user info'">;
289
290 def warn_drv_invoking_fallback : Warning<"falling back to %0">,
291   InGroup<Fallback>;
292
293 def warn_slash_u_filename : Warning<"'/U%0' treated as the '/U' option">,
294   InGroup<DiagGroup<"slash-u-filename">>;
295 def note_use_dashdash : Note<"Use '--' to treat subsequent arguments as filenames">;
296
297 def err_drv_ropi_rwpi_incompatible_with_pic : Error<
298   "embedded and GOT-based position independence are incompatible">;
299 def err_drv_ropi_incompatible_with_cxx : Error<
300   "ROPI is not compatible with c++">;
301
302 def warn_target_unsupported_nan2008 : Warning<
303   "ignoring '-mnan=2008' option because the '%0' architecture does not support it">,
304   InGroup<UnsupportedNan>;
305 def warn_target_unsupported_nanlegacy : Warning<
306   "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">,
307   InGroup<UnsupportedNan>;
308 def warn_target_unsupported_abslegacy : Warning<
309   "ignoring '-mabs=legacy' option because the '%0' architecture does not support it">,
310   InGroup<UnsupportedAbs>;
311 def warn_target_unsupported_abs2008 : Warning<
312   "ignoring '-mabs=2008' option because the '%0' architecture does not support it">,
313   InGroup<UnsupportedAbs>;
314 def warn_target_unsupported_compact_branches : Warning<
315   "ignoring '-mcompact-branches=' option because the '%0' architecture does not"
316   " support it">, InGroup<UnsupportedCB>;
317 def warn_drv_unsupported_gpopt : Warning<
318   "ignoring '-mgpopt' option as it cannot be used with %select{|the implicit"
319   " usage of }0-mabicalls">,
320   InGroup<UnsupportedGPOpt>;
321 def warn_drv_unsupported_longcalls : Warning<
322   "ignoring '-mlong-calls' option as it is not currently supported with "
323   "%select{|the implicit usage of }0-mabicalls">,
324   InGroup<OptionIgnored>;
325 def warn_drv_unsupported_abicalls : Warning<
326   "ignoring '-mabicalls' option as it cannot be used with "
327   "non position-independent code and the N64 ABI">,
328   InGroup<OptionIgnored>;
329 def err_drv_unsupported_indirect_jump_opt : Error<
330   "'-mindirect-jump=%0' is unsupported with the '%1' architecture">;
331 def err_drv_unknown_indirect_jump_opt : Error<
332   "unknown '-mindirect-jump=' option '%0'">;
333
334 def warn_drv_unable_to_find_directory_expected : Warning<
335   "unable to find %0 directory, expected to be in '%1'">,
336   InGroup<InvalidOrNonExistentDirectory>, DefaultIgnore;
337
338 def warn_drv_ps4_force_pic : Warning<
339   "option '%0' was ignored by the PS4 toolchain, using '-fPIC'">,
340   InGroup<OptionIgnored>;
341
342 def warn_drv_ps4_sdk_dir : Warning<
343   "environment variable SCE_ORBIS_SDK_DIR is set, but points to invalid or nonexistent directory '%0'">,
344   InGroup<InvalidOrNonExistentDirectory>;
345
346 def err_drv_unsupported_linker : Error<"unsupported value '%0' for -linker option">;
347 def err_drv_defsym_invalid_format : Error<"defsym must be of the form: sym=value: %0">;
348 def err_drv_defsym_invalid_symval : Error<"Value is not an integer: %0">;
349 def warn_drv_msvc_not_found : Warning<
350   "unable to find a Visual Studio installation; "
351   "try running Clang from a developer command prompt">,
352   InGroup<DiagGroup<"msvc-not-found">>;
353
354 def warn_drv_fine_grained_bitfield_accesses_ignored : Warning<
355   "option '-ffine-grained-bitfield-accesses' cannot be enabled together with a sanitizer; flag ignored">,
356   InGroup<OptionIgnored>;
357
358 def note_drv_verify_prefix_spelling : Note<
359   "-verify prefixes must start with a letter and contain only alphanumeric"
360   " characters, hyphens, and underscores">;
361
362 def warn_drv_experimental_isel_incomplete : Warning<
363   "-fexperimental-isel support for the '%0' architecture is incomplete">,
364   InGroup<ExperimentalISel>;
365
366 def warn_drv_experimental_isel_incomplete_opt : Warning<
367   "-fexperimental-isel support is incomplete for this architecture at the current optimization level">,
368   InGroup<ExperimentalISel>;
369 }