1193326Sed//==--- DiagnosticFrontendKinds.td - frontend diagnostics -----------------===//
2193326Sed//
3193326Sed//                     The LLVM Compiler Infrastructure
4193326Sed//
5193326Sed// This file is distributed under the University of Illinois Open Source
6193326Sed// License. See LICENSE.TXT for details.
7193326Sed//
8193326Sed//===----------------------------------------------------------------------===//
9193326Sed
10193326Sedlet Component = "Frontend" in {
11193326Sed
12198893Srdivackydef err_fe_error_opening : Error<"error opening '%0': %1">;
13193326Seddef err_fe_error_reading : Error<"error reading '%0'">;
14263508Sdimdef err_fe_error_reading_stdin : Error<"error reading stdin: %0">;
15198092Srdivackydef err_fe_error_backend : Error<"error in backend: %0">, DefaultFatal;
16234353Sdim
17208600Srdivacky// Error generated by the backend.
18208600Srdivackydef err_fe_inline_asm : Error<"%0">, CatInlineAsm;
19218893Sdimdef note_fe_inline_asm_here : Note<"instantiated into assembly here">;
20234353Sdimdef err_fe_cannot_link_module : Error<"cannot link module '%0': %1">,
21234353Sdim  DefaultFatal;
22210299Sed
23210299Sed
24210299Sed
25200583Srdivackydef err_fe_invalid_code_complete_file : Error<
26200583Srdivacky    "cannot locate code-completion file %0">, DefaultFatal;
27199990Srdivackydef err_fe_stdout_binary : Error<"unable to change standard output to binary">,
28199990Srdivacky  DefaultFatal;
29198893Srdivackydef err_fe_dependency_file_requires_MT : Error<
30206084Srdivacky    "-dependency-file requires at least one -MT or -MQ option">;
31199482Srdivackydef err_fe_invalid_plugin_name : Error<
32199482Srdivacky    "unable to find plugin '%0'">;
33200583Srdivackydef err_fe_expected_compiler_job : Error<
34200583Srdivacky    "unable to handle compilation, expected exactly one compiler job in '%0'">;
35200583Srdivackydef err_fe_expected_clang_command : Error<
36200583Srdivacky    "expected a clang compiler command">;
37200583Srdivackydef err_fe_remap_missing_to_file : Error<
38200583Srdivacky    "could not remap file '%0' to the contents of file '%1'">, DefaultFatal;
39200583Srdivackydef err_fe_remap_missing_from_file : Error<
40200583Srdivacky    "could not remap from missing file '%0'">, DefaultFatal;
41200583Srdivackydef err_fe_unable_to_load_pch : Error<
42200583Srdivacky    "unable to load PCH file">;
43200583Srdivackydef err_fe_unable_to_load_plugin : Error<
44200583Srdivacky    "unable to load plugin '%0': '%1'">;
45200583Srdivackydef err_fe_unable_to_create_target : Error<
46200583Srdivacky    "unable to create target: '%0'">;
47200583Srdivackydef err_fe_unable_to_interface_with_target : Error<
48200583Srdivacky    "unable to interface with target machine">;
49200583Srdivackydef err_fe_unable_to_open_output : Error<
50200583Srdivacky    "unable to open output file '%0': '%1'">;
51200583Srdivackydef err_fe_pth_file_has_no_source_header : Error<
52200583Srdivacky    "PTH file '%0' does not designate an original source header file for -include-pth">;
53200583Srdivackydef warn_fe_macro_contains_embedded_newline : Warning<
54239462Sdim    "macro '%0' contains embedded newline; text after the newline is ignored">;
55218893Sdimdef warn_fe_cc_print_header_failure : Warning<
56218893Sdim    "unable to open CC_PRINT_HEADERS file: %0 (using stderr)">;
57221345Sdimdef warn_fe_cc_log_diagnostics_failure : Warning<
58221345Sdim    "unable to open CC_LOG_DIAGNOSTICS file: %0 (using stderr)">;
59243830Sdimdef err_fe_no_pch_in_dir : Error<
60243830Sdim    "no suitable precompiled header file found in directory '%0'">;
61246259Sdimdef err_fe_action_not_available : Error<
62246259Sdim    "action %0 not compiled in">;
63193326Sed
64234353Sdimdef warn_fe_serialized_diag_failure : Warning<
65234353Sdim    "unable to open file %0 for serializing diagnostics (%1)">,
66234353Sdim    InGroup<DiagGroup<"serialized-diagnostics">>;
67234353Sdim
68239462Sdimdef err_verify_missing_line : Error<
69239462Sdim    "missing or invalid line number following '@' in expected %0">;
70251662Sdimdef err_verify_missing_file : Error<
71251662Sdim    "file '%0' could not be located in expected %1">;
72239462Sdimdef err_verify_invalid_range : Error<
73239462Sdim    "invalid range following '-' in expected %0">;
74199482Srdivackydef err_verify_missing_start : Error<
75207619Srdivacky    "cannot find start ('{{') of expected %0">;
76199482Srdivackydef err_verify_missing_end : Error<
77207619Srdivacky    "cannot find end ('}}') of expected %0">;
78207619Srdivackydef err_verify_invalid_content : Error<
79207619Srdivacky    "invalid expected %0: %1">;
80199482Srdivackydef err_verify_inconsistent_diags : Error<
81218893Sdim    "'%0' diagnostics %select{expected|seen}1 but not %select{seen|expected}1: "
82218893Sdim    "%2">;
83243830Sdimdef err_verify_invalid_no_diags : Error<
84243830Sdim    "%select{expected|'expected-no-diagnostics'}0 directive cannot follow "
85243830Sdim    "%select{'expected-no-diagnostics' directive|other expected directives}0">;
86243830Sdimdef err_verify_no_directives : Error<
87243830Sdim    "no expected directives found: consider use of 'expected-no-diagnostics'">;
88199482Srdivacky
89193326Seddef note_fixit_applied : Note<"FIX-IT applied suggested code changes">;
90193326Seddef note_fixit_in_macro : Note<
91193326Sed    "FIX-IT unable to apply suggested code changes in a macro">;
92193326Seddef note_fixit_failed : Note<
93193326Sed    "FIX-IT unable to apply suggested code changes">;
94193326Seddef note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">;
95193326Seddef warn_fixit_no_changes : Note<
96193326Sed    "FIX-IT detected errors it could not fix; no output will be generated">;
97193326Sed
98193326Sed// PCH reader
99212904Sdimdef err_relocatable_without_isysroot : Error<
100198092Srdivacky    "must specify system root with -isysroot when building a relocatable "
101198092Srdivacky    "PCH file">;
102193326Sed
103194711Seddef warn_unknown_warning_option : Warning<
104194711Sed    "unknown warning option '%0'">,
105249423Sdim    InGroup<UnknownWarningOption>;
106223017Sdimdef warn_unknown_negative_warning_option : Warning<
107239462Sdim    "unknown warning option '%0'">,
108249423Sdim    InGroup<UnknownWarningOption>;
109234353Sdimdef warn_unknown_warning_option_suggest : Warning<
110234353Sdim    "unknown warning option '%0'; did you mean '%1'?">,
111249423Sdim    InGroup<UnknownWarningOption>;
112234353Sdimdef warn_unknown_negative_warning_option_suggest : Warning<
113234353Sdim    "unknown warning option '%0'; did you mean '%1'?">,
114249423Sdim    InGroup<UnknownWarningOption>;
115201361Srdivackydef warn_unknown_warning_specifier : Warning<
116201361Srdivacky    "unknown %0 warning specifier: '%1'">,
117249423Sdim    InGroup<UnknownWarningOption>;
118218893Sdim
119239462Sdimdef err_unknown_analyzer_checker : Error<
120218893Sdim    "no analyzer checkers are associated with '%0'">;
121226633Sdimdef warn_incompatible_analyzer_plugin_api : Warning<
122226633Sdim    "checker plugin '%0' is not compatible with this version of the analyzer">,
123226633Sdim    InGroup<DiagGroup<"analyzer-incompatible-plugin"> >;
124226633Sdimdef note_incompatible_analyzer_plugin_api : Note<
125226633Sdim    "current API version is '%0', but plugin was compiled with version '%1'">;
126234353Sdim    
127234353Sdimdef err_module_map_not_found : Error<"module map file '%0' not found">, 
128234353Sdim  DefaultFatal;
129234353Sdimdef err_missing_module_name : Error<
130234353Sdim  "no module name provided; specify one with -fmodule-name=">, 
131234353Sdim  DefaultFatal;
132234353Sdimdef err_missing_module : Error<
133234353Sdim  "no module named '%0' declared in module map file '%1'">, DefaultFatal;
134234353Sdimdef err_no_submodule : Error<"no submodule named %0 in module '%1'">;
135234353Sdimdef err_no_submodule_suggest : Error<
136234353Sdim  "no submodule named %0 in module '%1'; did you mean '%2'?">;
137234353Sdimdef warn_missing_submodule : Warning<"missing submodule '%0'">,
138234353Sdim  InGroup<IncompleteUmbrella>;
139263508Sdimdef err_module_unavailable : Error<
140263508Sdim  "module '%0' %select{is incompatible with|requires}1 feature '%2'">;
141249423Sdimdef warn_module_config_macro_undef : Warning<
142249423Sdim  "%select{definition|#undef}0 of configuration macro '%1' has no effect on "
143249423Sdim  "the import of '%2'; pass '%select{-D%1=...|-U%1}0' on the command line "
144249423Sdim  "to configure the module">,
145249423Sdim  InGroup<ConfigMacros>;
146249423Sdimdef note_module_def_undef_here : Note<
147249423Sdim  "macro was %select{defined|#undef'd}0 here">;
148193326Sed}
149