DiagnosticSerializationKinds.td revision 243830
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 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'">;
31def 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 "
34    "not">;
35def err_pch_langopt_mismatch : Error<"%0 was %select{disabled|enabled}1 in "
36    "PCH file but is currently %select{disabled|enabled}2">;
37def err_pch_langopt_value_mismatch : Error<
38  "%0 differs in PCH file vs. current file">;
39  
40def warn_pch_version_too_old : Error<
41    "PCH file uses an older PCH format that is no longer supported">;
42def warn_pch_version_too_new : Error<
43    "PCH file uses a newer PCH format that cannot be read">;
44def warn_pch_different_branch : Error<
45    "PCH file built from a different branch (%0) than the compiler (%1)">;
46def err_pch_with_compiler_errors : Error<
47    "PCH file contains compiler errors">;
48    
49    
50def 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">;
53def err_pch_macro_def_conflict : Error<
54    "definition of macro '%0' differs between the precompiled header ('%1') "
55    "and the command line ('%2')">;
56def 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">;
59def 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">;
62def 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">;
66
67def err_not_a_pch_file : Error<
68    "'%0' does not appear to be a precompiled header file">, DefaultFatal;
69}
70