@@ -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">,
@@ -5551,9 +5554,10 @@ def ext_template_spec_extra_headers : ExtWarn<
55515554def note_explicit_template_spec_does_not_need_header : Note<
55525555 "'template<>' header not required for explicitly-specialized class %0 "
55535556 "declared here">;
5554- def err_template_qualified_declarator_no_match : Error<
5555- "nested name specifier '%0' for declaration does not refer into a class, "
5556- "class template or class template partial specialization">;
5557+ def err_template_qualified_declarator_no_match
5558+ : Error<"nested name specifier %0 for declaration does not refer into a "
5559+ "class, "
5560+ "class template or class template partial specialization">;
55575561def err_specialize_member_of_template : Error<
55585562 "cannot specialize %select{|(with 'template<>') }0a member of an "
55595563 "unspecialized template">;
@@ -5853,13 +5857,13 @@ def note_typename_member_refers_here : Note<
58535857 "referenced member %0 is declared here">;
58545858def note_typename_refers_here : Note<
58555859 "referenced %0 is declared here">;
5856- def err_typename_missing : Error<
5857- "missing 'typename' prior to dependent type name '%0%1' ">;
5858- def err_typename_missing_template : Error<
5859- "missing 'typename' prior to dependent type template name '%0%1' ">;
5860- def ext_typename_missing : ExtWarn<
5861- "missing 'typename' prior to dependent type name '%0%1' ">,
5862- InGroup<DiagGroup<"typename-missing">>;
5860+ def err_typename_missing
5861+ : Error< "missing 'typename' prior to dependent type name %0 ">;
5862+ def err_typename_missing_template
5863+ : Error< "missing 'typename' prior to dependent type template name %0 ">;
5864+ def ext_typename_missing
5865+ : ExtWarn< "missing 'typename' prior to dependent type name %0 ">,
5866+ InGroup<DiagGroup<"typename-missing">>;
58635867def ext_typename_outside_of_template : ExtWarn<
58645868 "'typename' occurs outside of a template">, InGroup<CXX11>;
58655869def warn_cxx98_compat_typename_outside_of_template : Warning<
@@ -5873,9 +5877,10 @@ def note_using_value_decl_missing_typename : Note<
58735877def warn_cxx17_compat_implicit_typename : Warning<"use of implicit 'typename' is "
58745878 "incompatible with C++ standards before C++20">, InGroup<CXX20Compat>,
58755879 DefaultIgnore;
5876- def ext_implicit_typename : ExtWarn<"missing 'typename' prior to dependent "
5877- "type name %0%1; implicit 'typename' is a C++20 extension">,
5878- InGroup<CXX20>;
5880+ def ext_implicit_typename
5881+ : ExtWarn<"missing 'typename' prior to dependent "
5882+ "type name %0; implicit 'typename' is a C++20 extension">,
5883+ InGroup<CXX20>;
58795884
58805885def err_template_kw_refers_to_non_template : Error<
58815886 "%0%select{| following the 'template' keyword}1 "
@@ -5885,12 +5890,13 @@ def note_template_kw_refers_to_non_template : Note<
58855890def err_template_kw_refers_to_dependent_non_template : Error<
58865891 "%0%select{| following the 'template' keyword}1 "
58875892 "cannot refer to a dependent template">;
5888- def err_template_kw_refers_to_type_template : Error<
5889- "'%0%1' is expected to be a non-type template, but instantiated to a %select{class|type alias}2 template">;
5893+ def err_template_kw_refers_to_type_template
5894+ : Error<"%0 is expected to be a non-type template, but instantiated to a "
5895+ "%select{class|type alias}1 template">;
58905896def note_referenced_type_template : Note<
58915897 "%select{class|type alias}0 template declared here">;
5892- def err_template_kw_missing : Error<
5893- "missing 'template' keyword prior to dependent template name '%0%1' ">;
5898+ def err_template_kw_missing
5899+ : Error< "missing 'template' keyword prior to dependent template name %0 ">;
58945900def ext_template_outside_of_template : ExtWarn<
58955901 "'template' keyword outside of a template">, InGroup<CXX11>;
58965902def warn_cxx98_compat_template_outside_of_template : Warning<
@@ -7879,8 +7885,8 @@ def err_nogetter_property_incdec : Error<
78797885 "no getter method %1 for %select{increment|decrement}0 of property">;
78807886def err_no_subobject_property_setting : Error<
78817887 "expression is not assignable">;
7882- def err_qualified_objc_access : Error<
7883- "%select{property|instance variable}0 access cannot be qualified with '%1' ">;
7888+ def err_qualified_objc_access : Error<"%select{property|instance variable}0 "
7889+ " access cannot be qualified with %1 ">;
78847890
78857891def ext_freestanding_complex : Extension<
78867892 "complex numbers are an extension in a freestanding C99 implementation">;
@@ -9830,8 +9836,8 @@ def note_non_usual_function_declared_here : Note<
98309836// C++ literal operators
98319837def err_literal_operator_outside_namespace : Error<
98329838 "literal operator %0 must be in a namespace or global scope">;
9833- def err_literal_operator_id_outside_namespace : Error<
9834- "non-namespace scope '%0' cannot have a literal operator member">;
9839+ def err_literal_operator_id_outside_namespace
9840+ : Error< "non-namespace scope %0 cannot have a literal operator member">;
98359841def err_literal_operator_default_argument : Error<
98369842 "literal operator cannot have a default argument">;
98379843def err_literal_operator_bad_param_count : Error<
0 commit comments