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