DiagnosticSerializationKinds.td revision 263508
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 AST file: '%0'">, DefaultFatal; 18def err_fe_pch_malformed_block : Error< 19 "malformed block record in PCH file: '%0'">, DefaultFatal; 20def err_fe_pch_file_modified : Error< 21 "file '%0' has been modified since the precompiled header '%1' was built">, 22 DefaultFatal; 23def err_fe_pch_file_overridden : Error< 24 "file '%0' from the precompiled header has been overridden">; 25def note_module_cache_path : Note< 26 "after modifying system headers, please delete the module cache at '%0'">; 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 49def warn_module_conflict : Warning< 50 "module '%0' conflicts with already-imported module '%1': %2">, 51 InGroup<ModuleConflict>; 52 53def 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">; 56def err_pch_macro_def_conflict : Error< 57 "definition of macro '%0' differs between the precompiled header ('%1') " 58 "and the command line ('%2')">; 59def 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">; 63def 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 68def err_not_a_pch_file : Error< 69 "'%0' does not appear to be a precompiled header file">, DefaultFatal; 70 71def 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; 74def note_module_odr_violation_no_possible_decls : Note< 75 "definition has no member %0">; 76def note_module_odr_violation_possible_decl : Note< 77 "declaration of %0 does not match">; 78 79} 80