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