@@ -58,7 +58,7 @@ def warn_drv_avr_stdlib_not_linked: Warning<
58
58
def err_drv_cuda_bad_gpu_arch : Error<"unsupported CUDA gpu architecture: %0">;
59
59
def err_drv_offload_bad_gpu_arch : Error<"unsupported %0 gpu architecture: %1">;
60
60
def err_drv_offload_missing_gpu_arch : Error<
61
- "Must pass in an explicit %0 gpu architecture to '%1'">;
61
+ "must pass in an explicit %0 gpu architecture to '%1'">;
62
62
def err_drv_no_cuda_installation : Error<
63
63
"cannot find CUDA installation; provide its path via '--cuda-path', or pass "
64
64
"'-nocudainc' to build without CUDA includes">;
@@ -90,8 +90,8 @@ def err_drv_no_hipspv_device_lib : Error<
90
90
"'--hip-path' or '--hip-device-lib-path', or pass '-nogpulib' to build "
91
91
"without HIP device library">;
92
92
def err_drv_hipspv_no_hip_path : Error<
93
- "'--hip-path' must be specified when offloading to "
94
- "SPIR-V%select{| unless %1 is given}0. ">;
93
+ "'--hip-path' must be specified when offloading to SPIR-V unless '-nogpuinc' "
94
+ "is given">;
95
95
96
96
// TODO: Remove when COV6 is fully supported by ROCm.
97
97
def warn_drv_amdgpu_cov6: Warning<
@@ -137,13 +137,13 @@ def warn_drv_unsupported_option_for_flang : Warning<
137
137
"the argument '%0' is not supported for option '%1'. Mapping to '%1%2'">,
138
138
InGroup<OptionIgnored>;
139
139
def warn_drv_unsupported_diag_option_for_flang : Warning<
140
- "The warning option '-%0' is not supported">,
140
+ "the warning option '-%0' is not supported">,
141
141
InGroup<OptionIgnored>;
142
142
def warn_drv_unsupported_option_for_processor : Warning<
143
143
"ignoring '%0' option as it is not currently supported for processor '%1'">,
144
144
InGroup<OptionIgnored>;
145
145
def warn_drv_unsupported_openmp_library : Warning<
146
- "The library '%0=%1' is not supported, openmp is not be enabled">,
146
+ "the library '%0=%1' is not supported, OpenMP will not be enabled">,
147
147
InGroup<OptionIgnored>;
148
148
149
149
def err_drv_invalid_thread_model_for_target : Error<
@@ -356,7 +356,7 @@ def err_drv_expecting_fopenmp_with_fopenmp_targets : Error<
356
356
"compatible with offloading; e.g., '-fopenmp=libomp' or '-fopenmp=libiomp5'">;
357
357
def err_drv_failed_to_deduce_target_from_arch : Error<
358
358
"failed to deduce triple for target architecture '%0'; specify the triple "
359
- "using '-fopenmp-targets' and '-Xopenmp-target' instead. ">;
359
+ "using '-fopenmp-targets' and '-Xopenmp-target' instead">;
360
360
def err_drv_omp_offload_target_missingbcruntime : Error<
361
361
"no library '%0' found in the default clang lib directory or in LIBRARY_PATH"
362
362
"; use '--libomptarget-%1-bc-path' to specify %1 bitcode library">;
@@ -515,14 +515,6 @@ def err_analyzer_checker_incompatible_analyzer_option : Error<
515
515
def err_analyzer_not_built_with_z3 : Error<
516
516
"analyzer constraint manager 'z3' is only available if LLVM was built with "
517
517
"-DLLVM_ENABLE_Z3_SOLVER=ON">;
518
- def warn_analyzer_deprecated_option : Warning<
519
- "analyzer option '%0' is deprecated. This flag will be removed in %1, and "
520
- "passing this option will be an error.">,
521
- InGroup<DeprecatedStaticAnalyzerFlag>;
522
- def warn_analyzer_deprecated_option_with_alternative : Warning<
523
- "analyzer option '%0' is deprecated. This flag will be removed in %1, and "
524
- "passing this option will be an error. Use '%2' instead.">,
525
- InGroup<DeprecatedStaticAnalyzerFlag>;
526
518
527
519
def warn_drv_needs_hvx : Warning<
528
520
"%0 requires HVX, use -mhvx/-mhvx= to enable it">,
@@ -555,10 +547,12 @@ def err_drv_extract_api_wrong_kind : Error<
555
547
"in api extraction; use '-x %2' to override">;
556
548
557
549
def err_drv_missing_symbol_graph_dir: Error<
558
- "Must provide a symbol graph output directory using --symbol-graph-dir=<directory>">;
550
+ "must provide a symbol graph output directory using "
551
+ "'--symbol-graph-dir=<directory>'">;
559
552
560
553
def err_drv_unexpected_symbol_graph_output : Error<
561
- "Unexpected output symbol graph '%1'; please provide --symbol-graph-dir=<directory> instead">;
554
+ "unexpected output symbol graph '%1'; please provide "
555
+ "'--symbol-graph-dir=<directory>' instead">;
562
556
563
557
def warn_slash_u_filename : Warning<"'/U%0' treated as the '/U' option">,
564
558
InGroup<DiagGroup<"slash-u-filename">>;
@@ -767,19 +761,19 @@ def err_drv_hlsl_16bit_types_unsupported: Error<
767
761
"'%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">;
768
762
def err_drv_hlsl_bad_shader_unsupported : Error<
769
763
"%select{shader model|Vulkan environment|shader stage}0 '%1' in target '%2' is invalid for HLSL code generation">;
770
- def warn_drv_dxc_missing_dxv : Warning<"dxv not found. "
771
- "Resulting DXIL will not be validated or signed for use in release environments.">,
772
- InGroup<DXILValidation>;
764
+ def warn_drv_dxc_missing_dxv : Warning<
765
+ "dxv not found; resulting DXIL will not be validated or signed for use in "
766
+ "release environment">, InGroup<DXILValidation>;
773
767
774
768
def err_drv_invalid_range_dxil_validator_version : Error<
775
- "invalid validator version : %0\n "
776
- "Validator version must be less than or equal to current internal version. ">;
769
+ "invalid validator version : %0; validator version must be less than or "
770
+ "equal to current internal version">;
777
771
def err_drv_invalid_format_dxil_validator_version : Error<
778
- "invalid validator version : %0\n "
779
- "Format of validator version is \"<major>.<minor>\" (ex:\"1.4\"). ">;
772
+ "invalid validator version : %0; format of validator version is "
773
+ "\"<major>.<minor>\" (ex:\"1.4\")">;
780
774
def err_drv_invalid_empty_dxil_validator_version : Error<
781
- "invalid validator version : %0\n "
782
- "If validator major version is 0, minor version must also be 0. ">;
775
+ "invalid validator version : %0; if validator major version is 0, minor "
776
+ "version must also be 0">;
783
777
784
778
def warn_drv_sarif_format_unstable : Warning<
785
779
"diagnostic formatting in SARIF mode is currently unstable">,
@@ -793,12 +787,10 @@ def warn_drv_loongarch_conflicting_implied_val : Warning<
793
787
InGroup<OptionIgnored>;
794
788
def err_drv_loongarch_invalid_mfpu_EQ : Error<
795
789
"invalid argument '%0' to -mfpu=; must be one of: 64, 32, none, 0 (alias for none)">;
796
- def err_drv_loongarch_wrong_fpu_width_for_lsx : Error<
797
- "wrong fpu width; LSX depends on 64-bit FPU.">;
798
- def err_drv_loongarch_wrong_fpu_width_for_lasx : Error<
799
- "wrong fpu width; LASX depends on 64-bit FPU.">;
790
+ def err_drv_loongarch_wrong_fpu_width : Error<
791
+ "wrong fpu width; %select{LSX|LASX}0 depends on 64-bit FPU">;
800
792
def err_drv_loongarch_invalid_simd_option_combination : Error<
801
- "invalid option combination; LASX depends on LSX. ">;
793
+ "invalid option combination; LASX depends on LSX">;
802
794
803
795
def err_drv_expand_response_file : Error<
804
796
"failed to expand response file: %0">;
@@ -810,9 +802,9 @@ def note_drv_available_multilibs : Note<
810
802
"available multilibs are:%0">;
811
803
812
804
def warn_android_unversioned_fallback : Warning<
813
- "Using unversioned Android target directory %0 for target %1. Unversioned "
814
- " directories will not be used in Clang 19. Provide a versioned directory"
815
- " for the target version or lower instead. ">,
805
+ "using unversioned Android target directory %0 for target %1; unversioned "
806
+ "directories will not be used in Clang 19 -- provide a versioned directory "
807
+ "for the target version or lower instead">,
816
808
InGroup<DiagGroup<"android-unversioned-fallback">>;
817
809
818
810
def err_drv_triple_version_invalid : Error<
0 commit comments