Lines Matching full:used

23 int a = a; // no-warning: used to signal intended lack of initialization.
24 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initial…
25 int c = (c + c); // expected-warning 2 {{variable 'c' is uninitialized when used within its own ini…
26 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used wit…
27 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initia…
37 int l = k ? l : l; // expected-warning 2{{variable 'l' is uninitialized when used within its own i…
38 int m = 1 + (k ? m : m); // expected-warning 2{{variable 'm' is uninitialized when used within its…
39 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initializ…
40 int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its own …
41 const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within it…
42 int q = moved(std::move(q)); // expected-warning {{variable 'q' is uninitialized when used within i…
43 int r = std::move((p ? q : (18, r))); // expected-warning {{variable 'r' is uninitialized when used
44 int s = r ?: s; // expected-warning {{variable 's' is uninitialized when used within its own initia…
45 int t = t ?: s; // expected-warning {{variable 't' is uninitialized when used within its own initia…
46 int u = (foo(u), s); // expected-warning {{variable 'u' is uninitialized when used within its own i…
47 int v = (u += v); // expected-warning {{variable 'v' is uninitialized when used within its own init…
48 int w = (w += 10); // expected-warning {{variable 'w' is uninitialized when used within its own ini…
49 int x = x++; // expected-warning {{variable 'x' is uninitialized when used within its own initializ…
50 …)++, sizeof(y)); // expected-warning {{variable 'y' is uninitialized when used within its own init…
51 int z = ++ref(z); // expected-warning {{variable 'z' is uninitialized when used within its own init…
52 int aa = (ref(aa) += 10); // expected-warning {{variable 'aa' is uninitialized when used within its…
53 int bb = bb ? x : y; // expected-warning {{variable 'bb' is uninitialized when used within its own …
56 int a = a; // no-warning: used to signal intended lack of initialization. in test_stuff()
57 …int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initia… in test_stuff()
58 …int c = (c + c); // expected-warning {{variable 'c' is uninitialized when used within its own init… in test_stuff()
59 …int d = ({ d + d ;}); // expected-warning {{variable 'd' is uninitialized when used within its own… in test_stuff()
60 …int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used wi… in test_stuff()
61 …int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initi… in test_stuff()
71 …int l = k ? l : l; // expected-warning {{variable 'l' is uninitialized when used within its own i… in test_stuff()
72 …int m = 1 + (k ? m : m); // expected-warning {{'m' is uninitialized when used within its own init… in test_stuff()
73 …int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initiali… in test_stuff()
74 …int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its ow… in test_stuff()
75 …const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within … in test_stuff()
76 …int q = moved(std::move(q)); // expected-warning {{variable 'q' is uninitialized when used within… in test_stuff()
77 …? q : (18, r))); // expected-warning {{variable 'r' is uninitialized when used within its own init… in test_stuff()
78 …int s = r ?: s; // expected-warning {{variable 's' is uninitialized when used within its own initi… in test_stuff()
79 …int t = t ?: s; // expected-warning {{variable 't' is uninitialized when used within its own initi… in test_stuff()
80 …int u = (foo(u), s); // expected-warning {{variable 'u' is uninitialized when used within its own … in test_stuff()
81 …int v = (u += v); // expected-warning {{variable 'v' is uninitialized when used within its own ini… in test_stuff()
82 …int w = (w += 10); // expected-warning {{variable 'w' is uninitialized when used within its own in… in test_stuff()
83 …int x = x++; // expected-warning {{variable 'x' is uninitialized when used within its own initiali… in test_stuff()
84 …)++, sizeof(y)); // expected-warning {{variable 'y' is uninitialized when used within its own init… in test_stuff()
85 … // expected-warning {{variable 'z' is uninitialized when used within its own init… in test_stuff()
86 …int aa = (ref(aa) += 10); // expected-warning {{variable 'aa' is uninitialized when used within it… in test_stuff()
87 …int bb = bb ? x : y; // expected-warning {{variable 'bb' is uninitialized when used within its own… in test_stuff()
90 int a = a; // no-warning: used to signal intended lack of initialization. in test_stuff()
91 …int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initia… in test_stuff()
92 …int c = (c + c); // expected-warning {{variable 'c' is uninitialized when used within its own init… in test_stuff()
93 …int d = ({ d + d ;}); // expected-warning {{variable 'd' is uninitialized when used within its own… in test_stuff()
94 …int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used wi… in test_stuff()
95 …int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initi… in test_stuff()
105 …int l = k ? l : l; // expected-warning {{variable 'l' is uninitialized when used within its own i… in test_stuff()
106 …int m = 1 + (k ? m : m); // expected-warning {{'m' is uninitialized when used within its own init… in test_stuff()
107 …int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initiali… in test_stuff()
108 …int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its ow… in test_stuff()
109 …const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within … in test_stuff()
110 …int q = moved(std::move(q)); // expected-warning {{variable 'q' is uninitialized when used within… in test_stuff()
111 …? q : (18, r))); // expected-warning {{variable 'r' is uninitialized when used within its own init… in test_stuff()
112 …int s = r ?: s; // expected-warning {{variable 's' is uninitialized when used within its own initi… in test_stuff()
113 …int t = t ?: s; // expected-warning {{variable 't' is uninitialized when used within its own initi… in test_stuff()
114 …int u = (foo(u), s); // expected-warning {{variable 'u' is uninitialized when used within its own … in test_stuff()
115 …int v = (u += v); // expected-warning {{variable 'v' is uninitialized when used within its own ini… in test_stuff()
116 …int w = (w += 10); // expected-warning {{variable 'w' is uninitialized when used within its own in… in test_stuff()
117 …int x = x++; // expected-warning {{variable 'x' is uninitialized when used within its own initiali… in test_stuff()
118 …)++, sizeof(y)); // expected-warning {{variable 'y' is uninitialized when used within its own init… in test_stuff()
119 … // expected-warning {{variable 'z' is uninitialized when used within its own init… in test_stuff()
120 …int aa = (ref(aa) += 10); // expected-warning {{variable 'aa' is uninitialized when used within it… in test_stuff()
121 …int bb = bb ? x : y; // expected-warning {{variable 'bb' is uninitialized when used within its own… in test_stuff()
128 int b = (a, a ?: 2); // expected-warning {{variable 'a' is uninitialized when used here}} in test_comma()
129 …int c = (a, a, b, c); // expected-warning {{variable 'c' is uninitialized when used within its ow… in test_comma()
131 int e = (foo(d), e, b); // expected-warning {{variable 'd' is uninitialized when used here}} in test_comma()
133 f = f + 1, 2; // expected-warning {{variable 'f' is uninitialized when used here}} in test_comma()
135 int g = (h, g, 2); // no-warning: h, g are evaluated but not used. in test_comma()
147 …A a{a.*px}; // expected-warning {{variable 'a' is uninitialized when used within its own initializ… in test_member_ptr()
148 …A b = b; // expected-warning {{variable 'b' is uninitialized when used within its own initializati… in test_member_ptr()
162 b = a + b; // expected-warning {{variable 'b' is uninitialized when used here}} in test_const_ptr()
165 foo(ptr); // expected-warning {{variable 'ptr' is uninitialized when used here}} in test_const_ptr()
177 S(bool (*)[1]) : x(x) {} // expected-warning {{field 'x' is uninitialized when used here}} in S()
178 S(bool (*)[2]) : x(x + 1) {} // expected-warning {{field 'x' is uninitialized when used here}} in S()
179 S(bool (*)[3]) : x(x + x) {} // expected-warning 2{{field 'x' is uninitialized when used here}} in S()
180 … : x(static_cast<long>(x) + 1) {} // expected-warning {{field 'x' is uninitialized when used here}} in S()
181 S(bool (*)[5]) : x(foo(x)) {} // expected-warning {{field 'x' is uninitialized when used here}} in S()
191 …S(int (*)[1]) : x(0), y(x ? y : y) {} // expected-warning 2{{field 'y' is uninitialized when used in S()
192 …]) : x(0), y(1 + (x ? y : y)) {} // expected-warning 2{{field 'y' is uninitialized when used here}} in S()
193 S(int (*)[3]) : x(-x) {} // expected-warning {{field 'x' is uninitialized when used here}} in S()
194 …S(int (*)[4]) : x(std::move(x)) {} // expected-warning {{field 'x' is uninitialized when used here… in S()
195 …S(int (*)[5]) : z(std::move(z)) {} // expected-warning {{field 'z' is uninitialized when used here… in S()
196 …)[6]) : x(moved(std::move(x))) {} // expected-warning {{field 'x' is uninitialized when used here}} in S()
197 …(std::move((x ? x : (18, y)))) {} // expected-warning {{field 'y' is uninitialized when used here}} in S()
198 …S(int (*)[8]) : x(0), y(x ?: y) {} // expected-warning {{field 'y' is uninitialized when used here… in S()
199 …S(int (*)[9]) : x(0), y(y ?: x) {} // expected-warning {{field 'y' is uninitialized when used here… in S()
200 …*)[10]) : x(0), y((foo(y), x)) {} // expected-warning {{field 'y' is uninitialized when used here}} in S()
201 …S(int (*)[11]) : x(0), y(x += y) {} // expected-warning {{field 'y' is uninitialized when used her… in S()
202 S(int (*)[12]) : x(x += 10) {} // expected-warning {{field 'x' is uninitialized when used here}} in S()
203 S(int (*)[13]) : x(x++) {} // expected-warning {{field 'x' is uninitialized when used here}} in S()
204 …, x) : (77, y))++, sizeof(y))) {} // expected-warning {{field 'y' is uninitialized when used here}} in S()
205 S(int (*)[15]) : x(++ref(x)) {} // expected-warning {{field 'x' is uninitialized when used here}} in S()
206 …S(int (*)[16]) : x((ref(x) += 10)) {} // expected-warning {{field 'x' is uninitialized when used h… in S()
207 …S(int (*)[17]) : x(0), y(y ? x : x) {} // expected-warning {{field 'y' is uninitialized when used in S()
255 …A a11(a11); // expected-warning {{variable 'a11' is uninitialized when used within its own initia… in setupA()
256 …A a12(a12.get()); // expected-warning {{variable 'a12' is uninitialized when used within its own … in setupA()
257 …A a13(a13.num); // expected-warning {{variable 'a13' is uninitialized when used within its own in… in setupA()
258 …A a14 = A(a14); // expected-warning {{variable 'a14' is uninitialized when used within its own in… in setupA()
259 …A a15 = getA(a15.num); // expected-warning {{variable 'a15' is uninitialized when used within its… in setupA()
260 …A a16(&a16.num); // expected-warning {{variable 'a16' is uninitialized when used within its own i… in setupA()
261 …A a17(a17.get2()); // expected-warning {{variable 'a17' is uninitialized when used within its own… in setupA()
262 …A a18 = x ? a18 : a17; // expected-warning {{variable 'a18' is uninitialized when used within its… in setupA()
263 …A a19 = getA(x ? a19 : a17); // expected-warning {{variable 'a19' is uninitialized when used with… in setupA()
264 …A a20{a20}; // expected-warning {{variable 'a20' is uninitialized when used within its own initia… in setupA()
265 …A a21 = {a21}; // expected-warning {{variable 'a21' is uninitialized when used within its own ini… in setupA()
269 …A *a22 = new A(a22->count); // expected-warning {{variable 'a22' is uninitialized when used withi… in setupA()
270 …A *a23 = new A(a23->ONE); // expected-warning {{variable 'a23' is uninitialized when used within … in setupA()
271 …A *a24 = new A(a24->TWO); // expected-warning {{variable 'a24' is uninitialized when used within … in setupA()
272 …A *a25 = new A(a25->zero()); // expected-warning {{variable 'a25' is uninitialized when used with… in setupA()
274 …A *a26 = new A(a26->get()); // expected-warning {{variable 'a26' is uninitialized when used wit… in setupA()
275 …A *a27 = new A(a27->get2()); // expected-warning {{variable 'a27' is uninitialized when used with… in setupA()
276 …A *a28 = new A(a28->num); // expected-warning {{variable 'a28' is uninitialized when used within … in setupA()
278 …const A a29(a29); // expected-warning {{variable 'a29' is uninitialized when used within its own … in setupA()
279 …const A a30 = a30; // expected-warning {{variable 'a30' is uninitialized when used within its own… in setupA()
281 …A a31 = std::move(a31); // expected-warning {{variable 'a31' is uninitialized when used within it… in setupA()
282 …A a32 = moveA(std::move(a32)); // expected-warning {{variable 'a32' is uninitialized when used wi… in setupA()
283 …A a33 = A(std::move(a33)); // expected-warning {{variable 'a33' is uninitialized when used withi… in setupA()
284 …A a34(std::move(a34)); // expected-warning {{variable 'a34' is uninitialized when used within it… in setupA()
285 …: (37, a35)); // expected-warning {{variable 'a35' is uninitialized when used within its own init… in setupA()
290 …A a38({a38}); // expected-warning {{variable 'a38' is uninitialized when used within its own init… in setupA()
291 …A a39 = {a39}; // expected-warning {{variable 'a39' is uninitialized when used within its own ini… in setupA()
292 …A a40 = A({a40}); // expected-warning {{variable 'a40' is uninitialized when used within its own … in setupA()
294 …A a41 = !a41; // expected-warning {{variable 'a41' is uninitialized when used within its own init… in setupA()
295 …A a42 = !(a42); // expected-warning {{variable 'a42' is uninitialized when used within its own in… in setupA()
296 …A a43 = a43 != a42; // expected-warning {{variable 'a43' is uninitialized when used within its ow… in setupA()
297 …A a44 = a43 != a44; // expected-warning {{variable 'a44' is uninitialized when used within its ow… in setupA()
298 …A a45 = a45 != a45; // expected-warning 2{{variable 'a45' is uninitialized when used within its o… in setupA()
299 …A a46 = 0 != a46; // expected-warning {{variable 'a46' is uninitialized when used within its own … in setupA()
301 …A a47(a47.set(a47.num)); // expected-warning 2{{variable 'a47' is uninitialized when used within … in setupA()
302 …A a48(a47.set(a48.num)); // expected-warning {{variable 'a48' is uninitialized when used within i… in setupA()
319 A a11(a11); // expected-warning {{variable 'a11' is uninitialized when used within its own initial…
320 A a12(a12.get()); // expected-warning {{variable 'a12' is uninitialized when used within its own i…
321 A a13(a13.num); // expected-warning {{variable 'a13' is uninitialized when used within its own ini…
322 A a14 = A(a14); // expected-warning {{variable 'a14' is uninitialized when used within its own ini…
323 A a15 = getA(a15.num); // expected-warning {{variable 'a15' is uninitialized when used within its …
324 A a16(&a16.num); // expected-warning {{variable 'a16' is uninitialized when used within its own in…
325 A a17(a17.get2()); // expected-warning {{variable 'a17' is uninitialized when used within its own …
326 A a18 = cond ? a18 : a17; // expected-warning {{variable 'a18' is uninitialized when used within i…
327 A a19 = getA(cond ? a19 : a17); // expected-warning {{variable 'a19' is uninitialized when used wi…
328 A a20{a20}; // expected-warning {{variable 'a20' is uninitialized when used within its own initial…
329 A a21 = {a21}; // expected-warning {{variable 'a21' is uninitialized when used within its own init…
336 A *a26 = new A(a26->get()); // expected-warning {{variable 'a26' is uninitialized when used with…
337 A *a27 = new A(a27->get2()); // expected-warning {{variable 'a27' is uninitialized when used withi…
338 A *a28 = new A(a28->num); // expected-warning {{variable 'a28' is uninitialized when used within i…
340 const A a29(a29); // expected-warning {{variable 'a29' is uninitialized when used within its own i…
341 const A a30 = a30; // expected-warning {{variable 'a30' is uninitialized when used within its own …
343 A a31 = std::move(a31); // expected-warning {{variable 'a31' is uninitialized when used within its…
344 A a32 = moveA(std::move(a32)); // expected-warning {{variable 'a32' is uninitialized when used wit…
345 A a33 = A(std::move(a33)); // expected-warning {{variable 'a33' is uninitialized when used within…
346 A a34(std::move(a34)); // expected-warning {{variable 'a34' is uninitialized when used within its…
347 …: (37, a35)); // expected-warning {{variable 'a35' is uninitialized when used within its own init…
352 A a38({a38}); // expected-warning {{variable 'a38' is uninitialized when used within its own initi…
353 A a39 = {a39}; // expected-warning {{variable 'a39' is uninitialized when used within its own init…
354 A a40 = A({a40}); // expected-warning {{variable 'a40' is uninitialized when used within its own i…
356 A a41 = !a41; // expected-warning {{variable 'a41' is uninitialized when used within its own initi…
357 A a42 = !(a42); // expected-warning {{variable 'a42' is uninitialized when used within its own ini…
358 A a43 = a43 != a42; // expected-warning {{variable 'a43' is uninitialized when used within its own…
359 A a44 = a43 != a44; // expected-warning {{variable 'a44' is uninitialized when used within its own…
360 A a45 = a45 != a45; // expected-warning 2{{variable 'a45' is uninitialized when used within its ow…
362 A a46 = 0 != a46; // expected-warning {{variable 'a46' is uninitialized when used within its own i…
364 A a47(a47.set(a47.num)); // expected-warning 2{{variable 'a47' is uninitialized when used within i…
365 A a48(a47.set(a48.num)); // expected-warning {{variable 'a48' is uninitialized when used within it…
385 T(bool (*)[11]) : a(a) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
386 T(bool (*)[12]) : a(a.get()) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
387 T(bool (*)[13]) : a(a.num) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
388 T(bool (*)[14]) : a(A(a)) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
389 …T(bool (*)[15]) : a(getA(a.num)) {} // expected-warning {{field 'a' is uninitialized when used he… in T()
390 T(bool (*)[16]) : a(&a.num) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
391 …T(bool (*)[17]) : a(a.get2()) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
392 …(*)[18]) : a2(cond ? a2 : a) {} // expected-warning {{field 'a2' is uninitialized when used here}} in T()
393 …(*)[19]) : a2(cond ? a2 : a) {} // expected-warning {{field 'a2' is uninitialized when used here}} in T()
394 T(bool (*)[20]) : a{a} {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
395 T(bool (*)[21]) : a({a}) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
402 …tr_a(new A(ptr_a->get())) {} // expected-warning {{field 'ptr_a' is uninitialized when used here}} in T()
403 …r_a(new A(ptr_a->get2())) {} // expected-warning {{field 'ptr_a' is uninitialized when used here}} in T()
404 … ptr_a(new A(ptr_a->num)) {} // expected-warning {{field 'ptr_a' is uninitialized when used here}} in T()
406 T(bool (*)[29]) : c_a(c_a) {} // expected-warning {{field 'c_a' is uninitialized when used here}} in T()
407 …T(bool (*)[30]) : c_a(A(c_a)) {} // expected-warning {{field 'c_a' is uninitialized when used her… in T()
409 …T(bool (*)[31]) : a(std::move(a)) {} // expected-warning {{field 'a' is uninitialized when used h… in T()
410 …32]) : a(moveA(std::move(a))) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
411 …(*)[33]) : a(A(std::move(a))) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
412 …(*)[34]) : a(A(std::move(a))) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
413 …std::move(x ? a : (37, a2))) {} // expected-warning {{field 'a2' is uninitialized when used here}} in T()
418 T(bool (*)[38]) : a({a}) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
419 T(bool (*)[39]) : a{a} {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
420 T(bool (*)[40]) : a({a}) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
422 T(bool (*)[41]) : a(!a) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
423 T(bool (*)[42]) : a(!(a)) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
424 … (*)[43]) : a(), a2(a2 != a) {} // expected-warning {{field 'a2' is uninitialized when used here}} in T()
425 … (*)[44]) : a(), a2(a != a2) {} // expected-warning {{field 'a2' is uninitialized when used here}} in T()
426 T(bool (*)[45]) : a(a != a) {} // expected-warning 2{{field 'a' is uninitialized when used here}} in T()
427 T(bool (*)[46]) : a(0 != a) {} // expected-warning {{field 'a' is uninitialized when used here}} in T()
429 …)[47]) : a2(a2.set(a2.num)) {} // expected-warning 2{{field 'a2' is uninitialized when used here}} in T()
430 …(*)[48]) : a2(a.set(a2.num)) {} // expected-warning {{field 'a2' is uninitialized when used here}} in T()
464 …B b7(b7); // expected-warning {{variable 'b7' is uninitialized when used within its own initializ… in setupB()
465 …B b8 = getB(b8.x); // expected-warning {{variable 'b8' is uninitialized when used within its own … in setupB()
466 …B b9 = getB(b9.y); // expected-warning {{variable 'b9' is uninitialized when used within its own … in setupB()
467 …B b10 = getB(-b10.x); // expected-warning {{variable 'b10' is uninitialized when used within its … in setupB()
477 …B* b15 = getPtrB(b15->x); // expected-warning {{variable 'b15' is uninitialized when used within … in setupB()
478 …B* b16 = getPtrB(b16->y); // expected-warning {{variable 'b16' is uninitialized when used within … in setupB()
481 …B b18 = { b18.x + 1, b18.y }; // expected-warning 2{{variable 'b18' is uninitialized when used wi… in setupB()
483 …const B b19 = b19; // expected-warning {{variable 'b19' is uninitialized when used within its own… in setupB()
484 …const B b20(b20); // expected-warning {{variable 'b20' is uninitialized when used within its own … in setupB()
486 …B b21 = std::move(b21); // expected-warning {{variable 'b21' is uninitialized when used within it… in setupB()
487 …B b22 = moveB(std::move(b22)); // expected-warning {{variable 'b22' is uninitialized when used wi… in setupB()
488 …B b23 = B(std::move(b23)); // expected-warning {{variable 'b23' is uninitialized when used withi… in setupB()
489 …: (18, b24)); // expected-warning {{variable 'b24' is uninitialized when used within its own init… in setupB()
499 B b7(b7); // expected-warning {{variable 'b7' is uninitialized when used within its own initializa…
500 B b8 = getB(b8.x); // expected-warning {{variable 'b8' is uninitialized when used within its own i…
501 B b9 = getB(b9.y); // expected-warning {{variable 'b9' is uninitialized when used within its own i…
502 B b10 = getB(-b10.x); // expected-warning {{variable 'b10' is uninitialized when used within its o…
509 B* b15 = getPtrB(b15->x); // expected-warning {{variable 'b15' is uninitialized when used within i…
510 B* b16 = getPtrB(b16->y); // expected-warning {{variable 'b16' is uninitialized when used within i…
513 B b18 = { b18.x + 1, b18.y }; // expected-warning 2{{variable 'b18' is uninitialized when used wit…
515 const B b19 = b19; // expected-warning {{variable 'b19' is uninitialized when used within its own …
516 const B b20(b20); // expected-warning {{variable 'b20' is uninitialized when used within its own i…
518 B b21 = std::move(b21); // expected-warning {{variable 'b21' is uninitialized when used within its…
519 B b22 = moveB(std::move(b22)); // expected-warning {{variable 'b22' is uninitialized when used wit…
520 B b23 = B(std::move(b23)); // expected-warning {{variable 'b23' is uninitialized when used within…
521 …: (18, b24)); // expected-warning {{variable 'b24' is uninitialized when used within its own init…
536 U(bool (*)[7]) : b1(b1) {} // expected-warning {{field 'b1' is uninitialized when used here}} in U()
537 …U(bool (*)[8]) : b1(getB(b1.x)) {} // expected-warning {{field 'b1' is uninitialized when used he… in U()
538 …U(bool (*)[9]) : b1(getB(b1.y)) {} // expected-warning {{field 'b1' is uninitialized when used he… in U()
539 …U(bool (*)[10]) : b1(getB(-b1.x)) {} // expected-warning {{field 'b1' is uninitialized when used in U()
546 …) : ptr1(getPtrB(ptr1->x)) {} // expected-warning {{field 'ptr1' is uninitialized when used here}} in U()
547 …) : ptr2(getPtrB(ptr2->y)) {} // expected-warning {{field 'ptr2' is uninitialized when used here}} in U()
550 …8]) : b1 { b1.x + 1, b1.y } {} // expected-warning 2{{field 'b1' is uninitialized when used here}} in U()
552 …*)[19]) : constb(constb) {} // expected-warning {{field 'constb' is uninitialized when used here}} in U()
553 …20]) : constb(B(constb)) {} // expected-warning {{field 'constb' is uninitialized when used here}} in U()
555 …(*)[21]) : b1(std::move(b1)) {} // expected-warning {{field 'b1' is uninitialized when used here}} in U()
556 …) : b1(moveB(std::move(b1))) {} // expected-warning {{field 'b1' is uninitialized when used here}} in U()
557 …[23]) : b1(B(std::move(b1))) {} // expected-warning {{field 'b1' is uninitialized when used here}} in U()
558 …td::move(x ? b1 : (18, b2))) {} // expected-warning {{field 'b2' is uninitialized when used here}} in U()
606 …urn x + y + z; }; // expected-warning{{variable 'z' is uninitialized when used here}} expected-not… in test_lambda()
635 …D(char (*)[3]) : c(c.b.a.A3) {} // expected-warning {{field 'c' is uninitialized when used here… in D()
636 …D(char (*)[4]) : c(c.b.a.A4()) {} // expected-warning {{field 'c' is uninitialized when used here… in D()
650 …E(char (*)[1]) : a(a ? b : c) {} // expected-warning {{field 'a' is uninitialized when used here}} in E()
651 …E(char (*)[2]) : a(b ? a : a) {} // expected-warning 2{{field 'a' is uninitialized when used here}} in E()
652 …E(char (*)[3]) : a(b ? (a) : c) {} // expected-warning {{field 'a' is uninitialized when used here… in E()
653 …E(char (*)[4]) : a(b ? c : (a+c)) {} // expected-warning {{field 'a' is uninitialized when used he… in E()
656 E(char (*)[6]) : a(a ?: a) {} // expected-warning 2{{field 'a' is uninitialized when used here}} in E()
657 E(char (*)[7]) : a(b ?: a) {} // expected-warning {{field 'a' is uninitialized when used here}} in E()
658 E(char (*)[8]) : a(a ?: c) {} // expected-warning {{field 'a' is uninitialized when used here}} in E()
662 …)[11]) : a((c + a, a + 1, b)) {} // expected-warning 2{{field 'a' is uninitialized when used here}} in E()
663 …ar (*)[12]) : a((b + c, c, a)) {} // expected-warning {{field 'a' is uninitialized when used here}} in E()
664 …E(char (*)[13]) : a((a, a, a, a)) {} // expected-warning {{field 'a' is uninitialized when used he… in E()
666 E(char (*)[15]) : a(b ?: a) {} // expected-warning {{field 'a' is uninitialized when used here}} in E()
667 E(char (*)[16]) : a(a ?: b) {} // expected-warning {{field 'a' is uninitialized when used here}} in E()
682 G(char (*)[1]) : f1(f1) {} // expected-warning {{field 'f1' is uninitialized when used here}} in G()
686 … G(char (*)[4]) : f1(f1.*ptr) {} // expected-warning {{field 'f1' is uninitialized when used here}} in G()
689 G(char (*)[6]) : f3(f3) {} // expected-warning {{field 'f3' is uninitialized when used here}} in G()
690 …G(char (*)[7]) : f3(f3->*f_ptr) {} // expected-warning {{field 'f3' is uninitialized when used her… in G()
691 …(*)[8]) : f3(new F(f3->*ptr)) {} // expected-warning {{field 'f3' is uninitialized when used here}} in G()
695 H() : a(a) {} // expected-warning {{field 'a' is uninitialized when used here}} in H()
701 static int a = a; // no-warning: used to signal intended lack of initialization.
702 …static int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own…
703 …static int c = (c + c); // expected-warning 2{{variable 'c' is uninitialized when used within its …
704 …st<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own init…
705 …static int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its ow…
716 …static int l = k ? l : l; // expected-warning 2{{variable 'l' is uninitialized when used within i…
717 …static int m = 1 + (k ? m : m); // expected-warning 2{{variable 'm' is uninitialized when used wi…
718 …static int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own i…
719 …static int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within …
720 …static const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used w…
721 …static int q = moved(std::move(q)); // expected-warning {{variable 'q' is uninitialized when used
722 …? q : (18, r))); // expected-warning {{variable 'r' is uninitialized when used within its own init…
723 …static int s = r ?: s; // expected-warning {{variable 's' is uninitialized when used within its ow…
724 …static int t = t ?: s; // expected-warning {{variable 't' is uninitialized when used within its ow…
725 …static int u = (foo(u), s); // expected-warning {{variable 'u' is uninitialized when used within i…
726 …static int v = (u += v); // expected-warning {{variable 'v' is uninitialized when used within its …
727 …static int w = (w += 10); // expected-warning {{variable 'w' is uninitialized when used within its…
728 …static int x = x++; // expected-warning {{variable 'x' is uninitialized when used within its own i…
729 …)++, sizeof(y)); // expected-warning {{variable 'y' is uninitialized when used within its own init…
730 …static int z = ++ref(z); // expected-warning {{variable 'z' is uninitialized when used within its …
731 …static int aa = (ref(aa) += 10); // expected-warning {{variable 'aa' is uninitialized when used wi…
732 …static int bb = bb ? x : y; // expected-warning {{variable 'bb' is uninitialized when used within …
736 static int a = a; // no-warning: used to signal intended lack of initialization. in test()
737 …static int b = b + 1; // expected-warning {{static variable 'b' is suspiciously used within its ow… in test()
738 …static int c = (c + c); // expected-warning 2{{static variable 'c' is suspiciously used within its… in test()
739 …static int d = ({ d + d ;}); // expected-warning 2{{static variable 'd' is suspiciously used withi… in test()
740 …t<long>(e) + 1; // expected-warning {{static variable 'e' is suspiciously used within its own init… in test()
741 …static int f = foo(f); // expected-warning {{static variable 'f' is suspiciously used within its o… in test()
751 …static int l = k ? l : l; // expected-warning 2{{static variable 'l' is suspiciously used within … in test()
752 … (k ? m : m); // expected-warning 2{{static variable 'm' is suspiciously used within its own init… in test()
753 …static int n = -n; // expected-warning {{static variable 'n' is suspiciously used within its own … in test()
754 …static int o = std::move(o); // expected-warning {{static variable 'o' is suspiciously used withi… in test()
755 … std::move(p); // expected-warning {{static variable 'p' is suspiciously used within its own init… in test()
756 …std::move(q)); // expected-warning {{static variable 'q' is suspiciously used within its own init… in test()
757 …q : (18, r))); // expected-warning {{static variable 'r' is suspiciously used within its own init… in test()
758 …static int s = r ?: s; // expected-warning {{static variable 's' is suspiciously used within its … in test()
759 …static int t = t ?: s; // expected-warning {{static variable 't' is suspiciously used within its … in test()
760 …static int u = (foo(u), s); // expected-warning {{static variable 'u' is suspiciously used within… in test()
761 …static int v = (u += v); // expected-warning {{static variable 'v' is suspiciously used within it… in test()
762 …static int w = (w += 10); // expected-warning {{static variable 'w' is suspiciously used within i… in test()
763 …static int x = x++; // expected-warning {{static variable 'x' is suspiciously used within its own… in test()
764 …+, sizeof(y)); // expected-warning {{static variable 'y' is suspiciously used within its own init… in test()
765 …static int z = ++ref(z); // expected-warning {{static variable 'z' is suspiciously used within its… in test()
766 …ef(aa) += 10); // expected-warning {{static variable 'aa' is suspiciously used within its own init… in test()
767 …static int bb = bb ? x : y; // expected-warning {{static variable 'bb' is suspiciously used within… in test()
770 static int a = a; // no-warning: used to signal intended lack of initialization. in test()
771 …static int b = b + 1; // expected-warning {{static variable 'b' is suspiciously used within its ow… in test()
772 …static int c = (c + c); // expected-warning 2{{static variable 'c' is suspiciously used within its… in test()
773 …static int d = ({ d + d ;}); // expected-warning 2{{static variable 'd' is suspiciously used withi… in test()
774 …t<long>(e) + 1; // expected-warning {{static variable 'e' is suspiciously used within its own init… in test()
775 …static int f = foo(f); // expected-warning {{static variable 'f' is suspiciously used within its o… in test()
785 …static int l = k ? l : l; // expected-warning 2{{static variable 'l' is suspiciously used within … in test()
786 …+ (k ? m : m); // expected-warning 2{{static variable 'm' is suspiciously used within its own init… in test()
787 …static int n = -n; // expected-warning {{static variable 'n' is suspiciously used within its own … in test()
788 …static int o = std::move(o); // expected-warning {{static variable 'o' is suspiciously used withi… in test()
789 … std::move(p); // expected-warning {{static variable 'p' is suspiciously used within its own init… in test()
790 …std::move(q)); // expected-warning {{static variable 'q' is suspiciously used within its own init… in test()
791 …q : (18, r))); // expected-warning {{static variable 'r' is suspiciously used within its own init… in test()
792 …static int s = r ?: s; // expected-warning {{static variable 's' is suspiciously used within its … in test()
793 …static int t = t ?: s; // expected-warning {{static variable 't' is suspiciously used within its … in test()
794 …static int u = (foo(u), s); // expected-warning {{static variable 'u' is suspiciously used within… in test()
795 …static int v = (u += v); // expected-warning {{static variable 'v' is suspiciously used within it… in test()
796 …static int w = (w += 10); // expected-warning {{static variable 'w' is suspiciously used within i… in test()
797 …static int x = x++; // expected-warning {{static variable 'x' is suspiciously used within its own… in test()
798 …+, sizeof(y)); // expected-warning {{static variable 'y' is suspiciously used within its own init… in test()
799 …static int z = ++ref(z); // expected-warning {{static variable 'z' is suspiciously used within its… in test()
800 …ef(aa) += 10); // expected-warning {{static variable 'aa' is suspiciously used within its own init… in test()
801 …static int bb = bb ? x : y; // expected-warning {{static variable 'bb' is suspiciously used within… in test()
808 S() : a(a + 1) {} // expected-warning{{field 'a' is uninitialized when used here}} in S()
819 U() : a(b + 1), b(a + 1) {} // expected-warning{{field 'b' is uninitialized when used here}} in U()
826 …int &a = a; // expected-warning{{reference 'a' is not yet bound to a value when used within its ow…
827 …int &b(b); // expected-warning{{reference 'b' is not yet bound to a value when used within its own…
828 …int &c = a ? b : c; // expected-warning{{reference 'c' is not yet bound to a value when used withi…
829 …int &d{d}; // expected-warning{{reference 'd' is not yet bound to a value when used within its own…
830 …int &e = d ?: e; // expected-warning{{reference 'e' is not yet bound to a value when used within i…
831 …int &f = f ?: d; // expected-warning{{reference 'f' is not yet bound to a value when used within i…
836 …int &g = return_ref1(g); // expected-warning{{reference 'g' is not yet bound to a value when used
837 …int &h = return_ref2(h); // expected-warning{{reference 'h' is not yet bound to a value when used
840 S() : a(a) {} // expected-warning{{reference 'a' is not yet bound to a value when used here}} in S()
845 …int &a = a; // expected-warning{{reference 'a' is not yet bound to a value when used within its ow… in test()
846 …int &b(b); // expected-warning{{reference 'b' is not yet bound to a value when used within its own… in test()
847 …int &c = a ? b : c; // expected-warning{{reference 'c' is not yet bound to a value when used withi… in test()
848 …int &d{d}; // expected-warning{{reference 'd' is not yet bound to a value when used within its own… in test()
853 : a(b), b(a) {} // expected-warning{{reference 'b' is not yet bound to a value when used here}} in T()
855 int &c = c; // expected-warning{{reference 'c' is not yet bound to a value when used here}}
874 …A a1 = a1 = makeA(); // expected-warning{{variable 'a1' is uninitialized when used within its own…
875 …A a2 = a2 == a1; // expected-warning{{variable 'a2' is uninitialized when used within its own ini…
876 …A a3 = a2 == a3; // expected-warning{{variable 'a3' is uninitialized when used within its own ini…
888 …A a1([=] { return a1.x; }); // expected-warning{{variable 'a1' is uninitialized when used within i… in f()
981 A(char (*)[1]) : b(a) {} // expected-warning{{field 'a' is uninitialized when used here}} in A()
982 A(char (*)[2]) : a(b) {} // expected-warning{{field 'b' is uninitialized when used here}} in A()
986 int a = b; // expected-warning{{field 'b' is uninitialized when used here}}
993 int b = a; // expected-warning{{field 'a' is uninitialized when used here}}
1018 F(char (*)[1]) : a(e.get()) {} // expected-warning{{field 'e' is uninitialized when used here}} in F()
1020 F(char (*)[3]) : e(a) {} // expected-warning{{field 'a' is uninitialized when used here}} in F()
1022 F(char (*)[5]) : e(b) {} // expected-warning{{field 'b' is uninitialized when used here}} in F()
1023 F(char (*)[6]) : e(b), b(4) {} // expected-warning{{field 'b' is uninitialized when used here}} in F()
1056 int b = b + 5; // expected-warning{{field 'b' is uninitialized when used here}}
1065 N() : b(a) { } // expected-warning{{field 'a' is uninitialized when used here}} in N()
1084 a(c = 5), // expected-warning{{reference 'c' is not yet bound to a value when used here}} in Q()
1085 b(c), // expected-warning{{reference 'c' is not yet bound to a value when used here}} in Q()
1103 … : x(b ? (y = 5) : (1 + y)), // expected-warning{{field 'y' is uninitialized when used here}} in T()
1106 … : x(!b ? (1 + y) : (y = 5)), // expected-warning{{field 'y' is uninitialized when used here}} in T()
1119 B() : A(x) {} // expected-warning{{field 'x' is uninitialized when used here}} in B()
1135 // expected-warning@-1 {{field 'x' is uninitialized when used here}}
1137 // expected-warning@-1 {{field 'x' is uninitialized when used here}}
1338 // expected-warning@-1 {{field 'foo' is uninitialized when used here}}
1365 …// expected-warning@-1 {{base class 'base_class_access::A' is uninitialized when used here to acce…
1368 …// expected-warning@-1 {{base_class_access::A' is uninitialized when used here to access 'base_cla…
1380 …// expected-warning@-1 {{base class 'base_class_access::A' is uninitialized when used here to acce…
1383 …// expected-warning@-1 {{base_class_access::A' is uninitialized when used here to access 'base_cla…