DiagnosticDriverKinds.td revision 263508
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
10let Component = "Driver" in {
11
12def err_drv_no_such_file : Error<"no such file or directory: '%0'">;
13def err_drv_unsupported_opt : Error<"unsupported option '%0'">;
14def err_drv_unsupported_opt_for_target : Error<
15  "unsupported option '%0' for target '%1'">;
16def err_drv_unsupported_option_argument : Error<
17  "unsupported argument '%1' to option '%0'">;
18def err_drv_unknown_stdin_type : Error<
19  "-E or -x required when input is from standard input">;
20def err_drv_unknown_language : Error<"language not recognized: '%0'">;
21def err_drv_invalid_arch_name : Error<
22  "invalid arch name '%0'">;
23def err_drv_invalid_rtlib_name : Error<
24  "invalid runtime library name in argument '%0'">;
25def err_drv_unsupported_rtlib_for_platform : Error<
26  "unsupported runtime library '%0' for platform '%1'">;
27def err_drv_invalid_stdlib_name : Error<
28  "invalid library name in argument '%0'">;
29def err_drv_invalid_output_with_multiple_archs : Error<
30  "cannot use '%0' output with multiple -arch options">;
31def err_drv_no_input_files : Error<"no input files">;
32def err_drv_use_of_Z_option : Error<
33  "unsupported use of internal gcc -Z option '%0'">;
34def err_drv_output_argument_with_multiple_files : Error<
35  "cannot specify -o when generating multiple output files">;
36def err_drv_out_file_argument_with_multiple_sources : Error<
37  "cannot specify '%0%1' when compiling multiple source files">;
38def err_no_external_assembler : Error<
39  "there is no external assembler that can be used on this platform">;
40def err_drv_unable_to_remove_file : Error<
41  "unable to remove file: %0">;
42def err_drv_command_failure : Error<
43  "unable to execute command: %0">;
44def err_drv_invalid_darwin_version : Error<
45  "invalid Darwin version number: %0">;
46def err_drv_missing_argument : Error<
47  "argument to '%0' is missing (expected %1 value%s1)">;
48def err_drv_invalid_Xarch_argument_with_args : Error<
49  "invalid Xarch argument: '%0', options requiring arguments are unsupported">;
50def err_drv_invalid_Xarch_argument_isdriver : Error<
51  "invalid Xarch argument: '%0', cannot change driver behavior inside Xarch argument">;
52def err_drv_argument_only_allowed_with : Error<
53  "invalid argument '%0' only allowed with '%1'">;
54def err_drv_argument_not_allowed_with : Error<
55  "invalid argument '%0' not allowed with '%1'">;
56def err_drv_invalid_version_number : Error<
57  "invalid version number in '%0'">;
58def err_drv_no_linker_llvm_support : Error<
59  "'%0': unable to pass LLVM bit-code files to linker">;
60def err_drv_no_ast_support : Error<
61  "'%0': unable to use AST files with this tool">;
62def err_drv_no_module_support : Error<
63  "'%0': unable to use module files with this tool">;
64def err_drv_clang_unsupported : Error<
65  "the clang compiler does not support '%0'">;
66def err_drv_clang_unsupported_per_platform : Error<
67  "the clang compiler does not support '%0' on this platform">;
68def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error<
69  "the clang compiler does not support '%0' for C++ on Darwin/i386">;
70def err_drv_command_failed : Error<
71  "%0 command failed with exit code %1 (use -v to see invocation)">;
72def err_drv_command_signalled : Error<
73  "%0 command failed due to signal (use -v to see invocation)">;
74def err_drv_force_crash : Error<
75  "failing because environment variable '%0' is set">;
76def err_drv_invalid_mfloat_abi : Error<
77  "invalid float ABI '%0'">;
78def err_drv_invalid_libcxx_deployment : Error<
79  "invalid deployment target for -stdlib=libc++ (requires %0 or later)">;
80def err_drv_malformed_sanitizer_blacklist : Error<
81  "malformed sanitizer blacklist: '%0'">;
82
83def err_drv_I_dash_not_supported : Error<
84  "'%0' not supported, please use -iquote instead">;
85def err_drv_unknown_argument : Error<"unknown argument: '%0'">;
86def err_drv_invalid_value : Error<"invalid value '%1' in '%0'">;
87def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">;
88def err_drv_invalid_remap_file : Error<
89    "invalid option '%0' not of the form <from-file>;<to-file>">;
90def err_drv_invalid_gcc_output_type : Error<
91    "invalid output type '%0' for use with gcc tool">;
92def err_drv_cc_print_options_failure : Error<
93    "unable to open CC_PRINT_OPTIONS file: %0">;
94def err_drv_preamble_format : Error<
95    "incorrect format for -preamble-bytes=N,END">;
96def err_drv_conflicting_deployment_targets : Error<
97  "conflicting deployment targets, both '%0' and '%1' are present in environment">;
98def err_drv_invalid_arch_for_deployment_target : Error<
99  "invalid architecture '%0' for deployment target '%1'">;
100def err_drv_objc_gc_arr : Error<
101  "cannot specify both '-fobjc-arc' and '%0'">;
102def err_arc_unsupported_on_runtime : Error<
103  "-fobjc-arc is not supported on platforms using the legacy runtime">;
104def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this
105  "-fobjc-arc is not supported on versions of OS X prior to 10.6">;
106def err_drv_mg_requires_m_or_mm : Error<
107  "option '-MG' requires '-M' or '-MM'">;
108def err_drv_unknown_objc_runtime : Error<
109  "unknown or ill-formed Objective-C runtime '%0'">;
110def err_drv_emit_llvm_link : Error<
111   "-emit-llvm cannot be used when linking">;
112def err_drv_unknown_toolchain : Error<
113  "cannot recognize the type of the toolchain">;
114
115def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>;
116def warn_drv_optimization_value : Warning<"optimization level '%0' is unsupported; using '%1%2' instead">,
117  InGroup<InvalidCommandLineArgument>;
118def warn_c_kext : Warning<
119  "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">;
120def warn_drv_input_file_unused : Warning<
121  "%0: '%1' input unused%select{ when '%3' is present|}2">,
122  InGroup<UnusedCommandLineArgument>;
123def warn_drv_input_file_unused_by_cpp : Warning<
124  "%0: '%1' input unused in cpp mode">,
125  InGroup<UnusedCommandLineArgument>;
126def warn_drv_preprocessed_input_file_unused : Warning<
127  "%0: previously preprocessed input%select{ unused when '%2' is present|}1">,
128  InGroup<UnusedCommandLineArgument>;
129def warn_drv_unused_argument : Warning<
130  "argument unused during compilation: '%0'">,
131  InGroup<UnusedCommandLineArgument>;
132def warn_drv_empty_joined_argument : Warning<
133  "joined argument expects additional value: '%0'">,
134  InGroup<UnusedCommandLineArgument>;
135def warn_drv_unused_sanitizer : Warning<"'%0' is ignored in absence of '%1'">,
136  InGroup<UnusedSanitizeArgument>;
137def warn_drv_clang_unsupported : Warning<
138  "the clang compiler does not support '%0'">;
139def warn_drv_deprecated_arg : Warning<
140  "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>;
141def warn_drv_assuming_mfloat_abi_is : Warning<
142  "unknown platform, assuming -mfloat-abi=%0">;
143def warn_ignoring_ftabstop_value : Warning<
144  "ignoring invalid -ftabstop value '%0', using default value %1">;
145def warn_drv_overriding_flag_option : Warning<
146  "overriding '%0' option with '%1'">,
147  InGroup<DiagGroup<"overriding-t-option">>;
148def warn_drv_treating_input_as_cxx : Warning<
149  "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">,
150  InGroup<Deprecated>;
151def warn_drv_objc_gc_unsupported : Warning<
152  "Objective-C garbage collection is not supported on this platform, ignoring '%0'">;
153def warn_drv_pch_not_first_include : Warning<
154  "precompiled header '%0' was ignored because '%1' is not first '-include'">;
155def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">,
156  InGroup<DiagGroup<"missing-sysroot">>;
157
158def note_drv_command_failed_diag_msg : Note<
159  "diagnostic msg: %0">;
160def note_drv_t_option_is_global :
161  Note<"The last /TC or /TP option takes precedence over earlier instances">;
162  
163def err_analyzer_config_no_value : Error<
164  "analyzer-config option '%0' has a key but no value">;
165def err_analyzer_config_multiple_values : Error<
166  "analyzer-config option '%0' should contain only one '='">;
167}
168