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