Skip to content

Commit a9211af

Browse files
committed
Revert "Changed NR to NTR"
This reverts commit 2401565.
1 parent cdaecf0 commit a9211af

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,8 +1775,8 @@ def note_unsatisfied_trait_reason
17751775
"%HasArcLifetime{has an ARC lifetime qualifier}|"
17761776
"%VLA{is a variably-modified type}|"
17771777
"%VBase{has a virtual base %1}|"
1778-
"%NTRBase{has a non-trivially-relocatable base %1}|"
1779-
"%NTRField{has a non-trivially-relocatable member %1 of type %2}|"
1778+
"%NRBase{has a non-trivially-relocatable base %1}|"
1779+
"%NRField{has a non-trivially-relocatable member %1 of type %2}|"
17801780
"%NTCBase{has a non-trivially-copyable base %1}|"
17811781
"%NTCField{has a non-trivially-copyable member %1 of type %2}|"
17821782
"%DeletedDtr{has a %select{deleted|user-provided}1 destructor}|"

clang/lib/Sema/SemaTypeTraits.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,15 +2000,15 @@ static void DiagnoseNonTriviallyRelocatableReason(Sema &SemaRef,
20002000
<< B.getSourceRange();
20012001
if (!SemaRef.IsCXXTriviallyRelocatableType(B.getType()))
20022002
SemaRef.Diag(Loc, diag::note_unsatisfied_trait_reason)
2003-
<< diag::TraitNotSatisfiedReason::NTRBase << B.getType()
2003+
<< diag::TraitNotSatisfiedReason::NRBase << B.getType()
20042004
<< B.getSourceRange();
20052005
}
20062006
for (const FieldDecl *Field : D->fields()) {
20072007
if (!Field->getType()->isReferenceType() &&
20082008
!SemaRef.IsCXXTriviallyRelocatableType(Field->getType()))
20092009
SemaRef.Diag(Loc, diag::note_unsatisfied_trait_reason)
2010-
<< diag::TraitNotSatisfiedReason::NTRField << Field
2011-
<< Field->getType() << Field->getSourceRange();
2010+
<< diag::TraitNotSatisfiedReason::NRField << Field << Field->getType()
2011+
<< Field->getSourceRange();
20122012
}
20132013
if (D->hasDeletedDestructor())
20142014
SemaRef.Diag(Loc, diag::note_unsatisfied_trait_reason)

0 commit comments

Comments
 (0)