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: '%1'">;
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">,
25 def err_fe_pch_file_overridden : Error<
26 "file '%0' from the precompiled header has been overridden">;
28 def err_pch_targetopt_mismatch : Error<
29 "PCH file was compiled for the %0 '%1' but the current translation "
30 "unit is being compiled for target '%2'">;
31 def err_pch_targetopt_feature_mismatch : Error<
32 "%select{AST file|current translation unit}0 was compiled with the target "
33 "feature'%1' but the %select{current translation unit is|AST file was}0 "
35 def err_pch_langopt_mismatch : Error<"%0 was %select{disabled|enabled}1 in "
36 "PCH file but is currently %select{disabled|enabled}2">;
37 def err_pch_langopt_value_mismatch : Error<
38 "%0 differs in PCH file vs. current file">;
40 def warn_pch_version_too_old : Error<
41 "PCH file uses an older PCH format that is no longer supported">;
42 def warn_pch_version_too_new : Error<
43 "PCH file uses a newer PCH format that cannot be read">;
44 def warn_pch_different_branch : Error<
45 "PCH file built from a different branch (%0) than the compiler (%1)">;
46 def err_pch_with_compiler_errors : Error<
47 "PCH file contains compiler errors">;
50 def err_pch_macro_def_undef : Error<
51 "macro '%0' was %select{defined|undef'd}1 in the precompiled header but "
52 "%select{undef'd|defined}1 on the command line">;
53 def err_pch_macro_def_conflict : Error<
54 "definition of macro '%0' differs between the precompiled header ('%1') "
55 "and the command line ('%2')">;
56 def err_pch_include_opt_missing : Error<
57 "precompiled header depends on '%select{-include|-imacros}0 %1' option "
58 "that is missing from the command line">;
59 def err_pch_include_opt_conflict : Error<
60 "precompiled header option '%select{-include|-imacros}0 %1' conflicts with "
61 "corresponding option '%select{-include|-imacros}0 %2' on command line">;
62 def err_pch_undef : Error<
63 "%select{command line contains|precompiled header was built with}0 "
64 "'-undef' but %select{precompiled header was not built with it|"
65 "it is not present on the command line}0">;
67 def err_not_a_pch_file : Error<
68 "'%0' does not appear to be a precompiled header file">, DefaultFatal;