]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/clang/include/clang/Basic/DiagnosticDriverKinds.td
Merge llvm-project main llvmorg-15-init-15358-g53dc0f10787
[FreeBSD/FreeBSD.git] / contrib / llvm-project / clang / include / clang / Basic / DiagnosticDriverKinds.td
1 //==--- DiagnosticDriverKinds.td - libdriver diagnostics ------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 let Component = "Driver" in {
10
11 def err_drv_no_such_file : Error<"no such file or directory: '%0'">;
12 def err_drv_no_such_file_with_suggestion : Error<
13   "no such file or directory: '%0'; did you mean '%1'?">;
14 def err_drv_unsupported_opt : Error<"unsupported option '%0'">;
15 def err_drv_unsupported_opt_with_suggestion : Error<
16   "unsupported option '%0'; did you mean '%1'?">;
17 def err_drv_unsupported_opt_for_target : Error<
18   "unsupported option '%0' for target '%1'">;
19 def err_drv_unsupported_opt_for_language_mode : Error<
20   "unsupported option '%0' for language mode '%1'">;
21 def err_drv_unsupported_option_argument : Error<
22   "unsupported argument '%1' to option '-%0'">;
23 def err_drv_unknown_stdin_type : Error<
24   "-E or -x required when input is from standard input">;
25 def err_drv_unknown_stdin_type_clang_cl : Error<
26   "use /Tc or /Tp to set input type for standard input">;
27 def err_drv_unknown_language : Error<"language not recognized: '%0'">;
28 def err_drv_invalid_arch_name : Error<
29   "invalid arch name '%0'">;
30 def err_drv_invalid_riscv_arch_name : Error<
31   "invalid arch name '%0', %1">;
32 def warn_drv_invalid_arch_name_with_suggestion : Warning<
33   "ignoring invalid /arch: argument '%0'; for %select{64|32}1-bit expected one of %2">,
34   InGroup<UnusedCommandLineArgument>;
35 def warn_drv_avr_mcu_not_specified : Warning<
36   "no target microcontroller specified on command line, cannot "
37   "link standard libraries, please pass -mmcu=<mcu name>">,
38   InGroup<AVRRtlibLinkingQuirks>;
39 def warn_drv_avr_libc_not_found: Warning<
40   "no avr-libc installation can be found on the system, "
41   "cannot link standard libraries">,
42   InGroup<AVRRtlibLinkingQuirks>;
43 def warn_drv_avr_family_linking_stdlibs_not_implemented: Warning<
44   "support for linking stdlibs for microcontroller '%0' is not implemented">,
45   InGroup<AVRRtlibLinkingQuirks>;
46 def warn_drv_avr_linker_section_addresses_not_implemented: Warning<
47   "support for passing the data section address to the linker for "
48   "microcontroller '%0' is not implemented">,
49   InGroup<AVRRtlibLinkingQuirks>;
50 def warn_drv_avr_stdlib_not_linked: Warning<
51   "standard library not linked and so no interrupt vector table or "
52   "compiler runtime routines will be linked">,
53   InGroup<AVRRtlibLinkingQuirks>;
54 def err_drv_cuda_bad_gpu_arch : Error<"unsupported CUDA gpu architecture: %0">;
55 def err_drv_offload_bad_gpu_arch : Error<"unsupported %0 gpu architecture: %1">;
56 def err_drv_no_cuda_installation : Error<
57   "cannot find CUDA installation; provide its path via '--cuda-path', or pass "
58   "'-nocudainc' to build without CUDA includes">;
59 def err_drv_no_cuda_libdevice : Error<
60   "cannot find libdevice for %0; provide path to different CUDA installation "
61   "via '--cuda-path', or pass '-nocudalib' to build without linking with "
62   "libdevice">;
63 def err_drv_no_rdc_new_driver : Error<
64   "Using '--offload-new-driver' requires '-fgpu-rdc'">;
65
66 def err_drv_no_rocm_device_lib : Error<
67   "cannot find ROCm device library%select{| for %1|for ABI version %1}0; provide its path via "
68   "'--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build "
69   "without ROCm device library">;
70 def err_drv_no_hip_runtime : Error<
71   "cannot find HIP runtime; provide its path via '--rocm-path', or pass "
72   "'-nogpuinc' to build without HIP runtime">;
73
74 def err_drv_no_hipspv_device_lib : Error<
75   "cannot find HIP device library%select{| for %1}0; provide its path via "
76   "'--hip-path' or '--hip-device-lib-path', or pass '-nogpulib' to build "
77   "without HIP device library">;
78 def err_drv_hipspv_no_hip_path : Error<
79   "'--hip-path' must be specified when offloading to "
80   "SPIR-V%select{| unless %1 is given}0.">;
81
82 def err_drv_undetermined_amdgpu_arch : Error<
83   "cannot determine AMDGPU architecture: %0; consider passing it via "
84   "'--march'">;
85 def err_drv_cuda_version_unsupported : Error<
86   "GPU arch %0 is supported by CUDA versions between %1 and %2 (inclusive), "
87   "but installation at %3 is %4; use '--cuda-path' to specify a different CUDA "
88   "install, pass a different GPU arch with '--cuda-gpu-arch', or pass "
89   "'--no-cuda-version-check'">;
90 def warn_drv_new_cuda_version: Warning<
91   "CUDA version%0 is newer than the latest%select{| partially}1 supported version %2">,
92   InGroup<CudaUnknownVersion>;
93 def warn_drv_partially_supported_cuda_version: Warning<
94   "CUDA version %0 is only partially supported">,
95   InGroup<CudaUnknownVersion>;
96 def err_drv_cuda_host_arch : Error<
97   "unsupported architecture '%0' for host compilation">;
98 def err_drv_mix_cuda_hip : Error<
99   "mixed CUDA and HIP compilation is not supported">;
100 def err_drv_bad_target_id : Error<
101   "invalid target ID '%0'; format is a processor name followed by an optional "
102   "colon-delimited list of features followed by an enable/disable sign (e.g., "
103   "'gfx908:sramecc+:xnack-')">;
104 def err_drv_bad_offload_arch_combo : Error<
105   "invalid offload arch combinations: '%0' and '%1' (for a specific processor, "
106   "a feature should either exist in all offload archs, or not exist in any "
107   "offload archs)">;
108 def warn_drv_unsupported_option_for_offload_arch_req_feature : Warning<
109   "ignoring '%0' option for offload arch '%1' as it is not currently supported "
110   "there. Use it with an offload arch containing '%2' instead">,
111   InGroup<OptionIgnored>;
112 def warn_drv_unsupported_option_for_target : Warning<
113   "ignoring '%0' option as it is not currently supported for target '%1'">,
114   InGroup<OptionIgnored>;
115
116 def err_drv_invalid_thread_model_for_target : Error<
117   "invalid thread model '%0' in '%1' for this target">;
118 def err_drv_invalid_linker_name : Error<
119   "invalid linker name in argument '%0'">;
120 def err_drv_invalid_rtlib_name : Error<
121   "invalid runtime library name in argument '%0'">;
122 def err_drv_unsupported_rtlib_for_platform : Error<
123   "unsupported runtime library '%0' for platform '%1'">;
124 def err_drv_invalid_unwindlib_name : Error<
125   "invalid unwind library name in argument '%0'">;
126 def err_drv_incompatible_unwindlib : Error<
127   "--rtlib=libgcc requires --unwindlib=libgcc">;
128 def err_drv_invalid_stdlib_name : Error<
129   "invalid library name in argument '%0'">;
130 def err_drv_invalid_output_with_multiple_archs : Error<
131   "cannot use '%0' output with multiple -arch options">;
132 def err_drv_no_input_files : Error<"no input files">;
133 def err_drv_use_of_Z_option : Error<
134   "unsupported use of internal gcc -Z option '%0'">;
135 def err_drv_output_argument_with_multiple_files : Error<
136   "cannot specify -o when generating multiple output files">;
137 def err_drv_out_file_argument_with_multiple_sources : Error<
138   "cannot specify '%0%1' when compiling multiple source files">;
139 def err_no_external_assembler : Error<
140   "there is no external assembler that can be used on this platform">;
141 def err_drv_unable_to_remove_file : Error<
142   "unable to remove file: %0">;
143 def err_drv_unable_to_set_working_directory : Error <
144   "unable to set working directory: %0">;
145 def err_drv_command_failure : Error<
146   "unable to execute command: %0">;
147 def err_drv_invalid_darwin_version : Error<
148   "invalid Darwin version number: %0">;
149 def err_drv_invalid_diagnotics_hotness_threshold : Error<
150   "invalid argument in '%0', only integer or 'auto' is supported">;
151 def err_drv_invalid_diagnotics_misexpect_tolerance : Error<
152   "invalid argument in '%0', only integers are supported">;
153 def err_drv_missing_argument : Error<
154   "argument to '%0' is missing (expected %1 value%s1)">;
155 def err_drv_invalid_Xarch_argument_with_args : Error<
156   "invalid Xarch argument: '%0', options requiring arguments are unsupported">;
157 def err_drv_Xopenmp_target_missing_triple : Error<
158   "cannot deduce implicit triple value for -Xopenmp-target, specify triple using -Xopenmp-target=<triple>">;
159 def err_drv_invalid_Xopenmp_target_with_args : Error<
160   "invalid -Xopenmp-target argument: '%0', options requiring arguments are unsupported">;
161 def err_drv_argument_only_allowed_with : Error<
162   "invalid argument '%0' only allowed with '%1'">;
163 def err_drv_minws_unsupported_input_type : Error<
164   "'-fminimize-whitespace' invalid for input of type %0">;
165 def err_drv_amdgpu_ieee_without_no_honor_nans : Error<
166   "invalid argument '-mno-amdgpu-ieee' only allowed with relaxed NaN handling">;
167 def err_drv_argument_not_allowed_with : Error<
168   "invalid argument '%0' not allowed with '%1'">;
169 def err_drv_cannot_open_randomize_layout_seed_file : Error<
170   "cannot read randomize layout seed file '%0'">;
171 def err_drv_invalid_version_number : Error<
172   "invalid version number in '%0'">;
173 def err_drv_no_linker_llvm_support : Error<
174   "'%0': unable to pass LLVM bit-code files to linker">;
175 def err_drv_no_ast_support : Error<
176   "'%0': unable to use AST files with this tool">;
177 def err_drv_no_module_support : Error<
178   "'%0': unable to use module files with this tool">;
179 def err_drv_clang_unsupported : Error<
180   "the clang compiler does not support '%0'">;
181 def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error<
182   "the clang compiler does not support '%0' for C++ on Darwin/i386">;
183 def err_drv_clang_unsupported_opt_pg_darwin: Error<
184   "the clang compiler does not support -pg option on %select{Darwin|versions of OS X 10.9 and later}0">;
185 def err_drv_clang_unsupported_opt_faltivec : Error<
186   "the clang compiler does not support '%0', %1">;
187 def err_drv_command_failed : Error<
188   "%0 command failed with exit code %1 (use -v to see invocation)">;
189 def err_drv_compilationdatabase : Error<
190   "compilation database '%0' could not be opened: %1">;
191 def err_drv_command_signalled : Error<
192   "%0 command failed due to signal (use -v to see invocation)">;
193 def err_drv_force_crash : Error<
194   "failing because %select{environment variable 'FORCE_CLANG_DIAGNOSTICS_CRASH' is set|'-gen-reproducer' is used}0">;
195 def err_drv_invalid_mfloat_abi : Error<
196   "invalid float ABI '%0'">;
197 def err_drv_invalid_mtp : Error<
198   "invalid thread pointer reading mode '%0'">;
199 def err_drv_missing_arg_mtp : Error<
200   "missing argument to '%0'">;
201 def warn_drv_missing_plugin_name : Warning<
202   "missing plugin name in %0">,
203   InGroup<InvalidCommandLineArgument>;
204 def warn_drv_missing_plugin_arg : Warning<
205   "missing plugin argument for plugin %0 in %1">,
206   InGroup<InvalidCommandLineArgument>;
207 def err_drv_invalid_libcxx_deployment : Error<
208   "invalid deployment target for -stdlib=libc++ (requires %0 or later)">;
209 def err_drv_invalid_argument_to_option : Error<
210   "invalid argument '%0' to -%1">;
211 def err_drv_missing_sanitizer_ignorelist : Error<
212   "missing sanitizer ignorelist: '%0'">;
213 def err_drv_malformed_sanitizer_ignorelist : Error<
214   "malformed sanitizer ignorelist: '%0'">;
215 def err_drv_malformed_sanitizer_coverage_allowlist : Error<
216   "malformed sanitizer coverage allowlist: '%0'">;
217 def err_drv_malformed_sanitizer_coverage_ignorelist : Error<
218   "malformed sanitizer coverage ignorelist: '%0'">;
219 def err_drv_duplicate_config : Error<
220   "no more than one option '--config' is allowed">;
221 def err_drv_config_file_not_exist : Error<
222   "configuration file '%0' does not exist">;
223 def err_drv_config_file_not_found : Error<
224   "configuration file '%0' cannot be found">;
225 def note_drv_config_file_searched_in : Note<
226   "was searched for in the directory: %0">;
227 def err_drv_cannot_read_config_file : Error<
228   "cannot read configuration file '%0'">;
229 def err_drv_nested_config_file: Error<
230   "option '--config' is not allowed inside configuration file">;
231 def err_drv_arg_requires_bitcode_input: Error<
232   "option '%0' requires input to be LLVM bitcode">;
233
234 def err_target_unsupported_arch
235   : Error<"the target architecture '%0' is not supported by the target '%1'">;
236 def err_cpu_unsupported_isa
237   : Error<"CPU '%0' does not support '%1' execution mode">;
238 def err_arch_unsupported_isa
239   : Error<"architecture '%0' does not support '%1' execution mode">;
240
241 def err_drv_I_dash_not_supported : Error<
242   "'%0' not supported, please use -iquote instead">;
243 def err_drv_unknown_argument : Error<"unknown argument: '%0'">;
244 def err_drv_unknown_argument_with_suggestion : Error<
245   "unknown argument '%0'; did you mean '%1'?">;
246 def warn_drv_unknown_argument_clang_cl : Warning<
247   "unknown argument ignored in clang-cl: '%0'">,
248   InGroup<UnknownArgument>;
249 def warn_drv_unknown_argument_clang_cl_with_suggestion : Warning<
250   "unknown argument ignored in clang-cl '%0'; did you mean '%1'?">,
251   InGroup<UnknownArgument>;
252
253 def warn_drv_ycyu_different_arg_clang_cl : Warning<
254   "support for '/Yc' and '/Yu' with different filenames not implemented yet; flags ignored">,
255   InGroup<ClangClPch>;
256 def warn_drv_yc_multiple_inputs_clang_cl : Warning<
257   "support for '/Yc' with more than one source file not implemented yet; flag ignored">,
258   InGroup<ClangClPch>;
259
260 def err_drv_invalid_value : Error<"invalid value '%1' in '%0'">;
261 def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">;
262 def err_drv_invalid_value_with_suggestion : Error<
263     "invalid value '%1' in '%0', expected one of: %2">;
264 def err_drv_alignment_not_power_of_two : Error<"alignment is not a power of 2 in '%0'">;
265 def err_drv_invalid_remap_file : Error<
266     "invalid option '%0' not of the form <from-file>;<to-file>">;
267 def err_drv_invalid_gcc_output_type : Error<
268     "invalid output type '%0' for use with gcc tool">;
269 def err_drv_cc_print_options_failure : Error<
270     "unable to open CC_PRINT_OPTIONS file: %0">;
271 def err_drv_lto_without_lld : Error<"LTO requires -fuse-ld=lld">;
272 def err_drv_preamble_format : Error<
273     "incorrect format for -preamble-bytes=N,END">;
274 def err_drv_header_unit_extra_inputs : Error<
275     "multiple inputs are not valid for header units (first extra '%0')">;
276 def warn_invalid_ios_deployment_target : Warning<
277   "invalid iOS deployment version '%0', iOS 10 is the maximum deployment "
278   "target for 32-bit targets">, InGroup<InvalidIOSDeploymentTarget>,
279   DefaultError;
280 def err_invalid_macos_32bit_deployment_target : Error<
281   "32-bit targets are not supported when building for Mac Catalyst">;
282 def err_drv_invalid_os_in_arg : Error<"invalid OS value '%0' in '%1'">;
283 def err_drv_conflicting_deployment_targets : Error<
284   "conflicting deployment targets, both '%0' and '%1' are present in environment">;
285 def err_arc_unsupported_on_runtime : Error<
286   "-fobjc-arc is not supported on platforms using the legacy runtime">;
287 def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this
288   "-fobjc-arc is not supported on versions of OS X prior to 10.6">;
289 def err_objc_weak_with_gc : Error<
290   "-fobjc-weak is not supported in Objective-C garbage collection">;
291 def err_objc_weak_unsupported : Error<
292   "-fobjc-weak is not supported on the current deployment target">;
293 def err_drv_mg_requires_m_or_mm : Error<
294   "option '-MG' requires '-M' or '-MM'">;
295 def err_drv_unknown_objc_runtime : Error<
296   "unknown or ill-formed Objective-C runtime '%0'">;
297 def err_drv_invalid_cf_runtime_abi
298   : Error<"invalid CoreFoundation Runtime ABI '%0'; must be one of "
299           "'objc', 'standalone', 'swift', 'swift-5.0', 'swift-4.2', 'swift-4.1'">;
300 def err_drv_gnustep_objc_runtime_incompatible_binary : Error<
301   "GNUstep Objective-C runtime version %0 incompatible with target binary format">;
302 def err_drv_emit_llvm_link : Error<
303    "-emit-llvm cannot be used when linking">;
304 def err_drv_optimization_remark_pattern : Error<
305   "in pattern '%1': %0">;
306 def err_drv_optimization_remark_format : Error<
307   "unknown remark serializer format: '%0'">;
308 def err_drv_no_neon_modifier : Error<"[no]neon is not accepted as modifier, please use [no]simd instead">;
309 def err_drv_invalid_omp_target : Error<"OpenMP target is invalid: '%0'">;
310 def err_drv_incompatible_omp_arch : Error<"OpenMP target architecture '%0' pointer size is incompatible with host '%1'">;
311 def err_drv_omp_host_ir_file_not_found : Error<
312   "provided host compiler IR file '%0' is required to generate code for OpenMP "
313   "target regions but cannot be found">;
314 def err_drv_omp_host_target_not_supported : Error<
315   "target '%0' is not a supported OpenMP host target">;
316 def err_drv_expecting_fopenmp_with_fopenmp_targets : Error<
317   "'-fopenmp-targets' must be used in conjunction with a '-fopenmp' option "
318   "compatible with offloading; e.g., '-fopenmp=libomp' or '-fopenmp=libiomp5'">;
319 def err_drv_failed_to_deduce_target_from_arch : Error<
320   "failed to deduce triple for target architecture '%0'; specify the triple "
321   "using '-fopenmp-targets' and '-Xopenmp-target' instead.">;
322 def err_drv_omp_offload_target_missingbcruntime : Error<
323   "no library '%0' found in the default clang lib directory or in LIBRARY_PATH"
324   "; use '--libomptarget-%1-bc-path' to specify %1 bitcode library">;
325 def err_drv_omp_offload_target_bcruntime_not_found : Error<
326   "bitcode library '%0' does not exist">;
327 def err_drv_omp_offload_target_cuda_version_not_support : Error<
328   "NVPTX target requires CUDA 9.2 or above; CUDA %0 detected">;
329 def warn_drv_omp_offload_target_duplicate : Warning<
330   "OpenMP offloading target '%0' is similar to target '%1' already specified; "
331   "will be ignored">, InGroup<OpenMPTarget>;
332 def err_drv_unsupported_embed_bitcode
333     : Error<"%0 is not supported with -fembed-bitcode">;
334 def err_drv_bitcode_unsupported_on_toolchain : Error<
335   "-fembed-bitcode is not supported on versions of iOS prior to 6.0">;
336 def err_drv_negative_columns : Error<
337   "invalid value '%1' in '%0', value must be 'none' or a positive integer">;
338 def err_drv_small_columns : Error<
339   "invalid value '%1' in '%0', value must be '%2' or greater">;
340
341 def err_drv_invalid_malign_branch_EQ : Error<
342   "invalid argument '%0' to -malign-branch=; each element must be one of: %1">;
343
344 def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>;
345 def warn_drv_optimization_value : Warning<"optimization level '%0' is not supported; using '%1%2' instead">,
346   InGroup<InvalidCommandLineArgument>;
347 def warn_ignored_gcc_optimization : Warning<"optimization flag '%0' is not supported">,
348   InGroup<IgnoredOptimizationArgument>;
349 def warn_ignored_clang_option : Warning<"the flag '%0' has been deprecated and will be ignored">,
350   InGroup<UnusedCommandLineArgument>;
351 def warn_drv_unsupported_opt_for_target : Warning<
352   "optimization flag '%0' is not supported for target '%1'">,
353   InGroup<IgnoredOptimizationArgument>;
354 def warn_drv_unsupported_debug_info_opt_for_target : Warning<
355   "debug information option '%0' is not supported for target '%1'">,
356   InGroup<UnsupportedTargetOpt>;
357 def warn_drv_dwarf_version_limited_by_target : Warning<
358   "debug information option '%0' is not supported; requires DWARF-%2 but "
359   "target '%1' only provides DWARF-%3">,
360   InGroup<UnsupportedTargetOpt>;
361 def warn_c_kext : Warning<
362   "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">;
363 def warn_ignoring_fdiscard_for_bitcode : Warning<
364   "ignoring -fdiscard-value-names for LLVM Bitcode">,
365   InGroup<UnusedCommandLineArgument>;
366 def warn_drv_input_file_unused : Warning<
367   "%0: '%1' input unused%select{ when '%3' is present|}2">,
368   InGroup<UnusedCommandLineArgument>;
369 def warn_drv_input_file_unused_by_cpp : Warning<
370   "%0: '%1' input unused in cpp mode">,
371   InGroup<UnusedCommandLineArgument>;
372 def warn_drv_preprocessed_input_file_unused : Warning<
373   "%0: previously preprocessed input%select{ unused when '%2' is present|}1">,
374   InGroup<UnusedCommandLineArgument>;
375 def warn_drv_unused_argument : Warning<
376   "argument unused during compilation: '%0'">,
377   InGroup<UnusedCommandLineArgument>;
378 def warn_drv_unused_x : Warning<
379   "'-x %0' after last input file has no effect">,
380   InGroup<UnusedCommandLineArgument>;
381 def warn_drv_empty_joined_argument : Warning<
382   "joined argument expects additional value: '%0'">,
383   InGroup<UnusedCommandLineArgument>;
384 def warn_drv_diagnostics_hotness_requires_pgo : Warning<
385   "argument '%0' requires profile-guided optimization information">,
386   InGroup<UnusedCommandLineArgument>;
387 def warn_drv_diagnostics_misexpect_requires_pgo : Warning<
388   "argument '%0' requires profile-guided optimization information">,
389   InGroup<UnusedCommandLineArgument>;
390 def warn_drv_clang_unsupported : Warning<
391   "the clang compiler does not support '%0'">;
392 def warn_drv_deprecated_arg : Warning<
393   "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>;
394 def warn_drv_assuming_mfloat_abi_is : Warning<
395   "unknown platform, assuming -mfloat-abi=%0">;
396 def warn_drv_unsupported_float_abi_by_lib : Warning<
397   "float ABI '%0' is not supported by current library">,
398   InGroup<DiagGroup<"unsupported-abi">>;
399 def warn_ignoring_ftabstop_value : Warning<
400   "ignoring invalid -ftabstop value '%0', using default value %1">;
401 def warn_drv_overriding_flag_option : Warning<
402   "overriding '%0' option with '%1'">,
403   InGroup<DiagGroup<"overriding-t-option">>;
404 def warn_drv_treating_input_as_cxx : Warning<
405   "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">,
406   InGroup<Deprecated>;
407 def warn_drv_pch_not_first_include : Warning<
408   "precompiled header '%0' was ignored because '%1' is not first '-include'">;
409 def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">,
410   InGroup<DiagGroup<"missing-sysroot">>;
411 def warn_incompatible_sysroot : Warning<"using sysroot for '%0' but targeting '%1'">,
412   InGroup<DiagGroup<"incompatible-sysroot">>;
413 def warn_debug_compression_unavailable : Warning<"cannot compress debug sections (zlib not enabled)">,
414   InGroup<DiagGroup<"debug-compression-unavailable">>;
415 def warn_drv_disabling_vptr_no_rtti_default : Warning<
416   "implicitly disabling vptr sanitizer because rtti wasn't enabled">,
417   InGroup<AutoDisableVptrSanitizer>;
418 def warn_drv_object_size_disabled_O0 : Warning<
419   "the object size sanitizer has no effect at -O0, but is explicitly enabled: %0">,
420   InGroup<InvalidCommandLineArgument>, DefaultWarnNoWerror;
421 def warn_ignoring_verify_debuginfo_preserve_export : Warning<
422   "ignoring -fverify-debuginfo-preserve-export=%0 because "
423   "-fverify-debuginfo-preserve wasn't enabled">,
424   InGroup<UnusedCommandLineArgument>;
425 def warn_unsupported_branch_protection: Warning <
426   "invalid branch protection option '%0' in '%1'">, InGroup<BranchProtection>;
427 def err_sls_hardening_arm_not_supported : Error<
428   "-mharden-sls is only supported on armv7-a or later">;
429
430 def note_drv_command_failed_diag_msg : Note<
431   "diagnostic msg: %0">;
432 def note_drv_t_option_is_global : Note<
433   "the last '/TC' or '/TP' option takes precedence over earlier instances">;
434 def note_drv_address_sanitizer_debug_runtime : Note<
435   "AddressSanitizer doesn't support linking with debug runtime libraries yet">;
436 def note_drv_use_standard : Note<"use '%0'"
437   "%select{| or '%3'|, '%3', or '%4'|, '%3', '%4', or '%5'}2 "
438   "for '%1' standard">;
439
440 def err_analyzer_config_no_value : Error<
441   "analyzer-config option '%0' has a key but no value">;
442 def err_analyzer_config_multiple_values : Error<
443   "analyzer-config option '%0' should contain only one '='">;
444 def err_analyzer_config_invalid_input : Error<
445   "invalid input for analyzer-config option '%0', that expects %1 value">;
446 def err_analyzer_config_unknown : Error<"unknown analyzer-config '%0'">;
447 def err_analyzer_checker_option_unknown : Error<
448   "checker '%0' has no option called '%1'">;
449 def err_analyzer_checker_option_invalid_input : Error<
450   "invalid input for checker option '%0', that expects %1">;
451 def err_analyzer_checker_incompatible_analyzer_option : Error<
452   "checker cannot be enabled with analyzer option '%0' == %1">;
453 def err_analyzer_not_built_with_z3 : Error<
454   "analyzer constraint manager 'z3' is only available if LLVM was built with "
455   "-DLLVM_ENABLE_Z3_SOLVER=ON">;
456 def warn_analyzer_deprecated_option : Warning<
457   "analyzer option '%0' is deprecated. This flag will be removed in %1, and "
458   "passing this option will be an error.">,
459   InGroup<DeprecatedStaticAnalyzerFlag>;
460
461 def warn_drv_needs_hvx : Warning<
462   "%0 requires HVX, use -mhvx/-mhvx= to enable it">,
463   InGroup<OptionIgnored>;
464 def err_drv_needs_hvx : Error<
465   "%0 requires HVX, use -mhvx/-mhvx= to enable it">;
466 def err_drv_needs_hvx_version : Error<
467   "%0 is not supported on HVX %1">;
468
469 def err_drv_module_header_wrong_kind : Error<
470   "header file '%0' input type '%1' does not match type of prior input "
471   "in module compilation; use '-x %2' to override">;
472 def err_drv_modules_validate_once_requires_timestamp : Error<
473   "option '-fmodules-validate-once-per-build-session' requires "
474   "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">;
475
476 def err_test_module_file_extension_format : Error<
477   "-ftest-module-file-extension argument '%0' is not of the required form "
478   "'blockname:major:minor:hashed:user info'">;
479
480 def err_drv_extract_api_wrong_kind : Error<
481   "header file '%0' input '%1' does not match the type of prior input "
482   "in api extraction; use '-x %2' to override">;
483
484 def warn_slash_u_filename : Warning<"'/U%0' treated as the '/U' option">,
485   InGroup<DiagGroup<"slash-u-filename">>;
486 def note_use_dashdash : Note<
487   "use '--' to treat subsequent arguments as filenames">;
488
489 def err_drv_ropi_rwpi_incompatible_with_pic : Error<
490   "embedded and GOT-based position independence are incompatible">;
491 def err_drv_ropi_incompatible_with_cxx : Error<
492   "ROPI is not compatible with c++">;
493
494 def err_stack_tagging_requires_hardware_feature : Error<
495   "'-fsanitize=memtag-stack' requires hardware support (+memtag). For Armv8 or "
496   "Armv9, try compiling with -march=armv8a+memtag or -march=armv9a+memtag">;
497
498 def err_cmse_pi_are_incompatible : Error<
499   "cmse is not compatible with %select{RWPI|ROPI}0">;
500
501 def warn_target_unsupported_nan2008 : Warning<
502   "ignoring '-mnan=2008' option because the '%0' architecture does not support it">,
503   InGroup<UnsupportedNan>;
504 def warn_target_unsupported_nanlegacy : Warning<
505   "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">,
506   InGroup<UnsupportedNan>;
507 def warn_target_unsupported_abslegacy : Warning<
508   "ignoring '-mabs=legacy' option because the '%0' architecture does not support it">,
509   InGroup<UnsupportedAbs>;
510 def warn_target_unsupported_abs2008 : Warning<
511   "ignoring '-mabs=2008' option because the '%0' architecture does not support it">,
512   InGroup<UnsupportedAbs>;
513 def warn_target_unsupported_compact_branches : Warning<
514   "ignoring '-mcompact-branches=' option because the '%0' architecture does not"
515   " support it">, InGroup<UnsupportedCB>;
516 def warn_target_unsupported_extension : Warning<
517   "ignoring extension '%0' because the '%1' architecture does not support it">,
518    InGroup<InvalidCommandLineArgument>;
519 def warn_drv_unsupported_gpopt : Warning<
520   "ignoring '-mgpopt' option as it cannot be used with %select{|the implicit"
521   " usage of }0-mabicalls">,
522   InGroup<UnsupportedGPOpt>;
523 def warn_drv_unsupported_sdata : Warning<
524   "ignoring '-msmall-data-limit=' with -mcmodel=large for -fpic or RV64">,
525   InGroup<OptionIgnored>;
526 def warn_drv_unsupported_longcalls : Warning<
527   "ignoring '-mlong-calls' option as it is not currently supported with "
528   "%select{|the implicit usage of }0-mabicalls">,
529   InGroup<OptionIgnored>;
530 def warn_drv_unsupported_pic_with_mabicalls : Warning<
531   "ignoring '%0' option as it cannot be used with "
532   "%select{implicit usage of|}1 -mabicalls and the N64 ABI">,
533   InGroup<OptionIgnored>;
534 def err_drv_unsupported_noabicalls_pic : Error<
535   "position-independent code requires '-mabicalls'">;
536 def err_drv_unsupported_indirect_jump_opt : Error<
537   "'-mindirect-jump=%0' is unsupported with the '%1' architecture">;
538 def err_drv_unknown_indirect_jump_opt : Error<
539   "unknown '-mindirect-jump=' option '%0'">;
540 def err_drv_unsupported_fpatchable_function_entry_argument : Error<
541   "the second argument of '-fpatchable-function-entry' must be smaller than the first argument">;
542
543 def warn_drv_unable_to_find_directory_expected : Warning<
544   "unable to find %0 directory, expected to be in '%1'">,
545   InGroup<InvalidOrNonExistentDirectory>, DefaultIgnore;
546
547 def warn_drv_ps_force_pic : Warning<
548   "option '%0' was ignored by the %1 toolchain, using '-fPIC'">,
549   InGroup<OptionIgnored>;
550
551 def warn_drv_ps_sdk_dir : Warning<
552   "environment variable '%0' is set, but points to invalid or nonexistent directory '%1'">,
553   InGroup<InvalidOrNonExistentDirectory>;
554
555 def err_drv_defsym_invalid_format : Error<"defsym must be of the form: sym=value: %0">;
556 def err_drv_defsym_invalid_symval : Error<"value is not an integer: %0">;
557 def warn_drv_msvc_not_found : Warning<
558   "unable to find a Visual Studio installation; "
559   "try running Clang from a developer command prompt">,
560   InGroup<DiagGroup<"msvc-not-found">>;
561
562 def warn_drv_fuse_ld_path : Warning<
563   "'-fuse-ld=' taking a path is deprecated; use '--ld-path=' instead">,
564   InGroup<FUseLdPath>, DefaultIgnore;
565
566 def warn_drv_fine_grained_bitfield_accesses_ignored : Warning<
567   "option '-ffine-grained-bitfield-accesses' cannot be enabled together with a sanitizer; flag ignored">,
568   InGroup<OptionIgnored>;
569
570 def note_drv_verify_prefix_spelling : Note<
571   "-verify prefixes must start with a letter and contain only alphanumeric"
572   " characters, hyphens, and underscores">;
573
574 def warn_drv_global_isel_incomplete : Warning<
575   "-fglobal-isel support for the '%0' architecture is incomplete">,
576   InGroup<GlobalISel>;
577
578 def warn_drv_global_isel_incomplete_opt : Warning<
579   "-fglobal-isel support is incomplete for this architecture at the current optimization level">,
580   InGroup<GlobalISel>;
581
582 def warn_drv_moutline_unsupported_opt : Warning<
583   "'%0' does not support '-moutline'; flag ignored">,
584   InGroup<OptionIgnored>;
585
586 def warn_drv_moutline_atomics_unsupported_opt : Warning<
587   "'%0' does not support '-%1'; flag ignored">,
588   InGroup<OptionIgnored>;
589
590 def warn_drv_darwin_sdk_invalid_settings : Warning<
591   "SDK settings were ignored as 'SDKSettings.json' could not be parsed">,
592   InGroup<DiagGroup<"darwin-sdk-settings">>;
593
594 def err_drv_trivial_auto_var_init_zero_disabled : Error<
595   "'-ftrivial-auto-var-init=zero' hasn't been enabled; enable it at your own "
596   "peril for benchmarking purpose only with "
597   "'-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang'">;
598
599 def err_drv_trivial_auto_var_init_stop_after_missing_dependency : Error<
600   "'-ftrivial-auto-var-init-stop-after=*' is used without "
601   "'-ftrivial-auto-var-init=zero' or '-ftrivial-auto-var-init=pattern'">;
602
603 def err_drv_trivial_auto_var_init_stop_after_invalid_value : Error<
604   "'-ftrivial-auto-var-init-stop-after=*' only accepts positive integers">;
605
606 def warn_drv_msp430_hwmult_unsupported : Warning<
607   "the given MCU does not support hardware multiply, but '-mhwmult' is set to "
608   "%0">, InGroup<InvalidCommandLineArgument>;
609 def warn_drv_msp430_hwmult_mismatch : Warning<
610   "the given MCU supports %0 hardware multiply, but '-mhwmult' is set to %1">,
611    InGroup<InvalidCommandLineArgument>;
612 def warn_drv_msp430_hwmult_no_device : Warning<
613   "no MCU device specified, but '-mhwmult' is set to 'auto', assuming no "
614   "hardware multiply; use '-mmcu' to specify an MSP430 device, or '-mhwmult' "
615   "to set the hardware multiply type explicitly">,
616   InGroup<InvalidCommandLineArgument>;
617
618 def warn_drv_libstdcxx_not_found : Warning<
619   "include path for libstdc++ headers not found; pass '-stdlib=libc++' on the "
620   "command line to use the libc++ standard library instead">,
621   InGroup<DiagGroup<"stdlibcxx-not-found">>;
622
623 def err_drv_cannot_mix_options : Error<"cannot specify '%1' along with '%0'">;
624
625 def err_drv_invalid_object_mode : Error<
626   "OBJECT_MODE setting %0 is not recognized and is not a valid setting">;
627
628 def err_aix_unsupported_tls_model : Error<"TLS model '%0' is not yet supported on AIX">;
629
630 def err_invalid_cxx_abi : Error<"invalid C++ ABI name '%0'">;
631 def err_unsupported_cxx_abi : Error<"C++ ABI '%0' is not supported on target triple '%1'">;
632
633 def note_cc1_round_trip_original : Note<"original arguments in round-trip: %0">;
634 def note_cc1_round_trip_generated : Note<
635   "generated arguments #%0 in round-trip: %1">;
636 def remark_cc1_round_trip_generated : Remark<
637   "generated arguments #%0 in round-trip: %1">, InGroup<RoundTripCC1Args>;
638 def err_cc1_round_trip_fail_then_ok : Error<
639   "original arguments parse failed, then succeeded in round-trip">;
640 def err_cc1_round_trip_ok_then_fail : Error<
641   "generated arguments parse failed in round-trip">;
642 def err_cc1_round_trip_mismatch : Error<
643   "generated arguments do not match in round-trip">;
644 def err_cc1_unbounded_vscale_min : Error<
645   "minimum vscale must be an unsigned integer greater than 0">;
646
647 def err_drv_ssp_missing_offset_argument : Error<
648   "'%0' is used without '-mstack-protector-guard-offset', and there is no default">;
649
650 def err_drv_only_one_offload_target_supported : Error<
651   "only one offload target is supported">;
652 def err_drv_invalid_or_unsupported_offload_target : Error<
653   "invalid or unsupported offload target: '%0'">;
654 def err_drv_cuda_offload_only_emit_bc : Error<
655   "CUDA offload target is supported only along with --emit-llvm">;
656
657 def warn_drv_jmc_requires_debuginfo : Warning<
658   "%0 requires debug info. Use %1 or debug options that enable debugger's "
659   "stepping function; option ignored">,
660   InGroup<OptionIgnored>;
661
662 def warn_drv_fjmc_for_elf_only : Warning<
663   "-fjmc works only for ELF; option ignored">,
664   InGroup<OptionIgnored>;
665
666 def err_drv_target_variant_invalid : Error<
667   "unsupported '%0' value '%1'; use 'ios-macabi' instead">;
668
669 def err_drv_invalid_directx_shader_module : Error<
670   "invalid profile : %0">;
671 def err_drv_dxc_missing_target_profile : Error<
672   "target profile option (-T) is missing">;
673
674 def err_drv_invalid_range_dxil_validator_version : Error<
675   "invalid validator version : %0\n"
676   "Validator version must be less than or equal to current internal version.">;
677 def err_drv_invalid_format_dxil_validator_version : Error<
678   "invalid validator version : %0\n"
679   "Format of validator version is \"<major>.<minor>\" (ex:\"1.4\").">;
680 def err_drv_invalid_empty_dxil_validator_version : Error<
681   "invalid validator version : %0\n"
682   "If validator major version is 0, minor version must also be 0.">;
683 }