]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticDriverKinds.td
MFC r244628:
[FreeBSD/stable/9.git] / contrib / llvm / tools / clang / 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_language : Error<"language not recognized: '%0'">;
21 def err_drv_invalid_arch_name : Error<
22   "invalid arch name '%0'">;
23 def err_drv_invalid_rtlib_name : Error<
24   "invalid runtime library name in argument '%0'">;
25 def err_drv_unsupported_rtlib_for_platform : Error<
26   "unsupported runtime library '%0' for platform '%1'">;
27 def err_drv_invalid_stdlib_name : Error<
28   "invalid library name in argument '%0'">;
29 def err_drv_invalid_opt_with_multiple_archs : Error<
30   "option '%0' cannot be used with multiple -arch options">;
31 def err_drv_invalid_output_with_multiple_archs : Error<
32   "cannot use '%0' output with multiple -arch options">;
33 def err_drv_no_input_files : Error<"no input files">;
34 def err_drv_use_of_Z_option : Error<
35   "unsupported use of internal gcc -Z option '%0'">;
36 def err_drv_output_argument_with_multiple_files : Error<
37   "cannot specify -o when generating multiple output files">;
38 def err_drv_unable_to_remove_file : Error<
39   "unable to remove file: %0">;
40 def err_drv_command_failure : Error<
41   "unable to execute command: %0">;
42 def err_drv_invalid_darwin_version : Error<
43   "invalid Darwin version number: %0">;
44 def err_drv_missing_argument : Error<
45   "argument to '%0' is missing (expected %1 value%s1)">;
46 def err_drv_invalid_Xarch_argument_with_args : Error<
47   "invalid Xarch argument: '%0', options requiring arguments are unsupported">;
48 def err_drv_invalid_Xarch_argument_isdriver : Error<
49   "invalid Xarch argument: '%0', cannot change driver behavior inside Xarch argument">;
50 def err_drv_argument_only_allowed_with : Error<
51   "invalid argument '%0' only allowed with '%1'">;
52 def err_drv_argument_not_allowed_with : Error<
53   "invalid argument '%0' not allowed with '%1'">;
54 def err_drv_invalid_version_number : Error<
55   "invalid version number in '%0'">;
56 def err_drv_no_linker_llvm_support : Error<
57   "'%0': unable to pass LLVM bit-code files to linker">;
58 def err_drv_no_ast_support : Error<
59   "'%0': unable to use AST files with this tool">;
60 def err_drv_clang_unsupported : Error<
61   "the clang compiler does not support '%0'">;
62 def err_drv_clang_unsupported_per_platform : Error<
63   "the clang compiler does not support '%0' on this platform">;
64 def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error<
65   "the clang compiler does not support '%0' for C++ on Darwin/i386">;
66 def err_drv_command_failed : Error<
67   "%0 command failed with exit code %1 (use -v to see invocation)">;
68 def err_drv_command_signalled : Error<
69   "%0 command failed due to signal (use -v to see invocation)">;
70 def err_drv_invalid_mfloat_abi : Error<
71   "invalid float ABI '%0'">;
72 def err_drv_invalid_libcxx_deployment : Error<
73   "invalid deployment target for -stdlib=libc++ (requires %0 or later)">;
74 def err_drv_invalid_feature : Error<
75   "invalid feature '%0' for CPU '%1'">;
76
77 def err_drv_I_dash_not_supported : Error<
78   "'%0' not supported, please use -iquote instead">;
79 def err_drv_unknown_argument : Error<"unknown argument: '%0'">;
80 def err_drv_invalid_value : Error<"invalid value '%1' in '%0'">;
81 def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">;
82 def err_drv_invalid_remap_file : Error<
83     "invalid option '%0' not of the form <from-file>;<to-file>">;
84 def err_drv_invalid_gcc_output_type : Error<
85     "invalid output type '%0' for use with gcc tool">;
86 def err_drv_cc_print_options_failure : Error<
87     "unable to open CC_PRINT_OPTIONS file: %0">;
88 def err_drv_preamble_format : Error<
89     "incorrect format for -preamble-bytes=N,END">;
90 def err_drv_conflicting_deployment_targets : Error<
91   "conflicting deployment targets, both '%0' and '%1' are present in environment">;
92 def err_drv_invalid_arch_for_deployment_target : Error<
93   "invalid architecture '%0' for deployment target '%1'">;
94 def err_drv_objc_gc_arr : Error<
95   "cannot specify both '-fobjc-arc' and '%0'">;
96 def err_arc_unsupported_on_runtime : Error<
97   "-fobjc-arc is not supported on platforms using the legacy runtime">;
98 def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this
99   "-fobjc-arc is not supported on versions of OS X prior to 10.6">;
100 def err_drv_mg_requires_m_or_mm : Error<
101   "option '-MG' requires '-M' or '-MM'">;
102 def err_drv_asan_android_requires_pie : Error<
103   "AddressSanitizer on Android requires '-pie'">;
104 def err_drv_unknown_objc_runtime : Error<
105   "unknown or ill-formed Objective-C runtime '%0'">;
106
107 def warn_c_kext : Warning<
108   "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">;
109 def warn_drv_input_file_unused : Warning<
110   "%0: '%1' input unused%select{ when '%3' is present|}2">,
111   InGroup<DiagGroup<"unused-command-line-argument">>;
112 def warn_drv_input_file_unused_by_cpp : Warning<
113   "%0: '%1' input unused in cpp mode">,
114   InGroup<DiagGroup<"unused-command-line-argument">>;
115 def warn_drv_preprocessed_input_file_unused : Warning<
116   "%0: previously preprocessed input%select{ unused when '%2' is present|}1">,
117   InGroup<DiagGroup<"unused-command-line-argument">>;
118 def warn_drv_unused_argument : Warning<
119   "argument unused during compilation: '%0'">,
120   InGroup<DiagGroup<"unused-command-line-argument">>;
121 def warn_drv_empty_joined_argument : Warning<
122   "joined argument expects additional value: '%0'">,
123   InGroup<DiagGroup<"unused-command-line-argument">>;
124 def warn_drv_clang_unsupported : Warning<
125   "the clang compiler does not support '%0'">;
126 def warn_drv_deprecated_arg : Warning<
127   "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>;
128 def warn_drv_assuming_mfloat_abi_is : Warning<
129   "unknown platform, assuming -mfloat-abi=%0">;
130 def warn_ignoring_ftabstop_value : Warning<
131   "ignoring invalid -ftabstop value '%0', using default value %1">;
132 def warn_drv_treating_input_as_cxx : Warning<
133   "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">,
134   InGroup<Deprecated>;
135 def warn_drv_objc_gc_unsupported : Warning<
136   "Objective-C garbage collection is not supported on this platform, ignoring '%0'">;
137 def warn_drv_pch_not_first_include : Warning<
138   "precompiled header '%0' was ignored because '%1' is not first '-include'">;
139
140 def note_drv_command_failed_diag_msg : Note<
141   "diagnostic msg: %0">;
142   
143 def err_analyzer_config_no_value : Error<
144   "analyzer-config option '%0' has a key but no value">;
145 def err_analyzer_config_multiple_values : Error<
146   "analyzer-config option '%0' should contain only one '='">;
147 }