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