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