@@ -31,12 +31,12 @@ defm constexpr_body_multiple_return : CXX14Compat<
3131defm variable_template : CXX14Compat<"variable templates are">;
3232
3333// C++17 compatibility with C++14 and earlier.
34- defm decomp_decl : CXX17Compat<"decomposition declarations are">;
34+ defm decomp_decl : CXX17Compat<"structured binding declarations are">;
3535defm inline_variable : CXX17Compat<"inline variables are">;
3636
3737// C++20 compatibility with C++17 and earlier.
3838defm decomp_decl_spec
39- : CXX20Compat<"decomposition declaration declared '%0' is">;
39+ : CXX20Compat<"structured binding declaration declared '%0' is">;
4040defm constexpr_local_var_no_init : CXX20Compat<
4141 "uninitialized variable in a constexpr %select{function|constructor}0 is">;
4242defm constexpr_function_try_block : CXX20Compat<
@@ -591,58 +591,58 @@ def warn_modifying_shadowing_decl :
591591
592592// C++ decomposition declarations
593593def err_decomp_decl_context : Error<
594- "decomposition declaration not permitted in this context">;
594+ "structured binding declaration not permitted in this context">;
595595def err_decomp_decl_spec
596- : Error<"decomposition declaration cannot be declared '%0'">;
596+ : Error<"structured binding declaration cannot be declared '%0'">;
597597def err_decomp_decl_type : Error<
598- "decomposition declaration cannot be declared with type %0; "
598+ "structured binding declaration cannot be declared with type %0; "
599599 "declared type must be 'auto' or reference to 'auto'">;
600600def err_decomp_decl_constraint : Error<
601- "decomposition declaration cannot be declared with constrained 'auto'">;
601+ "structured binding declaration cannot be declared with constrained 'auto'">;
602602def err_decomp_decl_parens : Error<
603- "decomposition declaration cannot be declared with parentheses">;
603+ "structured binding declaration cannot be declared with parentheses">;
604604def err_decomp_decl_template : Error<
605- "decomposition declaration cannot be a template">;
605+ "structured binding declaration cannot be a template">;
606606def err_decomp_decl_not_alone : Error<
607- "decomposition declaration must be the only declaration in its group">;
607+ "structured binding declaration must be the only declaration in its group">;
608608def err_decomp_decl_requires_init : Error<
609- "decomposition declaration %0 requires an initializer">;
609+ "structured binding declaration %0 requires an initializer">;
610610def err_decomp_decl_wrong_number_bindings : Error<
611- "type %0 decomposes into %3 %plural{1:element|:elements}2, but "
611+ "type %0 binds to %3 %plural{1:element|:elements}2, but "
612612 "%select{%plural{0:no|:only %1}1|%1}4 "
613613 "%plural{1:name was|:names were}1 provided">;
614614def err_decomp_decl_unbindable_type : Error<
615- "cannot decompose %select{union|non-class, non-array}1 type %2">;
615+ "cannot bind %select{union|non-class, non-array}1 type %2">;
616616def err_decomp_decl_multiple_bases_with_members : Error<
617- "cannot decompose class type %1: "
617+ "cannot bind class type %1: "
618618 "%select{its base classes %2 and|both it and its base class}0 %3 "
619619 "have non-static data members">;
620620def err_decomp_decl_ambiguous_base : Error<
621- "cannot decompose members of ambiguous base class %1 of %0:%2">;
621+ "cannot bind members of ambiguous base class %1 of %0:%2">;
622622def err_decomp_decl_inaccessible_base : Error<
623- "cannot decompose members of inaccessible base class %1 of %0">,
623+ "cannot bind members of inaccessible base class %1 of %0">,
624624 AccessControl;
625625def err_decomp_decl_inaccessible_field : Error<
626- "cannot decompose %select{private|protected}0 member %1 of %3">,
626+ "cannot bind %select{private|protected}0 member %1 of %3">,
627627 AccessControl;
628628def err_decomp_decl_lambda : Error<
629- "cannot decompose lambda closure type">;
629+ "cannot bind lambda closure type">;
630630def err_decomp_decl_anon_union_member : Error<
631- "cannot decompose class type %0 because it has an anonymous "
631+ "cannot bind class type %0 because it has an anonymous "
632632 "%select{struct|union}1 member">;
633633def err_decomp_decl_std_tuple_element_not_specialized : Error<
634- "cannot decompose this type; 'std::tuple_element<%0>::type' "
634+ "cannot bind this type; 'std::tuple_element<%0>::type' "
635635 "does not name a type">;
636636def err_decomp_decl_std_tuple_size_not_constant : Error<
637- "cannot decompose this type; 'std::tuple_size<%0>::value' "
637+ "cannot bind this type; 'std::tuple_size<%0>::value' "
638638 "is not a valid integral constant expression">;
639639def err_decomp_decl_std_tuple_size_invalid
640- : Error<"cannot decompose this type; 'std::tuple_size<%0>::value' "
640+ : Error<"cannot bind this type; 'std::tuple_size<%0>::value' "
641641 "is not a valid size: %1">;
642642def note_in_binding_decl_init : Note<
643643 "in implicit initialization of binding declaration %0">;
644644def err_arg_is_not_destructurable : Error<
645- "type %0 cannot be decomposed ">;
645+ "type %0 cannot be bound ">;
646646
647647def err_std_type_trait_not_class_template : Error<
648648 "unsupported standard library implementation: "
@@ -2620,7 +2620,7 @@ def err_auto_variable_cannot_appear_in_own_initializer
26202620 "declared with deduced type %2 cannot appear in its own initializer">;
26212621def err_binding_cannot_appear_in_own_initializer : Error<
26222622 "binding %0 cannot appear in the initializer of its own "
2623- "decomposition declaration">;
2623+ "structured binding declaration">;
26242624def err_new_array_of_auto : Error<
26252625 "cannot allocate array of 'auto'">;
26262626def err_auto_not_allowed : Error<
0 commit comments