@@ -599,16 +599,17 @@ def err_using_typename_non_type : Error<
599599 "'typename' keyword used on a non-type">;
600600def err_using_dependent_value_is_type : Error<
601601 "dependent using declaration resolved to type without 'typename'">;
602- def err_using_decl_nested_name_specifier_is_not_class : Error<
603- "using declaration in class refers into '%0' , which is not a class">;
602+ def err_using_decl_nested_name_specifier_is_not_class
603+ : Error< "using declaration in class refers into %0 , which is not a class">;
604604def warn_cxx17_compat_using_decl_non_member_enumerator : Warning<
605605 "member using declaration naming non-class '%0' enumerator is "
606606 "incompatible with C++ standards before C++20">, InGroup<CXXPre20Compat>,
607607 DefaultIgnore;
608608def err_using_decl_nested_name_specifier_is_current_class : Error<
609609 "using declaration refers to its own class">;
610- def err_using_decl_nested_name_specifier_is_not_base_class : Error<
611- "using declaration refers into '%0', which is not a base class of %1">;
610+ def err_using_decl_nested_name_specifier_is_not_base_class
611+ : Error<
612+ "using declaration refers into %0, which is not a base class of %1">;
612613def err_using_decl_constructor_not_in_direct_base : Error<
613614 "%0 is not a direct base of %1, cannot inherit constructors">;
614615def err_using_decl_can_not_refer_to_class_member : Error<
@@ -1733,8 +1734,8 @@ def err_no_matching_local_friend_suggest : Error<
17331734 "cannot define friend function %0 in a local class definition; did you mean %3?">;
17341735def err_partial_specialization_friend : Error<
17351736 "partial specialization cannot be declared as a friend">;
1736- def err_qualified_friend_def : Error<
1737- "friend function definition cannot be qualified with '%0' ">;
1737+ def err_qualified_friend_def
1738+ : Error< "friend function definition cannot be qualified with %0 ">;
17381739def err_friend_def_in_local_class : Error<
17391740 "friend function cannot be defined in a local class">;
17401741def err_friend_specialization_def : Error<
@@ -1743,14 +1744,16 @@ def err_friend_not_first_in_declaration : Error<
17431744 "'friend' must appear first in a non-function declaration">;
17441745def err_using_decl_friend : Error<
17451746 "cannot befriend target of using declaration">;
1746- def warn_template_qualified_friend_unsupported : Warning<
1747- "dependent nested name specifier '%0' for friend class declaration is "
1748- "not supported; turning off access control for %1">,
1749- InGroup<UnsupportedFriend>;
1750- def warn_template_qualified_friend_ignored : Warning<
1751- "dependent nested name specifier '%0' for friend template declaration is "
1752- "not supported; ignoring this friend declaration">,
1753- InGroup<UnsupportedFriend>;
1747+ def warn_template_qualified_friend_unsupported
1748+ : Warning<
1749+ "dependent nested name specifier %0 for friend class declaration is "
1750+ "not supported; turning off access control for %1">,
1751+ InGroup<UnsupportedFriend>;
1752+ def warn_template_qualified_friend_ignored
1753+ : Warning<"dependent nested name specifier %0 for friend template "
1754+ "declaration is "
1755+ "not supported; ignoring this friend declaration">,
1756+ InGroup<UnsupportedFriend>;
17541757def ext_friend_tag_redecl_outside_namespace : ExtWarn<
17551758 "unqualified friend declaration referring to type outside of the nearest "
17561759 "enclosing namespace is a Microsoft extension; add a nested name specifier">,
@@ -5556,9 +5559,10 @@ def ext_template_spec_extra_headers : ExtWarn<
55565559def note_explicit_template_spec_does_not_need_header : Note<
55575560 "'template<>' header not required for explicitly-specialized class %0 "
55585561 "declared here">;
5559- def err_template_qualified_declarator_no_match : Error<
5560- "nested name specifier '%0' for declaration does not refer into a class, "
5561- "class template or class template partial specialization">;
5562+ def err_template_qualified_declarator_no_match
5563+ : Error<"nested name specifier %0 for declaration does not refer into a "
5564+ "class, "
5565+ "class template or class template partial specialization">;
55625566def err_specialize_member_of_template : Error<
55635567 "cannot specialize %select{|(with 'template<>') }0a member of an "
55645568 "unspecialized template">;
@@ -5858,13 +5862,13 @@ def note_typename_member_refers_here : Note<
58585862 "referenced member %0 is declared here">;
58595863def note_typename_refers_here : Note<
58605864 "referenced %0 is declared here">;
5861- def err_typename_missing : Error<
5862- "missing 'typename' prior to dependent type name '%0%1' ">;
5863- def err_typename_missing_template : Error<
5864- "missing 'typename' prior to dependent type template name '%0%1' ">;
5865- def ext_typename_missing : ExtWarn<
5866- "missing 'typename' prior to dependent type name '%0%1' ">,
5867- InGroup<DiagGroup<"typename-missing">>;
5865+ def err_typename_missing
5866+ : Error< "missing 'typename' prior to dependent type name %0 ">;
5867+ def err_typename_missing_template
5868+ : Error< "missing 'typename' prior to dependent type template name %0 ">;
5869+ def ext_typename_missing
5870+ : ExtWarn< "missing 'typename' prior to dependent type name %0 ">,
5871+ InGroup<DiagGroup<"typename-missing">>;
58685872def ext_typename_outside_of_template : ExtWarn<
58695873 "'typename' occurs outside of a template">, InGroup<CXX11>;
58705874def warn_cxx98_compat_typename_outside_of_template : Warning<
@@ -5878,9 +5882,10 @@ def note_using_value_decl_missing_typename : Note<
58785882def warn_cxx17_compat_implicit_typename : Warning<"use of implicit 'typename' is "
58795883 "incompatible with C++ standards before C++20">, InGroup<CXX20Compat>,
58805884 DefaultIgnore;
5881- def ext_implicit_typename : ExtWarn<"missing 'typename' prior to dependent "
5882- "type name %0%1; implicit 'typename' is a C++20 extension">,
5883- InGroup<CXX20>;
5885+ def ext_implicit_typename
5886+ : ExtWarn<"missing 'typename' prior to dependent "
5887+ "type name %0; implicit 'typename' is a C++20 extension">,
5888+ InGroup<CXX20>;
58845889
58855890def err_template_kw_refers_to_non_template : Error<
58865891 "%0%select{| following the 'template' keyword}1 "
@@ -5890,12 +5895,13 @@ def note_template_kw_refers_to_non_template : Note<
58905895def err_template_kw_refers_to_dependent_non_template : Error<
58915896 "%0%select{| following the 'template' keyword}1 "
58925897 "cannot refer to a dependent template">;
5893- def err_template_kw_refers_to_type_template : Error<
5894- "'%0%1' is expected to be a non-type template, but instantiated to a %select{class|type alias}2 template">;
5898+ def err_template_kw_refers_to_type_template
5899+ : Error<"%0 is expected to be a non-type template, but instantiated to a "
5900+ "%select{class|type alias}1 template">;
58955901def note_referenced_type_template : Note<
58965902 "%select{class|type alias}0 template declared here">;
5897- def err_template_kw_missing : Error<
5898- "missing 'template' keyword prior to dependent template name '%0%1' ">;
5903+ def err_template_kw_missing
5904+ : Error< "missing 'template' keyword prior to dependent template name %0 ">;
58995905def ext_template_outside_of_template : ExtWarn<
59005906 "'template' keyword outside of a template">, InGroup<CXX11>;
59015907def warn_cxx98_compat_template_outside_of_template : Warning<
@@ -7888,8 +7894,8 @@ def err_nogetter_property_incdec : Error<
78887894 "no getter method %1 for %select{increment|decrement}0 of property">;
78897895def err_no_subobject_property_setting : Error<
78907896 "expression is not assignable">;
7891- def err_qualified_objc_access : Error<
7892- "%select{property|instance variable}0 access cannot be qualified with '%1' ">;
7897+ def err_qualified_objc_access : Error<"%select{property|instance variable}0 "
7898+ " access cannot be qualified with %1 ">;
78937899
78947900def ext_freestanding_complex : Extension<
78957901 "complex numbers are an extension in a freestanding C99 implementation">;
@@ -9839,8 +9845,8 @@ def note_non_usual_function_declared_here : Note<
98399845// C++ literal operators
98409846def err_literal_operator_outside_namespace : Error<
98419847 "literal operator %0 must be in a namespace or global scope">;
9842- def err_literal_operator_id_outside_namespace : Error<
9843- "non-namespace scope '%0' cannot have a literal operator member">;
9848+ def err_literal_operator_id_outside_namespace
9849+ : Error< "non-namespace scope %0 cannot have a literal operator member">;
98449850def err_literal_operator_default_argument : Error<
98459851 "literal operator cannot have a default argument">;
98469852def err_literal_operator_bad_param_count : Error<
0 commit comments