]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSerializationKinds.td
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.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
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 AST 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_file_modified : Error<
21     "file '%0' has been modified since the precompiled header '%1' was built">,
22     DefaultFatal;
23 def err_fe_pch_file_overridden : Error<
24     "file '%0' from the precompiled header has been overridden">;
25 def note_module_cache_path : Note<
26     "after modifying system headers, please delete the module cache at '%0'">;
27
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 "
34     "not">;
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">;
39   
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">;
48     
49 def warn_module_conflict : Warning<
50     "module '%0' conflicts with already-imported module '%1': %2">, 
51     InGroup<ModuleConflict>;
52
53 def err_pch_macro_def_undef : Error<
54     "macro '%0' was %select{defined|undef'd}1 in the precompiled header but "
55     "%select{undef'd|defined}1 on the command line">;
56 def err_pch_macro_def_conflict : Error<
57     "definition of macro '%0' differs between the precompiled header ('%1') "
58     "and the command line ('%2')">;
59 def err_pch_undef : Error<
60     "%select{command line contains|precompiled header was built with}0 "
61     "'-undef' but %select{precompiled header was not built with it|"
62     "it is not present on the command line}0">;
63 def err_pch_pp_detailed_record : Error<
64     "%select{command line contains|precompiled header was built with}0 "
65     "'-detailed-preprocessing-record' but %select{precompiled header was not "
66     "built with it|it is not present on the command line}0">;
67
68 def err_not_a_pch_file : Error<
69     "'%0' does not appear to be a precompiled header file">, DefaultFatal;
70
71 def err_module_odr_violation_missing_decl : Error<
72   "%q0 from module '%1' is not present in definition of %q2"
73   "%select{ in module '%4'| provided earlier}3">, NoSFINAE;
74 def note_module_odr_violation_no_possible_decls : Note<
75   "definition has no member %0">;
76 def note_module_odr_violation_possible_decl : Note<
77   "declaration of %0 does not match">;
78
79 }