@@ -1760,38 +1760,36 @@ def ext_bit_int : Extension<
17601760} // end of Parse Issue category.
17611761
17621762let CategoryName = "Modules Issue" in {
1763- def err_unexpected_module_decl : Error<
1764- "module declaration can only appear at the top level">;
1765- def err_module_expected_ident : Error<
1766- "expected a module name after '%select{module|import}0'">;
1767- def err_attribute_not_module_attr : Error<
1768- "%0 attribute cannot be applied to a module">;
1769- def err_keyword_not_module_attr : Error<
1770- "%0 cannot be applied to a module">;
1771- def err_attribute_not_import_attr : Error<
1772- "%0 attribute cannot be applied to a module import">;
1773- def err_keyword_not_import_attr : Error<
1774- "%0 cannot be applied to a module import">;
1775- def err_module_expected_semi : Error<
1776- "expected ';' after module name">;
1777- def err_global_module_introducer_not_at_start : Error<
1778- "'module;' introducing a global module fragment can appear only "
1779- "at the start of the translation unit">;
1780- def err_module_fragment_exported : Error<
1781- "%select{global|private}0 module fragment cannot be exported">;
1782- def err_private_module_fragment_expected_semi : Error<
1783- "expected ';' after private module fragment declaration">;
1784- def err_missing_before_module_end : Error<"expected %0 at end of module">;
1785- def err_unsupported_module_partition : Error<
1786- "module partitions are only supported for C++20 onwards">;
1787- def err_import_not_allowed_here : Error<
1788- "imports must immediately follow the module declaration">;
1789- def err_partition_import_outside_module : Error<
1790- "module partition imports must be within a module purview">;
1791- def err_import_in_wrong_fragment : Error<
1792- "module%select{| partition}0 imports cannot be in the %select{global|private}1 module fragment">;
1793-
1794- def err_export_empty : Error<"export declaration cannot be empty">;
1763+ def err_unexpected_module_import_decl
1764+ : Error<"%select{module|import}0 declaration can only appear at the top "
1765+ "level">;
1766+ def err_module_expected_ident
1767+ : Error<"expected a module name after '%select{module|import}0'">;
1768+ def err_attribute_not_module_attr
1769+ : Error<"%0 attribute cannot be applied to a module">;
1770+ def err_keyword_not_module_attr : Error<"%0 cannot be applied to a module">;
1771+ def err_attribute_not_import_attr
1772+ : Error<"%0 attribute cannot be applied to a module import">;
1773+ def err_keyword_not_import_attr
1774+ : Error<"%0 cannot be applied to a module import">;
1775+ def err_module_expected_semi : Error<"expected ';' after module name">;
1776+ def err_global_module_introducer_not_at_start
1777+ : Error<"'module;' introducing a global module fragment can appear only "
1778+ "at the start of the translation unit">;
1779+ def err_module_fragment_exported
1780+ : Error<"%select{global|private}0 module fragment cannot be exported">;
1781+ def err_private_module_fragment_expected_semi
1782+ : Error<"expected ';' after private module fragment declaration">;
1783+ def err_missing_before_module_end : Error<"expected %0 at end of module">;
1784+ def err_import_not_allowed_here
1785+ : Error<"imports must immediately follow the module declaration">;
1786+ def err_partition_import_outside_module
1787+ : Error<"module partition imports must be within a module purview">;
1788+ def err_import_in_wrong_fragment
1789+ : Error<"module%select{| partition}0 imports cannot be in the "
1790+ "%select{global|private}1 module fragment">;
1791+
1792+ def err_export_empty : Error<"export declaration cannot be empty">;
17951793}
17961794
17971795let CategoryName = "Generics Issue" in {
0 commit comments