1 //==--- DiagnosticFrontendKinds.td - frontend diagnostics -----------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 let Component = "Frontend" in {
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 def err_fe_invalid_ast_file : Error<"invalid AST file: '%0'">, DefaultFatal;
17 def err_fe_invalid_ast_action : Error<"invalid action for AST input">,
19 // Error generated by the backend.
20 def err_fe_inline_asm : Error<"%0">, CatInlineAsm;
21 def note_fe_inline_asm_here : Note<"instantiated into assembly here">;
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">,
29 def err_fe_stderr_binary : Error<"unable to change standard error to binary">,
31 def err_fe_dependency_file_requires_MT : Error<
32 "-dependency-file requires at least one -MT or -MQ option">;
33 def err_fe_incompatible_options : Error<
34 "'%0' cannot be used with '%1'">, DefaultFatal;
35 def err_fe_no_fixit_and_codegen : Error<
36 "FIX-ITs cannot be applied when generating code">;
37 def err_fe_unable_to_find_fixit_file : Error<
38 "FIX-IT could not find file '%0'">;
39 def err_fe_invalid_plugin_name : Error<
40 "unable to find plugin '%0'">;
41 def err_fe_expected_compiler_job : Error<
42 "unable to handle compilation, expected exactly one compiler job in '%0'">;
43 def err_fe_expected_clang_command : Error<
44 "expected a clang compiler command">;
45 def err_fe_remap_missing_to_file : Error<
46 "could not remap file '%0' to the contents of file '%1'">, DefaultFatal;
47 def err_fe_remap_missing_from_file : Error<
48 "could not remap from missing file '%0'">, DefaultFatal;
49 def err_fe_unable_to_load_pch : Error<
50 "unable to load PCH file">;
51 def err_fe_unable_to_load_plugin : Error<
52 "unable to load plugin '%0': '%1'">;
53 def err_fe_unable_to_create_target : Error<
54 "unable to create target: '%0'">;
55 def err_fe_unable_to_interface_with_target : Error<
56 "unable to interface with target machine">;
57 def err_fe_unable_to_read_pch_file : Error<
58 "unable to read PCH file: '%0'">;
59 def err_fe_not_a_pch_file : Error<
60 "input is not a PCH file: '%0'">;
61 def err_fe_pch_malformed : Error<
62 "malformed or corrupted PCH file: '%0'">, DefaultFatal;
63 def err_fe_pch_malformed_block : Error<
64 "malformed block record in PCH file: '%0'">, DefaultFatal;
65 def err_fe_pch_error_at_end_block : Error<
66 "error at end of module block in PCH file: '%0'">, DefaultFatal;
67 def err_fe_pch_file_modified : Error<
68 "file '%0' has been modified since the precompiled header was built">,
70 def err_fe_unable_to_open_output : Error<
71 "unable to open output file '%0': '%1'">;
72 def err_fe_unable_to_rename_temp : Error<
73 "unable to rename temporary '%0' to output file '%1': '%2'">;
74 def err_fe_unable_to_open_logfile : Error<
75 "unable to open logfile file '%0': '%1'">;
76 def err_fe_pth_file_has_no_source_header : Error<
77 "PTH file '%0' does not designate an original source header file for -include-pth">;
78 def warn_fe_macro_contains_embedded_newline : Warning<
79 "macro '%0' contains embedded newline, text after the newline is ignored.">;
80 def warn_fe_cc_print_header_failure : Warning<
81 "unable to open CC_PRINT_HEADERS file: %0 (using stderr)">;
82 def warn_fe_cc_log_diagnostics_failure : Warning<
83 "unable to open CC_LOG_DIAGNOSTICS file: %0 (using stderr)">;
85 def err_verify_missing_start : Error<
86 "cannot find start ('{{') of expected %0">;
87 def err_verify_missing_end : Error<
88 "cannot find end ('}}') of expected %0">;
89 def err_verify_invalid_content : Error<
90 "invalid expected %0: %1">;
91 def err_verify_inconsistent_diags : Error<
92 "'%0' diagnostics %select{expected|seen}1 but not %select{seen|expected}1: "
95 def note_fixit_applied : Note<"FIX-IT applied suggested code changes">;
96 def note_fixit_in_macro : Note<
97 "FIX-IT unable to apply suggested code changes in a macro">;
98 def note_fixit_failed : Note<
99 "FIX-IT unable to apply suggested code changes">;
100 def note_fixit_unfixed_error : Note<"FIX-IT detected an error it cannot fix">;
101 def note_fixit_main_file_unchanged : Note<
102 "main file unchanged">;
103 def warn_fixit_no_changes : Note<
104 "FIX-IT detected errors it could not fix; no output will be generated">;
106 def err_fe_invoking : Error<"error invoking%0: %1">, DefaultFatal;
109 def err_relocatable_without_isysroot : Error<
110 "must specify system root with -isysroot when building a relocatable "
112 def warn_pch_target_triple : Error<
113 "PCH file was compiled for the target '%0' but the current translation "
114 "unit is being compiled for target '%1'">;
115 def err_pch_langopt_mismatch : Error<"%0 was %select{disabled|enabled}1 in "
116 "PCH file but is currently %select{disabled|enabled}2">;
117 def err_pch_langopt_value_mismatch : Error<
118 "%0 differs in PCH file vs. current file">;
120 def warn_pch_version_too_old : Error<
121 "PCH file uses an older PCH format that is no longer supported">;
122 def warn_pch_version_too_new : Error<
123 "PCH file uses a newer PCH format that cannot be read">;
124 def warn_pch_different_branch : Error<
125 "PCH file built from a different branch (%0) than the compiler (%1)">;
126 def warn_cmdline_conflicting_macro_def : Error<
127 "definition of the macro '%0' conflicts with the definition used to "
128 "build the precompiled header">;
129 def note_pch_macro_defined_as : Note<
130 "definition of macro '%0' in the precompiled header">;
131 def warn_cmdline_missing_macro_defs : Warning<
132 "macro definitions used to build the precompiled header are missing">;
133 def note_using_macro_def_from_pch : Note<
134 "using this macro definition from precompiled header">;
135 def warn_macro_name_used_in_pch : Error<
136 "definition of macro %0 conflicts with an identifier used in the "
137 "precompiled header">;
138 def warn_pch_compiler_options_mismatch : Error<
139 "compiler options used when building the precompiled header differ from "
140 "the options used when using the precompiled header">;
142 def err_not_a_pch_file : Error<
143 "'%0' does not appear to be a precompiled header file">, DefaultFatal;
144 def warn_unknown_warning_option : Warning<
145 "unknown warning option '%0'">,
146 InGroup<DiagGroup<"unknown-warning-option"> >;
147 def warn_unknown_negative_warning_option : Warning<
148 "unknown warning option '%0'">,
149 InGroup<DiagGroup<"unknown-warning-option"> >, DefaultIgnore;
150 def warn_unknown_warning_specifier : Warning<
151 "unknown %0 warning specifier: '%1'">,
152 InGroup<DiagGroup<"unknown-warning-option"> >;
154 def warn_unknown_analyzer_checker : Warning<
155 "no analyzer checkers are associated with '%0'">;
156 def warn_incompatible_analyzer_plugin_api : Warning<
157 "checker plugin '%0' is not compatible with this version of the analyzer">,
158 InGroup<DiagGroup<"analyzer-incompatible-plugin"> >;
159 def note_incompatible_analyzer_plugin_api : Note<
160 "current API version is '%0', but plugin was compiled with version '%1'">;