]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSerializationKinds.td
Merge ^/head r275759 through r275911.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / clang / include / clang / Basic / DiagnosticSerializationKinds.td
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
10 let Component = "Serialization" in {
11 let CategoryName = "AST Deserialization Issue" in {
12
13 def err_fe_unable_to_read_pch_file : Error<
14     "unable to read PCH file %0: '%1'">;
15 def err_fe_not_a_pch_file : Error<
16     "input is not a PCH file: '%0'">;
17 def err_fe_pch_malformed : Error<
18     "malformed or corrupted AST file: '%0'">, DefaultFatal;
19 def err_fe_pch_malformed_block : Error<
20     "malformed block record in PCH file: '%0'">, DefaultFatal;
21 def err_fe_pch_file_modified : Error<
22     "file '%0' has been modified since the precompiled header '%1' was built">,
23     DefaultFatal;
24 def err_fe_pch_file_overridden : Error<
25     "file '%0' from the precompiled header has been overridden">;
26 def note_pch_required_by : Note<"'%0' required by '%1'">;
27 def note_pch_rebuild_required : Note<"please rebuild precompiled header '%0'">;
28 def note_module_cache_path : Note<
29     "after modifying system headers, please delete the module cache at '%0'">;
30
31 def err_pch_targetopt_mismatch : Error<
32     "PCH file was compiled for the %0 '%1' but the current translation "
33     "unit is being compiled for target '%2'">;
34 def err_pch_targetopt_feature_mismatch : Error<
35     "%select{AST file|current translation unit}0 was compiled with the target "
36     "feature'%1' but the %select{current translation unit is|AST file was}0 "
37     "not">;
38 def err_pch_langopt_mismatch : Error<"%0 was %select{disabled|enabled}1 in "
39     "PCH file but is currently %select{disabled|enabled}2">;
40 def err_pch_langopt_value_mismatch : Error<
41   "%0 differs in PCH file vs. current file">;
42 def err_pch_diagopt_mismatch : Error<"%0 is currently enabled, but was not in "
43   "the PCH file">;
44   
45 def err_pch_version_too_old : Error<
46     "PCH file uses an older PCH format that is no longer supported">;
47 def err_pch_version_too_new : Error<
48     "PCH file uses a newer PCH format that cannot be read">;
49 def err_pch_different_branch : Error<
50     "PCH file built from a different branch (%0) than the compiler (%1)">;
51 def err_pch_with_compiler_errors : Error<
52     "PCH file contains compiler errors">;
53
54 def err_imported_module_not_found : Error<
55     "module '%0' imported by AST file '%1' not found">, DefaultFatal;
56 def err_imported_module_modmap_changed : Error<
57     "module '%0' imported by AST file '%1' found in a different module map file"
58     " (%2) than when the importing AST file was built (%3)">, DefaultFatal;
59 def warn_module_conflict : Warning<
60     "module '%0' conflicts with already-imported module '%1': %2">, 
61     InGroup<ModuleConflict>;
62
63 def err_pch_macro_def_undef : Error<
64     "macro '%0' was %select{defined|undef'd}1 in the precompiled header but "
65     "%select{undef'd|defined}1 on the command line">;
66 def err_pch_macro_def_conflict : Error<
67     "definition of macro '%0' differs between the precompiled header ('%1') "
68     "and the command line ('%2')">;
69 def err_pch_undef : Error<
70     "%select{command line contains|precompiled header was built with}0 "
71     "'-undef' but %select{precompiled header was not built with it|"
72     "it is not present on the command line}0">;
73 def err_pch_pp_detailed_record : Error<
74     "%select{command line contains|precompiled header was built with}0 "
75     "'-detailed-preprocessing-record' but %select{precompiled header was not "
76     "built with it|it is not present on the command line}0">;
77
78 def err_not_a_pch_file : Error<
79     "'%0' does not appear to be a precompiled header file">, DefaultFatal;
80
81 def err_module_odr_violation_missing_decl : Error<
82   "%q0 from module '%1' is not present in definition of %q2"
83   "%select{ in module '%4'| provided earlier}3">, NoSFINAE;
84 def note_module_odr_violation_no_possible_decls : Note<
85   "definition has no member %0">;
86 def note_module_odr_violation_possible_decl : Note<
87   "declaration of %0 does not match">;
88 def err_module_odr_violation_different_definitions : Error<
89   "%q0 has different definitions in different modules; "
90   "%select{definition in module '%2' is here|defined here}1">;
91 def note_module_odr_violation_different_definitions : Note<
92   "definition in module '%0' is here">;
93 def err_module_odr_violation_different_instantiations : Error<
94   "instantiation of %q0 is different in different modules">;
95
96 } // let CategoryName
97 } // let Component
98