]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/clang/Basic/DiagnosticDriverKinds.td
Vendor import of clang trunk r300422:
[FreeBSD/FreeBSD.git] / include / clang / Basic / DiagnosticDriverKinds.td
1 //==--- DiagnosticDriverKinds.td - libdriver diagnostics ------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 let Component = "Driver" in {
11
12 def err_drv_no_such_file : Error<"no such file or directory: '%0'">;
13 def err_drv_unsupported_opt : Error<"unsupported option '%0'">;
14 def err_drv_unsupported_opt_for_target : Error<
15   "unsupported option '%0' for target '%1'">;
16 def err_drv_unsupported_option_argument : Error<
17   "unsupported argument '%1' to option '%0'">;
18 def err_drv_unknown_stdin_type : Error<
19   "-E or -x required when input is from standard input">;
20 def err_drv_unknown_stdin_type_clang_cl : Error<
21   "use /Tc or /Tp to set input type for standard input">;
22 def err_drv_unknown_language : Error<"language not recognized: '%0'">;
23 def err_drv_invalid_arch_name : Error<
24   "invalid arch name '%0'">;
25 def err_drv_cuda_bad_gpu_arch : Error<"Unsupported CUDA gpu architecture: %0">;
26 def err_drv_no_cuda_installation : Error<
27   "cannot find CUDA installation.  Provide its path via --cuda-path, or pass "
28   "-nocudainc to build without CUDA includes.">;
29 def err_drv_no_cuda_libdevice : Error<
30   "cannot find libdevice for %0. Provide path to different CUDA installation "
31   "via --cuda-path, or pass -nocudalib to build without linking with libdevice.">;
32 def err_drv_cuda_version_too_low : Error<
33   "GPU arch %1 requires CUDA version at least %3, but installation at %0 is %2. "
34   "Use --cuda-path to specify a different CUDA install, or pass "
35   "--no-cuda-version-check.">;
36 def err_drv_cuda_nvptx_host : Error<"unsupported use of NVPTX for host compilation.">;
37 def err_drv_invalid_thread_model_for_target : Error<
38   "invalid thread model '%0' in '%1' for this target">;
39 def err_drv_invalid_linker_name : Error<
40   "invalid linker name in argument '%0'">;
41 def err_drv_invalid_pgo_instrumentor : Error<
42   "invalid PGO instrumentor in argument '%0'">;
43 def err_drv_invalid_rtlib_name : Error<
44   "invalid runtime library name in argument '%0'">;
45 def err_drv_unsupported_rtlib_for_platform : Error<
46   "unsupported runtime library '%0' for platform '%1'">;
47 def err_drv_invalid_stdlib_name : Error<
48   "invalid library name in argument '%0'">;
49 def err_drv_invalid_output_with_multiple_archs : Error<
50   "cannot use '%0' output with multiple -arch options">;
51 def err_drv_no_input_files : Error<"no input files">;
52 def err_drv_use_of_Z_option : Error<
53   "unsupported use of internal gcc -Z option '%0'">;
54 def err_drv_output_argument_with_multiple_files : Error<
55   "cannot specify -o when generating multiple output files">;
56 def err_drv_out_file_argument_with_multiple_sources : Error<
57   "cannot specify '%0%1' when compiling multiple source files">;
58 def err_no_external_assembler : Error<
59   "there is no external assembler that can be used on this platform">;
60 def err_drv_unable_to_remove_file : Error<
61   "unable to remove file: %0">;
62 def err_drv_command_failure : Error<
63   "unable to execute command: %0">;
64 def err_drv_invalid_darwin_version : Error<
65   "invalid Darwin version number: %0">;
66 def err_drv_missing_argument : Error<
67   "argument to '%0' is missing (expected %1 value%s1)">;
68 def err_drv_invalid_Xarch_argument_with_args : Error<
69   "invalid Xarch argument: '%0', options requiring arguments are unsupported">;
70 def err_drv_invalid_Xarch_argument_isdriver : Error<
71   "invalid Xarch argument: '%0', cannot change driver behavior inside Xarch argument">;
72 def err_drv_argument_only_allowed_with : Error<
73   "invalid argument '%0' only allowed with '%1'">;
74 def err_drv_argument_not_allowed_with : Error<
75   "invalid argument '%0' not allowed with '%1'">;
76 def err_drv_invalid_version_number : Error<
77   "invalid version number in '%0'">;
78 def err_drv_no_linker_llvm_support : Error<
79   "'%0': unable to pass LLVM bit-code files to linker">;
80 def err_drv_no_ast_support : Error<
81   "'%0': unable to use AST files with this tool">;
82 def err_drv_no_module_support : Error<
83   "'%0': unable to use module files with this tool">;
84 def err_drv_clang_unsupported : Error<
85   "the clang compiler does not support '%0'">;
86 def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error<
87   "the clang compiler does not support '%0' for C++ on Darwin/i386">;
88 def err_drv_clang_unsupported_opt_faltivec : Error<
89   "the clang compiler does not support '%0', %1">;
90 def err_drv_command_failed : Error<
91   "%0 command failed with exit code %1 (use -v to see invocation)">;
92 def err_drv_compilationdatabase : Error<
93   "compilation database '%0' could not be opened: %1">;
94 def err_drv_command_signalled : Error<
95   "%0 command failed due to signal (use -v to see invocation)">;
96 def err_drv_force_crash : Error<
97   "failing because %select{environment variable 'FORCE_CLANG_DIAGNOSTICS_CRASH' is set|'-gen-reproducer' is used}0">;
98 def err_drv_invalid_mfloat_abi : Error<
99   "invalid float ABI '%0'">;
100 def err_drv_invalid_libcxx_deployment : Error<
101   "invalid deployment target for -stdlib=libc++ (requires %0 or later)">;
102 def err_drv_invalid_argument_to_fdebug_prefix_map : Error<
103   "invalid argument '%0' to -fdebug-prefix-map">;
104 def err_drv_malformed_sanitizer_blacklist : Error<
105   "malformed sanitizer blacklist: '%0'">;
106
107 def err_target_unsupported_arch
108   : Error<"the target architecture '%0' is not supported by the target '%1'">;
109
110 def err_drv_I_dash_not_supported : Error<
111   "'%0' not supported, please use -iquote instead">;
112 def err_drv_unknown_argument : Error<"unknown argument: '%0'">;
113 def warn_drv_unknown_argument_clang_cl : Warning<
114   "unknown argument ignored in clang-cl: '%0'">,
115   InGroup<UnknownArgument>;
116
117 def warn_drv_ycyu_no_arg_clang_cl : Warning<
118   "support for '%0' without a filename not implemented yet; flag ignored">,
119   InGroup<ClangClPch>;
120 def warn_drv_ycyu_different_arg_clang_cl : Warning<
121   "support for '/Yc' and '/Yu' with different filenames not implemented yet; flags ignored">,
122   InGroup<ClangClPch>;
123 def warn_drv_ycyu_no_fi_arg_clang_cl : Warning<
124   "support for '%0' without a corresponding /FI flag not implemented yet; flag ignored">,
125   InGroup<ClangClPch>;
126 def warn_drv_yc_multiple_inputs_clang_cl : Warning<
127   "support for '/Yc' with more than one source file not implemented yet; flag ignored">,
128   InGroup<ClangClPch>;
129
130 def err_drv_invalid_value : Error<"invalid value '%1' in '%0'">;
131 def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">;
132 def err_drv_invalid_remap_file : Error<
133     "invalid option '%0' not of the form <from-file>;<to-file>">;
134 def err_drv_invalid_gcc_output_type : Error<
135     "invalid output type '%0' for use with gcc tool">;
136 def err_drv_cc_print_options_failure : Error<
137     "unable to open CC_PRINT_OPTIONS file: %0">;
138 def err_drv_lto_without_lld : Error<"LTO requires -fuse-ld=lld">;
139 def err_drv_preamble_format : Error<
140     "incorrect format for -preamble-bytes=N,END">;
141 def err_drv_conflicting_deployment_targets : Error<
142   "conflicting deployment targets, both '%0' and '%1' are present in environment">;
143 def err_arc_unsupported_on_runtime : Error<
144   "-fobjc-arc is not supported on platforms using the legacy runtime">;
145 def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this
146   "-fobjc-arc is not supported on versions of OS X prior to 10.6">;
147 def err_objc_weak_with_gc : Error<
148   "-fobjc-weak is not supported in Objective-C garbage collection">;
149 def err_objc_weak_unsupported : Error<
150   "-fobjc-weak is not supported on the current deployment target">;
151 def err_drv_mg_requires_m_or_mm : Error<
152   "option '-MG' requires '-M' or '-MM'">;
153 def err_drv_unknown_objc_runtime : Error<
154   "unknown or ill-formed Objective-C runtime '%0'">;
155 def err_drv_emit_llvm_link : Error<
156    "-emit-llvm cannot be used when linking">;
157 def err_drv_optimization_remark_pattern : Error<
158   "%0 in '%1'">;
159 def err_drv_no_neon_modifier : Error<"[no]neon is not accepted as modifier, please use [no]simd instead">;
160 def err_drv_invalid_omp_target : Error<"OpenMP target is invalid: '%0'">;
161 def err_drv_omp_host_ir_file_not_found : Error<
162   "The provided host compiler IR file '%0' is required to generate code for OpenMP target regions but cannot be found.">;
163 def err_drv_omp_host_target_not_supported : Error<
164   "The target '%0' is not a supported OpenMP host target.">;
165 def err_drv_expecting_fopenmp_with_fopenmp_targets : Error<
166   "The option -fopenmp-targets must be used in conjunction with a -fopenmp option compatible with offloading, please use -fopenmp=libomp or -fopenmp=libiomp5.">;
167 def warn_drv_omp_offload_target_duplicate : Warning<
168   "The OpenMP offloading target '%0' is similar to target '%1' already specified - will be ignored.">, 
169   InGroup<OpenMPTarget>;
170 def err_drv_bitcode_unsupported_on_toolchain : Error<
171   "-fembed-bitcode is not supported on versions of iOS prior to 6.0">;
172
173 def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>;
174 def warn_drv_optimization_value : Warning<"optimization level '%0' is not supported; using '%1%2' instead">,
175   InGroup<InvalidCommandLineArgument>;
176 def warn_ignored_gcc_optimization : Warning<"optimization flag '%0' is not supported">,
177   InGroup<IgnoredOptimizationArgument>;
178 def warn_drv_unsupported_opt_for_target : Warning<
179   "optimization flag '%0' is not supported for target '%1'">,
180   InGroup<IgnoredOptimizationArgument>;
181 def warn_c_kext : Warning<
182   "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">;
183 def warn_drv_input_file_unused : Warning<
184   "%0: '%1' input unused%select{ when '%3' is present|}2">,
185   InGroup<UnusedCommandLineArgument>;
186 def warn_drv_input_file_unused_by_cpp : Warning<
187   "%0: '%1' input unused in cpp mode">,
188   InGroup<UnusedCommandLineArgument>;
189 def warn_drv_preprocessed_input_file_unused : Warning<
190   "%0: previously preprocessed input%select{ unused when '%2' is present|}1">,
191   InGroup<UnusedCommandLineArgument>;
192 def warn_drv_unused_argument : Warning<
193   "argument unused during compilation: '%0'">,
194   InGroup<UnusedCommandLineArgument>;
195 def warn_drv_empty_joined_argument : Warning<
196   "joined argument expects additional value: '%0'">,
197   InGroup<UnusedCommandLineArgument>;
198 def warn_drv_fdiagnostics_show_hotness_requires_pgo : Warning<
199   "argument '-fdiagnostics-show-hotness' requires profile-guided optimization information">,
200   InGroup<UnusedCommandLineArgument>;
201 def warn_drv_clang_unsupported : Warning<
202   "the clang compiler does not support '%0'">;
203 def warn_drv_deprecated_arg : Warning<
204   "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>;
205 def warn_drv_assuming_mfloat_abi_is : Warning<
206   "unknown platform, assuming -mfloat-abi=%0">;
207 def warn_ignoring_ftabstop_value : Warning<
208   "ignoring invalid -ftabstop value '%0', using default value %1">;
209 def warn_drv_overriding_flag_option : Warning<
210   "overriding '%0' option with '%1'">,
211   InGroup<DiagGroup<"overriding-t-option">>;
212 def warn_drv_treating_input_as_cxx : Warning<
213   "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">,
214   InGroup<Deprecated>;
215 def warn_drv_pch_not_first_include : Warning<
216   "precompiled header '%0' was ignored because '%1' is not first '-include'">;
217 def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">,
218   InGroup<DiagGroup<"missing-sysroot">>;
219 def warn_incompatible_sysroot : Warning<"using sysroot for '%0' but targeting '%1'">,
220   InGroup<DiagGroup<"incompatible-sysroot">>;
221 def warn_debug_compression_unavailable : Warning<"cannot compress debug sections (zlib not installed)">,
222   InGroup<DiagGroup<"debug-compression-unavailable">>;
223 def warn_drv_enabling_rtti_with_exceptions : Warning<
224   "implicitly enabling rtti for exception handling">,
225   InGroup<DiagGroup<"rtti-for-exceptions">>;
226 def warn_drv_disabling_vptr_no_rtti_default : Warning<
227   "implicitly disabling vptr sanitizer because rtti wasn't enabled">,
228   InGroup<DiagGroup<"auto-disable-vptr-sanitizer">>;
229
230 def note_drv_command_failed_diag_msg : Note<
231   "diagnostic msg: %0">;
232 def note_drv_t_option_is_global : Note<
233   "The last /TC or /TP option takes precedence over earlier instances">;
234 def note_drv_address_sanitizer_debug_runtime : Note<
235   "AddressSanitizer doesn't support linking with debug runtime libraries yet">;
236 def note_drv_use_standard : Note<"use '%0' for '%1' standard">;
237
238 def err_analyzer_config_no_value : Error<
239   "analyzer-config option '%0' has a key but no value">;
240 def err_analyzer_config_multiple_values : Error<
241   "analyzer-config option '%0' should contain only one '='">;
242
243 def err_drv_modules_validate_once_requires_timestamp : Error<
244   "option '-fmodules-validate-once-per-build-session' requires "
245   "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">;
246
247 def err_test_module_file_extension_format : Error<
248   "-ftest-module-file-extension argument '%0' is not of the required form "
249   "'blockname:major:minor:hashed:user info'">;
250
251 def warn_drv_invoking_fallback : Warning<"falling back to %0">,
252   InGroup<Fallback>;
253
254 def warn_slash_u_filename : Warning<"'/U%0' treated as the '/U' option">,
255   InGroup<DiagGroup<"slash-u-filename">>;
256 def note_use_dashdash : Note<"Use '--' to treat subsequent arguments as filenames">;
257
258 def err_drv_ropi_rwpi_incompatible_with_pic : Error<
259   "embedded and GOT-based position independence are incompatible">;
260 def err_drv_ropi_incompatible_with_cxx : Error<
261   "ROPI is not compatible with c++">;
262
263 def warn_target_unsupported_nan2008 : Warning<
264   "ignoring '-mnan=2008' option because the '%0' architecture does not support it">,
265   InGroup<UnsupportedNan>;
266 def warn_target_unsupported_nanlegacy : Warning<
267   "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">,
268   InGroup<UnsupportedNan>;
269 def warn_target_unsupported_compact_branches : Warning<
270   "ignoring '-mcompact-branches=' option because the '%0' architecture does not"
271   " support it">, InGroup<UnsupportedCB>;
272
273 def warn_drv_unable_to_find_directory_expected : Warning<
274   "unable to find %0 directory, expected to be in '%1'">,
275   InGroup<InvalidOrNonExistentDirectory>, DefaultIgnore;
276
277 def warn_drv_ps4_force_pic : Warning<
278   "option '%0' was ignored by the PS4 toolchain, using '-fPIC'">,
279   InGroup<OptionIgnored>;
280
281 def warn_drv_ps4_sdk_dir : Warning<
282   "environment variable SCE_ORBIS_SDK_DIR is set, but points to invalid or nonexistent directory '%0'">,
283   InGroup<InvalidOrNonExistentDirectory>;
284
285 def err_drv_unsupported_linker : Error<"unsupported value '%0' for -linker option">;
286 def err_drv_defsym_invalid_format : Error<"defsym must be of the form: sym=value: %0">;
287 def err_drv_defsym_invalid_symval : Error<"Value is not an integer: %0">;
288 def warn_drv_msvc_not_found : Warning<
289   "unable to find a Visual Studio installation; "
290   "try running Clang from a developer command prompt">,
291   InGroup<DiagGroup<"msvc-not-found">>;
292 }