]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticFrontendKinds.td
MFC r234353:
[FreeBSD/stable/9.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_unable_to_rename_temp : Error<
52     "unable to rename temporary '%0' to output file '%1': '%2'">;
53 def err_fe_unable_to_open_logfile : Error<
54     "unable to open logfile file '%0': '%1'">;
55 def err_fe_pth_file_has_no_source_header : Error<
56     "PTH file '%0' does not designate an original source header file for -include-pth">;
57 def warn_fe_macro_contains_embedded_newline : Warning<
58     "macro '%0' contains embedded newline, text after the newline is ignored.">;
59 def warn_fe_cc_print_header_failure : Warning<
60     "unable to open CC_PRINT_HEADERS file: %0 (using stderr)">;
61 def warn_fe_cc_log_diagnostics_failure : Warning<
62     "unable to open CC_LOG_DIAGNOSTICS file: %0 (using stderr)">;
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_start : Error<
69     "cannot find start ('{{') of expected %0">;
70 def err_verify_missing_end : Error<
71     "cannot find end ('}}') of expected %0">;
72 def err_verify_invalid_content : Error<
73     "invalid expected %0: %1">;
74 def err_verify_inconsistent_diags : Error<
75     "'%0' diagnostics %select{expected|seen}1 but not %select{seen|expected}1: "
76     "%2">;
77
78 def note_fixit_applied : Note<"FIX-IT applied suggested code changes">;
79 def note_fixit_in_macro : Note<
80     "FIX-IT unable to apply suggested code changes in a macro">;
81 def note_fixit_failed : Note<
82     "FIX-IT unable to apply suggested code changes">;
83 def note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">;
84 def warn_fixit_no_changes : Note<
85     "FIX-IT detected errors it could not fix; no output will be generated">;
86
87 // PCH reader
88 def err_relocatable_without_isysroot : Error<
89     "must specify system root with -isysroot when building a relocatable "
90     "PCH file">;
91
92 def warn_unknown_warning_option : Warning<
93     "unknown warning option '%0'">,
94     InGroup<DiagGroup<"unknown-warning-option"> >;
95 def warn_unknown_negative_warning_option : Warning<
96     "unknown warning option '%0'?">,
97     InGroup<DiagGroup<"unknown-warning-option"> >, DefaultIgnore;
98 def warn_unknown_warning_option_suggest : Warning<
99     "unknown warning option '%0'; did you mean '%1'?">,
100     InGroup<DiagGroup<"unknown-warning-option"> >;
101 def warn_unknown_negative_warning_option_suggest : Warning<
102     "unknown warning option '%0'; did you mean '%1'?">,
103     InGroup<DiagGroup<"unknown-warning-option"> >, DefaultIgnore;
104 def warn_unknown_warning_specifier : Warning<
105     "unknown %0 warning specifier: '%1'">,
106     InGroup<DiagGroup<"unknown-warning-option"> >;
107
108 def warn_unknown_analyzer_checker : Warning<
109     "no analyzer checkers are associated with '%0'">;
110 def warn_incompatible_analyzer_plugin_api : Warning<
111     "checker plugin '%0' is not compatible with this version of the analyzer">,
112     InGroup<DiagGroup<"analyzer-incompatible-plugin"> >;
113 def note_incompatible_analyzer_plugin_api : Note<
114     "current API version is '%0', but plugin was compiled with version '%1'">;
115     
116 def err_module_map_not_found : Error<"module map file '%0' not found">, 
117   DefaultFatal;
118 def err_missing_module_name : Error<
119   "no module name provided; specify one with -fmodule-name=">, 
120   DefaultFatal;
121 def err_missing_module : Error<
122   "no module named '%0' declared in module map file '%1'">, DefaultFatal;
123 def err_missing_umbrella_header : Error<
124   "cannot open umbrella header '%0': %1">, DefaultFatal;
125 def err_no_submodule : Error<"no submodule named %0 in module '%1'">;
126 def err_no_submodule_suggest : Error<
127   "no submodule named %0 in module '%1'; did you mean '%2'?">;
128 def warn_missing_submodule : Warning<"missing submodule '%0'">,
129   InGroup<IncompleteUmbrella>;
130 def err_module_map_temp_file : Error<
131   "unable to write temporary module map file '%0'">, DefaultFatal;
132 def err_module_unavailable : Error<"module '%0' requires feature '%1'">;
133
134 }