Skip to content

Commit 93c89fc

Browse files
committed
Minor change in tablegen
Revert info in ReleaseNotes.rst
1 parent aecedc9 commit 93c89fc

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -644,11 +644,7 @@ Improvements to Clang's diagnostics
644644
#GH69470, #GH59391, #GH58172, #GH46215, #GH45915, #GH45891, #GH44490,
645645
#GH36703, #GH32903, #GH23312, #GH69874.
646646

647-
- Clang now gives pinpointed diagnostics for std::is_empty<T> failures—emitting a “not empty” error
648-
plus “because…” notes for non-static members, virtual functions/bases, non-empty bases, and non-zero bit-fields
649-
(including dependent widths) while correctly ignoring zero-width bit-fields.
650-
651-
647+
652648
Improvements to Clang's time-trace
653649
----------------------------------
654650

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,7 @@ def note_unsatisfied_trait_reason
17911791
"%NonEmptyMember{has a non-static data member %1 of type %2}|"
17921792
"%VirtualFunction{has a virtual function %1}|"
17931793
"%NonEmptyBase{has a base class %1 that is not empty}|"
1794-
"%ZeroLengthField{field %1 is a non-zero-length bit-field}|"
1794+
"%NonZeroLengthField{field %1 is a non-zero-length bit-field}|"
17951795
"%DeletedDtr{has a %select{deleted|user-provided}1 destructor}|"
17961796
"%UserProvidedCtr{has a user provided %select{copy|move}1 "
17971797
"constructor}|"

clang/lib/Sema/SemaTypeTraits.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ static void DiagnoseIsEmptyReason(Sema &S, SourceLocation Loc,
23222322
continue;
23232323
if (Field->isBitField()) {
23242324
S.Diag(Loc, diag::note_unsatisfied_trait_reason)
2325-
<< diag::TraitNotSatisfiedReason::ZeroLengthField << Field
2325+
<< diag::TraitNotSatisfiedReason::NonZeroLengthField << Field
23262326
<< Field->getSourceRange();
23272327
continue;
23282328
}

0 commit comments

Comments
 (0)