DiagnosticSerializationKinds.td revision 239462
1//==--- DiagnosticSerializationKinds.td - serialization 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 = "Serialization" in {
11
12def err_fe_unable_to_read_pch_file : Error<
13    "unable to read PCH file %0: '%1'">;
14def err_fe_not_a_pch_file : Error<
15    "input is not a PCH file: '%0'">;
16def err_fe_pch_malformed : Error<
17    "malformed or corrupted PCH file: '%0'">, DefaultFatal;
18def err_fe_pch_malformed_block : Error<
19    "malformed block record in PCH file: '%0'">, DefaultFatal;
20def err_fe_pch_error_at_end_block : Error<
21    "error at end of module block in PCH file: '%0'">, DefaultFatal;
22def err_fe_pch_file_modified : Error<
23    "file '%0' has been modified since the precompiled header was built">,
24    DefaultFatal;
25def err_fe_pch_file_overridden : Error<
26    "file '%0' from the precompiled header has been overridden">;
27
28def warn_pch_target_triple : Error<
29    "PCH file was compiled for the target '%0' but the current translation "
30    "unit is being compiled for target '%1'">;
31def err_pch_langopt_mismatch : Error<"%0 was %select{disabled|enabled}1 in "
32    "PCH file but is currently %select{disabled|enabled}2">;
33def err_pch_langopt_value_mismatch : Error<
34  "%0 differs in PCH file vs. current file">;
35  
36def warn_pch_version_too_old : Error<
37    "PCH file uses an older PCH format that is no longer supported">;
38def warn_pch_version_too_new : Error<
39    "PCH file uses a newer PCH format that cannot be read">;
40def warn_pch_different_branch : Error<
41    "PCH file built from a different branch (%0) than the compiler (%1)">;
42def err_pch_with_compiler_errors : Error<
43    "PCH file contains compiler errors">;
44def warn_cmdline_conflicting_macro_def : Error<
45    "definition of the macro '%0' conflicts with the definition used to "
46    "build the precompiled header">;
47def note_pch_macro_defined_as : Note<
48    "definition of macro '%0' in the precompiled header">;
49def warn_cmdline_missing_macro_defs : Warning<
50    "macro definitions used to build the precompiled header are missing">;
51def note_using_macro_def_from_pch : Note<
52    "using this macro definition from precompiled header">;
53def warn_macro_name_used_in_pch : Error<
54    "definition of macro %0 conflicts with an identifier used in the "
55    "precompiled header">;
56def warn_pch_compiler_options_mismatch : Error<
57    "compiler options used when building the precompiled header differ from "
58    "the options used when using the precompiled header">;
59
60def err_not_a_pch_file : Error<
61    "'%0' does not appear to be a precompiled header file">, DefaultFatal;
62}
63