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