DiagnosticSerializationKinds.td revision 280031
1234287Sdim//==--- DiagnosticSerializationKinds.td - serialization diagnostics -------===// 2234287Sdim// 3234287Sdim// The LLVM Compiler Infrastructure 4234287Sdim// 5234287Sdim// This file is distributed under the University of Illinois Open Source 6234287Sdim// License. See LICENSE.TXT for details. 7234287Sdim// 8234287Sdim//===----------------------------------------------------------------------===// 9234287Sdim 10234287Sdimlet Component = "Serialization" in { 11276479Sdimlet CategoryName = "AST Deserialization Issue" in { 12234287Sdim 13234287Sdimdef err_fe_unable_to_read_pch_file : Error< 14239462Sdim "unable to read PCH file %0: '%1'">; 15234287Sdimdef err_fe_not_a_pch_file : Error< 16234287Sdim "input is not a PCH file: '%0'">; 17234287Sdimdef err_fe_pch_malformed : Error< 18261991Sdim "malformed or corrupted AST file: '%0'">, DefaultFatal; 19234287Sdimdef err_fe_pch_malformed_block : Error< 20234287Sdim "malformed block record in PCH file: '%0'">, DefaultFatal; 21234287Sdimdef err_fe_pch_file_modified : Error< 22249423Sdim "file '%0' has been modified since the precompiled header '%1' was built">, 23234287Sdim DefaultFatal; 24239462Sdimdef err_fe_pch_file_overridden : Error< 25239462Sdim "file '%0' from the precompiled header has been overridden">; 26276479Sdimdef note_pch_required_by : Note<"'%0' required by '%1'">; 27276479Sdimdef note_pch_rebuild_required : Note<"please rebuild precompiled header '%0'">; 28261991Sdimdef note_module_cache_path : Note< 29261991Sdim "after modifying system headers, please delete the module cache at '%0'">; 30234287Sdim 31243830Sdimdef err_pch_targetopt_mismatch : Error< 32243830Sdim "PCH file was compiled for the %0 '%1' but the current translation " 33243830Sdim "unit is being compiled for target '%2'">; 34243830Sdimdef err_pch_targetopt_feature_mismatch : Error< 35243830Sdim "%select{AST file|current translation unit}0 was compiled with the target " 36243830Sdim "feature'%1' but the %select{current translation unit is|AST file was}0 " 37243830Sdim "not">; 38234287Sdimdef err_pch_langopt_mismatch : Error<"%0 was %select{disabled|enabled}1 in " 39234287Sdim "PCH file but is currently %select{disabled|enabled}2">; 40234287Sdimdef err_pch_langopt_value_mismatch : Error< 41234287Sdim "%0 differs in PCH file vs. current file">; 42276479Sdimdef err_pch_diagopt_mismatch : Error<"%0 is currently enabled, but was not in " 43276479Sdim "the PCH file">; 44234287Sdim 45276479Sdimdef err_pch_version_too_old : Error< 46234287Sdim "PCH file uses an older PCH format that is no longer supported">; 47276479Sdimdef err_pch_version_too_new : Error< 48234287Sdim "PCH file uses a newer PCH format that cannot be read">; 49276479Sdimdef err_pch_different_branch : Error< 50234287Sdim "PCH file built from a different branch (%0) than the compiler (%1)">; 51234287Sdimdef err_pch_with_compiler_errors : Error< 52234287Sdim "PCH file contains compiler errors">; 53276479Sdim 54276479Sdimdef err_imported_module_not_found : Error< 55280031Sdim "module '%0' in AST file '%1' (imported by AST file '%2') " 56280031Sdim "is not defined in any loaded module map file; " 57280031Sdim "maybe you need to load '%3'?">, DefaultFatal; 58276479Sdimdef err_imported_module_modmap_changed : Error< 59276479Sdim "module '%0' imported by AST file '%1' found in a different module map file" 60276479Sdim " (%2) than when the importing AST file was built (%3)">, DefaultFatal; 61280031Sdimdef err_imported_module_relocated : Error< 62280031Sdim "module '%0' was built in directory '%1' but now resides in " 63280031Sdim "directory '%2'">, DefaultFatal; 64280031Sdimdef err_module_different_modmap : Error< 65280031Sdim "module '%0' %select{uses|does not use}1 additional module map '%2'" 66280031Sdim "%select{| not}1 used when the module was built">; 67249423Sdimdef warn_module_conflict : Warning< 68249423Sdim "module '%0' conflicts with already-imported module '%1': %2">, 69249423Sdim InGroup<ModuleConflict>; 70249423Sdim 71243830Sdimdef err_pch_macro_def_undef : Error< 72243830Sdim "macro '%0' was %select{defined|undef'd}1 in the precompiled header but " 73243830Sdim "%select{undef'd|defined}1 on the command line">; 74243830Sdimdef err_pch_macro_def_conflict : Error< 75243830Sdim "definition of macro '%0' differs between the precompiled header ('%1') " 76243830Sdim "and the command line ('%2')">; 77243830Sdimdef err_pch_undef : Error< 78243830Sdim "%select{command line contains|precompiled header was built with}0 " 79243830Sdim "'-undef' but %select{precompiled header was not built with it|" 80243830Sdim "it is not present on the command line}0">; 81251662Sdimdef err_pch_pp_detailed_record : Error< 82251662Sdim "%select{command line contains|precompiled header was built with}0 " 83251662Sdim "'-detailed-preprocessing-record' but %select{precompiled header was not " 84251662Sdim "built with it|it is not present on the command line}0">; 85234287Sdim 86234287Sdimdef err_not_a_pch_file : Error< 87234287Sdim "'%0' does not appear to be a precompiled header file">, DefaultFatal; 88261991Sdim 89261991Sdimdef err_module_odr_violation_missing_decl : Error< 90261991Sdim "%q0 from module '%1' is not present in definition of %q2" 91261991Sdim "%select{ in module '%4'| provided earlier}3">, NoSFINAE; 92261991Sdimdef note_module_odr_violation_no_possible_decls : Note< 93261991Sdim "definition has no member %0">; 94261991Sdimdef note_module_odr_violation_possible_decl : Note< 95261991Sdim "declaration of %0 does not match">; 96276479Sdimdef err_module_odr_violation_different_definitions : Error< 97276479Sdim "%q0 has different definitions in different modules; " 98276479Sdim "%select{definition in module '%2' is here|defined here}1">; 99276479Sdimdef note_module_odr_violation_different_definitions : Note< 100276479Sdim "definition in module '%0' is here">; 101276479Sdimdef err_module_odr_violation_different_instantiations : Error< 102276479Sdim "instantiation of %q0 is different in different modules">; 103261991Sdim 104276479Sdim} // let CategoryName 105276479Sdim} // let Component 106276479Sdim 107