Combine two diagnostics into one and correct grammar
authorAaron Ballman <aaron@aaronballman.com>
Wed, 14 Jul 2021 15:40:37 +0000 (11:40 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 14 Jul 2021 15:43:28 +0000 (11:43 -0400)
commitaefd6c615c91a2af89fa3697cf1813aac0f622de
treee1d72607329b85a01d77a14d28ff6f4ca6527355
parent372bb082524de3db9361ff7b5c1992774f081276
Combine two diagnostics into one and correct grammar

The anonymous and non-anonymous bit-field diagnostics are easily
combined into one diagnostic. However, the diagnostic was missing a
"the" that is present in the almost-identically worded
warn_bitfield_width_exceeds_type_width diagnostic, hence the changes to
test cases.
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/Sema/bitfield.c
clang/test/SemaCXX/ms_wide_bitfield.cpp
clang/test/SemaObjC/class-bitfield.m