File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ def warn_qual_return_type : Warning<
490
490
"'%0' type qualifier%s1 on return type %plural{1:has|:have}1 no effect">,
491
491
InGroup<IgnoredQualifiers>, DefaultIgnore;
492
492
def warn_qual_base_type : Warning<
493
- "'%0' qualifier%s1 on base class type %2 have no effect">,
493
+ "'%0' qualifier%s1 on base class type %2 %plural{1:has|: have}1 no effect">,
494
494
InGroup<IgnoredQualifiers>, DefaultIgnore;
495
495
496
496
def warn_deprecated_redundant_constexpr_static_def : Warning<
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ template <typename T> using add_const_t = typename add_const<T>::type;
8
8
class A { };
9
9
10
10
typedef const A A_Const;
11
- class B : public A_Const { }; // expected-warning {{'const' qualifier on base class type 'A_Const' (aka 'const A') have no effect}} \
11
+ class B : public A_Const { }; // expected-warning {{'const' qualifier on base class type 'A_Const' (aka 'const A') has no effect}} \
12
12
// expected-note {{base class 'A_Const' (aka 'const A') specified here}}
13
13
14
14
typedef const volatile A A_Const_Volatile;
@@ -19,15 +19,15 @@ struct D {
19
19
D (int );
20
20
};
21
21
22
- template <typename T> struct E : T { // expected-warning {{'const' qualifier on base class type 'const D' have no effect}} \
22
+ template <typename T> struct E : T { // expected-warning {{'const' qualifier on base class type 'const D' has no effect}} \
23
23
// expected-note {{base class 'const D' specified here}}
24
24
using T::T;
25
25
E (int &) : E(0 ) {}
26
26
};
27
27
E<const D> e (1 ); // expected-note {{in instantiation of template class 'E<const D>' requested here}}
28
28
29
29
template <typename T>
30
- struct G : add_const<T>::type { // expected-warning {{'const' qualifier on base class type 'add_const<D>::type' (aka 'const D') have no effect}} \
30
+ struct G : add_const<T>::type { // expected-warning {{'const' qualifier on base class type 'add_const<D>::type' (aka 'const D') has no effect}} \
31
31
// expected-note {{base class 'add_const<D>::type' (aka 'const D') specified here}}
32
32
using T::T;
33
33
G (int &) : G(0 ) {}
You can’t perform that action at this time.
0 commit comments