Skip to content

Commit d3e9e2d

Browse files
authored
[Clang] Fix typo in is_replaceable diagnostic (#144247)
Adjustment to #143265; `because it not` should be `because it is not`.
1 parent 7c22612 commit d3e9e2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ def note_unsatisfied_trait_reason
17791779
"%HasArcLifetime{has an ARC lifetime qualifier}|"
17801780
"%VLA{is a variably-modified type}|"
17811781
"%VBase{has a virtual base %1}|"
1782-
"%NotScalarOrClass{not %select{a|an array of objects of}1 scalar or "
1782+
"%NotScalarOrClass{is not %select{a|an array of objects of}1 scalar or "
17831783
"class type}|"
17841784
"%NTRBase{has a non-trivially-relocatable base %1}|"
17851785
"%NTRField{has a non-trivially-relocatable member %1 of type %2}|"

clang/test/SemaCXX/type-traits-unsatisfied-diags.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static_assert(__builtin_is_replaceable(const volatile int));
166166
static_assert(__builtin_is_replaceable(void()));
167167
// expected-error@-1 {{static assertion failed due to requirement '__builtin_is_replaceable(void ())}} \
168168
// expected-note@-1 {{'void ()' is not replaceable}} \
169-
// expected-note@-1 {{because it not a scalar or class type}}
169+
// expected-note@-1 {{because it is not a scalar or class type}}
170170

171171
struct B {
172172
virtual ~B();

0 commit comments

Comments
 (0)