@@ -4314,20 +4314,21 @@ def err_bitfield_has_negative_width : Error<
4314
4314
def err_anon_bitfield_has_negative_width : Error<
4315
4315
"anonymous bit-field has negative width (%0)">;
4316
4316
def err_bitfield_has_zero_width : Error<"named bit-field %0 has zero width">;
4317
- def err_bitfield_width_exceeds_type_size : Error<
4318
- "size of bit-field %0 (%1 bits) exceeds size of its type (%2 bits)">;
4319
- def err_anon_bitfield_width_exceeds_type_size : Error<
4320
- "size of anonymous bit-field (%0 bits) exceeds size of its type (%1 bits)">;
4317
+ def err_bitfield_width_exceeds_type_width : Error<
4318
+ "width of bit-field %0 (%1 bits) exceeds width of its type (%2 bit%s2)">;
4319
+ def err_anon_bitfield_width_exceeds_type_width : Error<
4320
+ "width of anonymous bit-field (%0 bits) exceeds width of its type "
4321
+ "(%1 bit%s1)">;
4321
4322
def err_incorrect_number_of_vector_initializers : Error<
4322
4323
"number of elements must be either one or match the size of the vector">;
4323
4324
4324
4325
// Used by C++ which allows bit-fields that are wider than the type.
4325
- def warn_bitfield_width_exceeds_type_size : Warning<
4326
- "size of bit-field %0 (%1 bits) exceeds the size of its type; value will be "
4327
- "truncated to %2 bits" >;
4328
- def warn_anon_bitfield_width_exceeds_type_size : Warning<
4329
- "size of anonymous bit-field (%0 bits) exceeds size of its type; value will "
4330
- "be truncated to %1 bits" >;
4326
+ def warn_bitfield_width_exceeds_type_width : Warning<
4327
+ "width of bit-field %0 (%1 bits) exceeds the width of its type; value will "
4328
+ "be truncated to %2 bit%s2">, InGroup<BitFieldWidth >;
4329
+ def warn_anon_bitfield_width_exceeds_type_width : Warning<
4330
+ "width of anonymous bit-field (%0 bits) exceeds width of its type; value "
4331
+ "will be truncated to %1 bit%s1">, InGroup<BitFieldWidth >;
4331
4332
4332
4333
def warn_missing_braces : Warning<
4333
4334
"suggest braces around initialization of subobject">,
0 commit comments