DiagnosticFrontendKinds.td revision 263508
1//==--- DiagnosticFrontendKinds.td - frontend 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 = "Frontend" in {
11
12def err_fe_error_opening : Error<"error opening '%0': %1">;
13def err_fe_error_reading : Error<"error reading '%0'">;
14def err_fe_error_reading_stdin : Error<"error reading stdin: %0">;
15def err_fe_error_backend : Error<"error in backend: %0">, DefaultFatal;
16
17// Error generated by the backend.
18def err_fe_inline_asm : Error<"%0">, CatInlineAsm;
19def note_fe_inline_asm_here : Note<"instantiated into assembly here">;
20def err_fe_cannot_link_module : Error<"cannot link module '%0': %1">,
21  DefaultFatal;
22
23
24
25def err_fe_invalid_code_complete_file : Error<
26    "cannot locate code-completion file %0">, DefaultFatal;
27def err_fe_stdout_binary : Error<"unable to change standard output to binary">,
28  DefaultFatal;
29def err_fe_dependency_file_requires_MT : Error<
30    "-dependency-file requires at least one -MT or -MQ option">;
31def err_fe_invalid_plugin_name : Error<
32    "unable to find plugin '%0'">;
33def err_fe_expected_compiler_job : Error<
34    "unable to handle compilation, expected exactly one compiler job in '%0'">;
35def err_fe_expected_clang_command : Error<
36    "expected a clang compiler command">;
37def err_fe_remap_missing_to_file : Error<
38    "could not remap file '%0' to the contents of file '%1'">, DefaultFatal;
39def err_fe_remap_missing_from_file : Error<
40    "could not remap from missing file '%0'">, DefaultFatal;
41def err_fe_unable_to_load_pch : Error<
42    "unable to load PCH file">;
43def err_fe_unable_to_load_plugin : Error<
44    "unable to load plugin '%0': '%1'">;
45def err_fe_unable_to_create_target : Error<
46    "unable to create target: '%0'">;
47def err_fe_unable_to_interface_with_target : Error<
48    "unable to interface with target machine">;
49def err_fe_unable_to_open_output : Error<
50    "unable to open output file '%0': '%1'">;
51def err_fe_pth_file_has_no_source_header : Error<
52    "PTH file '%0' does not designate an original source header file for -include-pth">;
53def warn_fe_macro_contains_embedded_newline : Warning<
54    "macro '%0' contains embedded newline; text after the newline is ignored">;
55def warn_fe_cc_print_header_failure : Warning<
56    "unable to open CC_PRINT_HEADERS file: %0 (using stderr)">;
57def warn_fe_cc_log_diagnostics_failure : Warning<
58    "unable to open CC_LOG_DIAGNOSTICS file: %0 (using stderr)">;
59def err_fe_no_pch_in_dir : Error<
60    "no suitable precompiled header file found in directory '%0'">;
61def err_fe_action_not_available : Error<
62    "action %0 not compiled in">;
63
64def warn_fe_serialized_diag_failure : Warning<
65    "unable to open file %0 for serializing diagnostics (%1)">,
66    InGroup<DiagGroup<"serialized-diagnostics">>;
67
68def err_verify_missing_line : Error<
69    "missing or invalid line number following '@' in expected %0">;
70def err_verify_missing_file : Error<
71    "file '%0' could not be located in expected %1">;
72def err_verify_invalid_range : Error<
73    "invalid range following '-' in expected %0">;
74def err_verify_missing_start : Error<
75    "cannot find start ('{{') of expected %0">;
76def err_verify_missing_end : Error<
77    "cannot find end ('}}') of expected %0">;
78def err_verify_invalid_content : Error<
79    "invalid expected %0: %1">;
80def err_verify_inconsistent_diags : Error<
81    "'%0' diagnostics %select{expected|seen}1 but not %select{seen|expected}1: "
82    "%2">;
83def err_verify_invalid_no_diags : Error<
84    "%select{expected|'expected-no-diagnostics'}0 directive cannot follow "
85    "%select{'expected-no-diagnostics' directive|other expected directives}0">;
86def err_verify_no_directives : Error<
87    "no expected directives found: consider use of 'expected-no-diagnostics'">;
88
89def note_fixit_applied : Note<"FIX-IT applied suggested code changes">;
90def note_fixit_in_macro : Note<
91    "FIX-IT unable to apply suggested code changes in a macro">;
92def note_fixit_failed : Note<
93    "FIX-IT unable to apply suggested code changes">;
94def note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">;
95def warn_fixit_no_changes : Note<
96    "FIX-IT detected errors it could not fix; no output will be generated">;
97
98// PCH reader
99def err_relocatable_without_isysroot : Error<
100    "must specify system root with -isysroot when building a relocatable "
101    "PCH file">;
102
103def warn_unknown_warning_option : Warning<
104    "unknown warning option '%0'">,
105    InGroup<UnknownWarningOption>;
106def warn_unknown_negative_warning_option : Warning<
107    "unknown warning option '%0'">,
108    InGroup<UnknownWarningOption>;
109def warn_unknown_warning_option_suggest : Warning<
110    "unknown warning option '%0'; did you mean '%1'?">,
111    InGroup<UnknownWarningOption>;
112def warn_unknown_negative_warning_option_suggest : Warning<
113    "unknown warning option '%0'; did you mean '%1'?">,
114    InGroup<UnknownWarningOption>;
115def warn_unknown_warning_specifier : Warning<
116    "unknown %0 warning specifier: '%1'">,
117    InGroup<UnknownWarningOption>;
118
119def err_unknown_analyzer_checker : Error<
120    "no analyzer checkers are associated with '%0'">;
121def warn_incompatible_analyzer_plugin_api : Warning<
122    "checker plugin '%0' is not compatible with this version of the analyzer">,
123    InGroup<DiagGroup<"analyzer-incompatible-plugin"> >;
124def note_incompatible_analyzer_plugin_api : Note<
125    "current API version is '%0', but plugin was compiled with version '%1'">;
126    
127def err_module_map_not_found : Error<"module map file '%0' not found">, 
128  DefaultFatal;
129def err_missing_module_name : Error<
130  "no module name provided; specify one with -fmodule-name=">, 
131  DefaultFatal;
132def err_missing_module : Error<
133  "no module named '%0' declared in module map file '%1'">, DefaultFatal;
134def err_no_submodule : Error<"no submodule named %0 in module '%1'">;
135def err_no_submodule_suggest : Error<
136  "no submodule named %0 in module '%1'; did you mean '%2'?">;
137def warn_missing_submodule : Warning<"missing submodule '%0'">,
138  InGroup<IncompleteUmbrella>;
139def err_module_unavailable : Error<
140  "module '%0' %select{is incompatible with|requires}1 feature '%2'">;
141def warn_module_config_macro_undef : Warning<
142  "%select{definition|#undef}0 of configuration macro '%1' has no effect on "
143  "the import of '%2'; pass '%select{-D%1=...|-U%1}0' on the command line "
144  "to configure the module">,
145  InGroup<ConfigMacros>;
146def note_module_def_undef_here : Note<
147  "macro was %select{defined|#undef'd}0 here">;
148}
149