@@ -32,19 +32,16 @@ struct A {
32
32
Movable GlobalObj;
33
33
struct B {
34
34
B (const Movable &M) : M(GlobalObj) {}
35
- // CHECK-FIXES: B(const Movable &M) : M(GlobalObj) {}
36
35
Movable M;
37
36
};
38
37
39
38
// Test that a parameter with more than one reference to it won't be changed.
40
39
struct C {
41
40
// Tests extra-reference in body.
42
41
C (const Movable &M) : M(M) { this ->i = M.a ; }
43
- // CHECK-FIXES: C(const Movable &M) : M(M) { this->i = M.a; }
44
42
45
43
// Tests extra-reference in init-list.
46
44
C (const Movable &M, int ) : M(M), i(M.a) {}
47
- // CHECK-FIXES: C(const Movable &M, int) : M(M), i(M.a) {}
48
45
Movable M;
49
46
int i;
50
47
};
@@ -70,7 +67,6 @@ struct E {
70
67
// Test with object that can't be moved.
71
68
struct F {
72
69
F (const NotMovable &NM) : NM(NM) {}
73
- // CHECK-FIXES: F(const NotMovable &NM) : NM(NM) {}
74
70
NotMovable NM;
75
71
};
76
72
@@ -112,7 +108,6 @@ struct I {
112
108
// Test that templates aren't modified.
113
109
template <typename T> struct J {
114
110
J (const T &M) : M(M) {}
115
- // CHECK-FIXES: J(const T &M) : M(M) {}
116
111
T M;
117
112
};
118
113
J<Movable> j1 (Movable());
@@ -129,13 +124,11 @@ struct MovableTemplateT
129
124
template <class T >
130
125
struct J2 {
131
126
J2 (const MovableTemplateT<T>& A);
132
- // CHECK-FIXES: J2(const MovableTemplateT<T>& A);
133
127
MovableTemplateT<T> M;
134
128
};
135
129
136
130
template <class T >
137
131
J2<T>::J2(const MovableTemplateT<T>& A) : M(A) {}
138
- // CHECK-FIXES: J2<T>::J2(const MovableTemplateT<T>& A) : M(A) {}
139
132
J2<int > j3 (MovableTemplateT<int >{});
140
133
141
134
struct K_Movable {
@@ -182,7 +175,6 @@ struct O {
182
175
// Test with a const-value parameter.
183
176
struct P {
184
177
P (const Movable M) : M(M) {}
185
- // CHECK-FIXES: P(const Movable M) : M(M) {}
186
178
Movable M;
187
179
};
188
180
@@ -215,7 +207,6 @@ struct R {
215
207
// Test with rvalue parameter.
216
208
struct S {
217
209
S (Movable &&M) : M(M) {}
218
- // CHECK-FIXES: S(Movable &&M) : M(M) {}
219
210
Movable M;
220
211
};
221
212
@@ -225,13 +216,11 @@ template <typename T, int N> struct array { T A[N]; };
225
216
// cause problems with performance-move-const-arg, as it will revert it.
226
217
struct T {
227
218
T (array<int , 10 > a) : a_(a) {}
228
- // CHECK-FIXES: T(array<int, 10> a) : a_(a) {}
229
219
array<int , 10 > a_;
230
220
};
231
221
232
222
struct U {
233
223
U (const POD &M) : M(M) {}
234
- // CHECK-FIXES: U(const POD &M) : M(M) {}
235
224
POD M;
236
225
};
237
226
0 commit comments