@@ -52,42 +52,50 @@ def warn_drv_avr_stdlib_not_linked: Warning<
52
52
"standard library not linked and so no interrupt vector table or "
53
53
"compiler runtime routines will be linked">,
54
54
InGroup<AVRRtlibLinkingQuirks>;
55
- def err_drv_cuda_bad_gpu_arch : Error<"Unsupported CUDA gpu architecture: %0">;
55
+ def err_drv_cuda_bad_gpu_arch : Error<"unsupported CUDA gpu architecture: %0">;
56
56
def err_drv_no_cuda_installation : Error<
57
- "cannot find CUDA installation. Provide its path via --cuda-path, or pass "
58
- "-nocudainc to build without CUDA includes. ">;
57
+ "cannot find CUDA installation; provide its path via ' --cuda-path' , or pass "
58
+ "' -nocudainc' to build without CUDA includes">;
59
59
def err_drv_no_cuda_libdevice : Error<
60
- "cannot find libdevice for %0. Provide path to different CUDA installation "
61
- "via --cuda-path, or pass -nocudalib to build without linking with libdevice.">;
60
+ "cannot find libdevice for %0; provide path to different CUDA installation "
61
+ "via '--cuda-path', or pass '-nocudalib' to build without linking with "
62
+ "libdevice">;
62
63
63
64
def err_drv_no_rocm_device_lib : Error<
64
- "cannot find ROCm device library%select{| for %1}0. Provide its path via --rocm-path or "
65
- "--rocm-device-lib-path, or pass -nogpulib to build without ROCm device library.">;
65
+ "cannot find ROCm device library%select{| for %1}0; provide its path via "
66
+ "'--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build "
67
+ "without ROCm device library">;
66
68
def err_drv_no_hip_runtime : Error<
67
- "cannot find HIP runtime. Provide its path via --rocm-path, or pass "
68
- "-nogpuinc to build without HIP runtime. ">;
69
+ "cannot find HIP runtime; provide its path via ' --rocm-path' , or pass "
70
+ "' -nogpuinc' to build without HIP runtime">;
69
71
70
72
def err_drv_undetermined_amdgpu_arch : Error<
71
- "Cannot determine AMDGPU architecture: %0. Consider passing it via --march.">;
73
+ "cannot determine AMDGPU architecture: %0; consider passing it via "
74
+ "'--march'">;
72
75
def err_drv_cuda_version_unsupported : Error<
73
76
"GPU arch %0 is supported by CUDA versions between %1 and %2 (inclusive), "
74
- "but installation at %3 is %4. Use --cuda-path to specify a different CUDA "
75
- "install, pass a different GPU arch with --cuda-gpu-arch, or pass "
76
- "--no-cuda-version-check. ">;
77
+ "but installation at %3 is %4; use ' --cuda-path' to specify a different CUDA "
78
+ "install, pass a different GPU arch with ' --cuda-gpu-arch' , or pass "
79
+ "' --no-cuda-version-check' ">;
77
80
def warn_drv_unknown_cuda_version: Warning<
78
- "Unknown CUDA version. %0 Assuming the latest supported version %1">,
81
+ "unknown CUDA version: %0; assuming the latest supported version %1">,
79
82
InGroup<CudaUnknownVersion>;
80
- def err_drv_cuda_host_arch : Error<"unsupported architecture '%0' for host compilation.">;
83
+ def err_drv_cuda_host_arch : Error<
84
+ "unsupported architecture '%0' for host compilation">;
81
85
def err_drv_no_sycl_libspirv : Error<
82
86
"cannot find 'libspirv-nvptx64--nvidiacl.bc'; provide path to libspirv "
83
87
"library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build "
84
88
"without linking with libspirv">;
85
- def err_drv_mix_cuda_hip : Error<"Mixed Cuda and HIP compilation is not supported.">;
86
- def err_drv_bad_target_id : Error<"Invalid target ID: %0 (A target ID is a processor name "
87
- "followed by an optional list of predefined features post-fixed by a plus or minus sign deliminated "
88
- "by colon, e.g. 'gfx908:sramecc+:xnack-')">;
89
- def err_drv_bad_offload_arch_combo : Error<"Invalid offload arch combinations: %0 and %1 (For a specific "
90
- "processor, a feature should either exist in all offload archs, or not exist in any offload archs)">;
89
+ def err_drv_mix_cuda_hip : Error<
90
+ "mixed CUDA and HIP compilation is not supported">;
91
+ def err_drv_bad_target_id : Error<
92
+ "invalid target ID '%0'; format is a processor name followed by an optional "
93
+ "colon-delimited list of features followed by an enable/disable sign (e.g., "
94
+ "'gfx908:sramecc+:xnack-')">;
95
+ def err_drv_bad_offload_arch_combo : Error<
96
+ "invalid offload arch combinations: '%0' and '%1' (for a specific processor, "
97
+ "a feature should either exist in all offload archs, or not exist in any "
98
+ "offload archs)">;
91
99
def err_drv_invalid_thread_model_for_target : Error<
92
100
"invalid thread model '%0' in '%1' for this target">;
93
101
def err_drv_invalid_linker_name : Error<
@@ -211,7 +219,7 @@ def err_target_unsupported_arch
211
219
def err_cpu_unsupported_isa
212
220
: Error<"CPU '%0' does not support '%1' execution mode">;
213
221
def err_arch_unsupported_isa
214
- : Error<"Architecture '%0' does not support '%1' execution mode">;
222
+ : Error<"architecture '%0' does not support '%1' execution mode">;
215
223
216
224
def err_drv_I_dash_not_supported : Error<
217
225
"'%0' not supported, please use -iquote instead">;
@@ -283,11 +291,13 @@ def err_drv_invalid_sycl_target : Error<"SYCL target is invalid: '%0'">;
283
291
def err_drv_incompatible_omp_arch : Error<"OpenMP target architecture '%0' pointer size is incompatible with host '%1'">;
284
292
def err_drv_option_conflict : Error<"The option %0 conflicts with %1">;
285
293
def err_drv_omp_host_ir_file_not_found : Error<
286
- "The provided host compiler IR file '%0' is required to generate code for OpenMP target regions but cannot be found.">;
294
+ "provided host compiler IR file '%0' is required to generate code for OpenMP "
295
+ "target regions but cannot be found">;
287
296
def err_drv_omp_host_target_not_supported : Error<
288
- "The target '%0' is not a supported OpenMP host target. ">;
297
+ "target '%0' is not a supported OpenMP host target">;
289
298
def err_drv_expecting_fopenmp_with_fopenmp_targets : Error<
290
- "The option -fopenmp-targets must be used in conjunction with a -fopenmp option compatible with offloading, please use -fopenmp=libomp or -fopenmp=libiomp5.">;
299
+ "'-fopenmp-targets' must be used in conjunction with a '-fopenmp' option "
300
+ "compatible with offloading; e.g., '-fopenmp=libomp' or '-fopenmp=libiomp5'">;
291
301
def err_drv_expecting_fsycl_with_sycl_opt : Error<
292
302
"'%0' must be used in conjunction with '-fsycl' to enable offloading">;
293
303
def err_drv_fsycl_with_c_type : Error<
@@ -296,12 +306,15 @@ def warn_drv_sycl_offload_target_duplicate : Warning<
296
306
"SYCL offloading target '%0' is similar to target '%1' already specified; "
297
307
"will be ignored">, InGroup<SyclTarget>;
298
308
def err_drv_omp_offload_target_missingbcruntime : Error<
299
- "No library '%0' found in the default clang lib directory or in LIBRARY_PATH. Please use --libomptarget-%1-bc-path to specify %1 bitcode library.">;
300
- def err_drv_omp_offload_target_bcruntime_not_found : Error<"Bitcode library '%0' does not exist.">;
301
- def err_drv_omp_offload_target_cuda_version_not_support : Error<"NVPTX target requires CUDA 9.2 or above. CUDA %0 is detected.">;
309
+ "no library '%0' found in the default clang lib directory or in LIBRARY_PATH"
310
+ "; use '--libomptarget-%1-bc-path' to specify %1 bitcode library">;
311
+ def err_drv_omp_offload_target_bcruntime_not_found : Error<
312
+ "bitcode library '%0' does not exist">;
313
+ def err_drv_omp_offload_target_cuda_version_not_support : Error<
314
+ "NVPTX target requires CUDA 9.2 or above; CUDA %0 detected">;
302
315
def warn_drv_omp_offload_target_duplicate : Warning<
303
- "The OpenMP offloading target '%0' is similar to target '%1' already specified - will be ignored.">,
304
- InGroup<OpenMPTarget>;
316
+ "OpenMP offloading target '%0' is similar to target '%1' already specified; "
317
+ "will be ignored">, InGroup<OpenMPTarget>;
305
318
def err_drv_unsupported_embed_bitcode
306
319
: Error<"%0 is not supported with -fembed-bitcode">;
307
320
def err_drv_bitcode_unsupported_on_toolchain : Error<
@@ -328,7 +341,8 @@ def warn_drv_unsupported_debug_info_opt_for_target : Warning<
328
341
"debug information option '%0' is not supported for target '%1'">,
329
342
InGroup<UnsupportedTargetOpt>;
330
343
def warn_drv_dwarf_version_limited_by_target : Warning<
331
- "debug information option '%0' is not supported. It needs DWARF-%2 but target '%1' only provides DWARF-%3.">,
344
+ "debug information option '%0' is not supported; requires DWARF-%2 but "
345
+ "target '%1' only provides DWARF-%3">,
332
346
InGroup<UnsupportedTargetOpt>;
333
347
def warn_c_kext : Warning<
334
348
"ignoring -fapple-kext which is valid for C++ and Objective-C++ only">;
@@ -399,7 +413,7 @@ def err_sls_hardening_arm_not_supported : Error<
399
413
def note_drv_command_failed_diag_msg : Note<
400
414
"diagnostic msg: %0">;
401
415
def note_drv_t_option_is_global : Note<
402
- "The last /TC or /TP option takes precedence over earlier instances">;
416
+ "the last ' /TC' or ' /TP' option takes precedence over earlier instances">;
403
417
def note_drv_address_sanitizer_debug_runtime : Note<
404
418
"AddressSanitizer doesn't support linking with debug runtime libraries yet">;
405
419
def note_drv_use_standard : Note<"use '%0'"
@@ -439,7 +453,8 @@ def err_test_module_file_extension_format : Error<
439
453
440
454
def warn_slash_u_filename : Warning<"'/U%0' treated as the '/U' option">,
441
455
InGroup<DiagGroup<"slash-u-filename">>;
442
- def note_use_dashdash : Note<"Use '--' to treat subsequent arguments as filenames">;
456
+ def note_use_dashdash : Note<
457
+ "use '--' to treat subsequent arguments as filenames">;
443
458
444
459
def err_drv_ropi_rwpi_incompatible_with_pic : Error<
445
460
"embedded and GOT-based position independence are incompatible">;
@@ -508,14 +523,14 @@ def warn_drv_ps4_sdk_dir : Warning<
508
523
509
524
def err_drv_unsupported_linker : Error<"unsupported value '%0' for -linker option">;
510
525
def err_drv_defsym_invalid_format : Error<"defsym must be of the form: sym=value: %0">;
511
- def err_drv_defsym_invalid_symval : Error<"Value is not an integer: %0">;
526
+ def err_drv_defsym_invalid_symval : Error<"value is not an integer: %0">;
512
527
def warn_drv_msvc_not_found : Warning<
513
528
"unable to find a Visual Studio installation; "
514
529
"try running Clang from a developer command prompt">,
515
530
InGroup<DiagGroup<"msvc-not-found">>;
516
531
517
532
def warn_drv_fuse_ld_path : Warning<
518
- "'-fuse-ld=' taking a path is deprecated. Use '--ld-path=' instead">,
533
+ "'-fuse-ld=' taking a path is deprecated; use '--ld-path=' instead">,
519
534
InGroup<FUseLdPath>, DefaultIgnore;
520
535
521
536
def warn_drv_fine_grained_bitfield_accesses_ignored : Warning<
@@ -535,37 +550,40 @@ def warn_drv_global_isel_incomplete_opt : Warning<
535
550
InGroup<GlobalISel>;
536
551
537
552
def warn_drv_moutline_unsupported_opt : Warning<
538
- "The '%0' architecture does not support -moutline; flag ignored">,
553
+ "'%0' does not support ' -moutline' ; flag ignored">,
539
554
InGroup<OptionIgnored>;
540
555
541
556
def warn_drv_moutline_atomics_unsupported_opt : Warning<
542
- "The '%0' architecture does not support -moutline-atomics; flag ignored">,
557
+ "'%0' does not support ' -moutline-atomics' ; flag ignored">,
543
558
InGroup<OptionIgnored>;
544
559
545
560
def warn_drv_darwin_sdk_invalid_settings : Warning<
546
561
"SDK settings were ignored as 'SDKSettings.json' could not be parsed">,
547
562
InGroup<DiagGroup<"darwin-sdk-settings">>;
548
563
549
564
def err_drv_trivial_auto_var_init_zero_disabled : Error<
550
- "-ftrivial-auto-var-init=zero hasn't been enabled. Enable it at your own peril for benchmarking purpose only with "
551
- "-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang">;
565
+ "'-ftrivial-auto-var-init=zero' hasn't been enabled; enable it at your own "
566
+ "peril for benchmarking purpose only with "
567
+ "'-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang'">;
552
568
553
569
def err_drv_trivial_auto_var_init_stop_after_missing_dependency : Error<
554
- "-ftrivial-auto-var-init-stop-after=* is used without -ftrivial-auto-var-init=zero or -ftrivial-auto-var-init=pattern.">;
570
+ "'-ftrivial-auto-var-init-stop-after=*' is used without "
571
+ "'-ftrivial-auto-var-init=zero' or '-ftrivial-auto-var-init=pattern'">;
555
572
556
573
def err_drv_trivial_auto_var_init_stop_after_invalid_value : Error<
557
- "-ftrivial-auto-var-init-stop-after=* only accepts positive integers. ">;
574
+ "' -ftrivial-auto-var-init-stop-after=*' only accepts positive integers">;
558
575
559
- def warn_drv_msp430_hwmult_unsupported : Warning<"the given MCU does not "
560
- "support hardware multiply, but -mhwmult is set to %0.">,
576
+ def warn_drv_msp430_hwmult_unsupported : Warning<
577
+ "the given MCU does not support hardware multiply, but '-mhwmult' is set to "
578
+ "%0">, InGroup<InvalidCommandLineArgument>;
579
+ def warn_drv_msp430_hwmult_mismatch : Warning<
580
+ "the given MCU supports %0 hardware multiply, but '-mhwmult' is set to %1">,
561
581
InGroup<InvalidCommandLineArgument>;
562
- def warn_drv_msp430_hwmult_mismatch : Warning<"the given MCU supports %0 "
563
- "hardware multiply, but -mhwmult is set to %1.">,
564
- InGroup<InvalidCommandLineArgument>;
565
- def warn_drv_msp430_hwmult_no_device : Warning<"no MCU device specified, but "
566
- "'-mhwmult' is set to 'auto', assuming no hardware multiply. Use -mmcu to "
567
- "specify a MSP430 device, or -mhwmult to set hardware multiply type "
568
- "explicitly.">, InGroup<InvalidCommandLineArgument>;
582
+ def warn_drv_msp430_hwmult_no_device : Warning<
583
+ "no MCU device specified, but '-mhwmult' is set to 'auto', assuming no "
584
+ "hardware multiply; use '-mmcu' to specify an MSP430 device, or '-mhwmult' "
585
+ "to set the hardware multiply type explicitly">,
586
+ InGroup<InvalidCommandLineArgument>;
569
587
570
588
def warn_drv_libstdcxx_not_found : Warning<
571
589
"include path for libstdc++ headers not found; pass '-stdlib=libc++' on the "
@@ -574,17 +592,23 @@ def warn_drv_libstdcxx_not_found : Warning<
574
592
575
593
def err_drv_cannot_mix_options : Error<"cannot specify '%1' along with '%0'">;
576
594
577
- def err_drv_invalid_object_mode : Error<"OBJECT_MODE setting %0 is not recognized and is not a valid setting.">;
595
+ def err_drv_invalid_object_mode : Error<
596
+ "OBJECT_MODE setting %0 is not recognized and is not a valid setting">;
578
597
579
598
def err_aix_unsupported_tls_model : Error<"TLS model '%0' is not yet supported on AIX">;
580
599
581
- def err_invalid_cxx_abi : Error<"Invalid C++ ABI name '%0'">;
600
+ def err_invalid_cxx_abi : Error<"invalid C++ ABI name '%0'">;
582
601
def err_unsupported_cxx_abi : Error<"C++ ABI '%0' is not supported on target triple '%1'">;
583
602
584
- def note_cc1_round_trip_original : Note<"Original arguments in round-trip: %0">;
585
- def note_cc1_round_trip_generated : Note<"Generated arguments #%0 in round-trip: %1">;
586
- def remark_cc1_round_trip_generated : Remark<"Generated arguments #%0 in round-trip: %1">, InGroup<RoundTripCC1Args>;
587
- def err_cc1_round_trip_fail_then_ok : Error<"Original arguments parse failed, then succeeded in round-trip">;
588
- def err_cc1_round_trip_ok_then_fail : Error<"Generated arguments parse failed in round-trip">;
589
- def err_cc1_round_trip_mismatch : Error<"Generated arguments do not match in round-trip">;
603
+ def note_cc1_round_trip_original : Note<"original arguments in round-trip: %0">;
604
+ def note_cc1_round_trip_generated : Note<
605
+ "generated arguments #%0 in round-trip: %1">;
606
+ def remark_cc1_round_trip_generated : Remark<
607
+ "generated arguments #%0 in round-trip: %1">, InGroup<RoundTripCC1Args>;
608
+ def err_cc1_round_trip_fail_then_ok : Error<
609
+ "original arguments parse failed, then succeeded in round-trip">;
610
+ def err_cc1_round_trip_ok_then_fail : Error<
611
+ "generated arguments parse failed in round-trip">;
612
+ def err_cc1_round_trip_mismatch : Error<
613
+ "generated arguments do not match in round-trip">;
590
614
}
0 commit comments