Lines Matching full:initialization
10 int a = a; // no-warning: used to signal intended lack of initialization.
11 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initialization}}
12 int c = (c + c); // expected-warning 2 {{variable 'c' is uninitialized when used within its own initialization}}
13 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}}
14 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}}
24 int l = k ? l : l; // expected-warning 2{{variable 'l' is uninitialized when used within its own initialization}}
25 int m = 1 + (k ? m : m); // expected-warning 2{{variable 'm' is uninitialized when used within its own initialization}}
26 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initialization}}
29 int a = a; // no-warning: used to signal intended lack of initialization.
30 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initialization}}
31 int c = (c + c); // expected-warning {{variable 'c' is uninitialized when used within its own initialization}}
32 int d = ({ d + d ;}); // expected-warning {{variable 'd' is uninitialized when used within its own initialization}}
33 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}}
34 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}}
44 int l = k ? l : l; // expected-warning {{variable 'l' is uninitialized when used within its own initialization}}
45 int m = 1 + (k ? m : m); // expected-warning {{'m' is uninitialized when used within its own initialization}}
46 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initialization}}
49 int a = a; // no-warning: used to signal intended lack of initialization.
50 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initialization}}
51 int c = (c + c); // expected-warning {{variable 'c' is uninitialized when used within its own initialization}}
52 int d = ({ d + d ;}); // expected-warning {{variable 'd' is uninitialized when used within its own initialization}}
53 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}}
54 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}}
64 int l = k ? l : l; // expected-warning {{variable 'l' is uninitialized when used within its own initialization}}
65 int m = 1 + (k ? m : m); // expected-warning {{'m' is uninitialized when used within its own initialization}}
66 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initialization}}
108 A a11(a11); // expected-warning {{variable 'a11' is uninitialized when used within its own initialization}}
109 A a12(a12.get()); // expected-warning {{variable 'a12' is uninitialized when used within its own initialization}}
110 A a13(a13.num); // expected-warning {{variable 'a13' is uninitialized when used within its own initialization}}
111 A a14 = A(a14); // expected-warning {{variable 'a14' is uninitialized when used within its own initialization}}
112 A a15 = getA(a15.num); // expected-warning {{variable 'a15' is uninitialized when used within its own initialization}}
113 A a16(&a16.num); // expected-warning {{variable 'a16' is uninitialized when used within its own initialization}}
114 A a17(a17.get2()); // expected-warning {{variable 'a17' is uninitialized when used within its own initialization}}
115 A a18 = x ? a18 : a17; // expected-warning {{variable 'a18' is uninitialized when used within its own initialization}}
116 A a19 = getA(x ? a19 : a17); // expected-warning {{variable 'a19' is uninitialized when used within its own initialization}}
117 A a20{a20}; // expected-warning {{variable 'a20' is uninitialized when used within its own initialization}}
118 A a21 = {a21}; // expected-warning {{variable 'a21' is uninitialized when used within its own initialization}}
122 A *a22 = new A(a22->count); // expected-warning {{variable 'a22' is uninitialized when used within its own initialization}}
123 A *a23 = new A(a23->ONE); // expected-warning {{variable 'a23' is uninitialized when used within its own initialization}}
124 A *a24 = new A(a24->TWO); // expected-warning {{variable 'a24' is uninitialized when used within its own initialization}}
125 A *a25 = new A(a25->zero()); // expected-warning {{variable 'a25' is uninitialized when used within its own initialization}}
127 A *a26 = new A(a26->get()); // expected-warning {{variable 'a26' is uninitialized when used within its own initialization}}
128 A *a27 = new A(a27->get2()); // expected-warning {{variable 'a27' is uninitialized when used within its own initialization}}
129 A *a28 = new A(a28->num); // expected-warning {{variable 'a28' is uninitialized when used within its own initialization}}
145 A a11(a11); // expected-warning {{variable 'a11' is uninitialized when used within its own initialization}}
146 A a12(a12.get()); // expected-warning {{variable 'a12' is uninitialized when used within its own initialization}}
147 A a13(a13.num); // expected-warning {{variable 'a13' is uninitialized when used within its own initialization}}
148 A a14 = A(a14); // expected-warning {{variable 'a14' is uninitialized when used within its own initialization}}
149 A a15 = getA(a15.num); // expected-warning {{variable 'a15' is uninitialized when used within its own initialization}}
150 A a16(&a16.num); // expected-warning {{variable 'a16' is uninitialized when used within its own initialization}}
151 A a17(a17.get2()); // expected-warning {{variable 'a17' is uninitialized when used within its own initialization}}
152 A a18 = x ? a18 : a17; // expected-warning {{variable 'a18' is uninitialized when used within its own initialization}}
153 A a19 = getA(x ? a19 : a17); // expected-warning {{variable 'a19' is uninitialized when used within its own initialization}}
154 A a20{a20}; // expected-warning {{variable 'a20' is uninitialized when used within its own initialization}}
155 A a21 = {a21}; // expected-warning {{variable 'a21' is uninitialized when used within its own initialization}}
162 A *a26 = new A(a26->get()); // expected-warning {{variable 'a26' is uninitialized when used within its own initialization}}
163 A *a27 = new A(a27->get2()); // expected-warning {{variable 'a27' is uninitialized when used within its own initialization}}
164 A *a28 = new A(a28->num); // expected-warning {{variable 'a28' is uninitialized when used within its own initialization}}
194 B b7(b7); // expected-warning {{variable 'b7' is uninitialized when used within its own initialization}}
195 B b8 = getB(b8.x); // expected-warning {{variable 'b8' is uninitialized when used within its own initialization}}
196 B b9 = getB(b9.y); // expected-warning {{variable 'b9' is uninitialized when used within its own initialization}}
197 B b10 = getB(-b10.x); // expected-warning {{variable 'b10' is uninitialized when used within its own initialization}}
207 B* b15 = getPtrB(b15->x); // expected-warning {{variable 'b15' is uninitialized when used within its own initialization}}
208 B* b16 = getPtrB(b16->y); // expected-warning {{variable 'b16' is uninitialized when used within its own initialization}}
211 B b18 = { b18.x + 1, b18.y }; // expected-warning 2{{variable 'b18' is uninitialized when used within its own initialization}}
221 B b7(b7); // expected-warning {{variable 'b7' is uninitialized when used within its own initialization}}
222 B b8 = getB(b8.x); // expected-warning {{variable 'b8' is uninitialized when used within its own initialization}}
223 B b9 = getB(b9.y); // expected-warning {{variable 'b9' is uninitialized when used within its own initialization}}
224 B b10 = getB(-b10.x); // expected-warning {{variable 'b10' is uninitialized when used within its own initialization}}
231 B* b15 = getPtrB(b15->x); // expected-warning {{variable 'b15' is uninitialized when used within its own initialization}}
232 B* b16 = getPtrB(b16->y); // expected-warning {{variable 'b16' is uninitialized when used within its own initialization}}
235 B b18 = { b18.x + 1, b18.y }; // expected-warning 2{{variable 'b18' is uninitialized when used within its own initialization}}
391 static int a = a; // no-warning: used to signal intended lack of initialization.
392 static int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initialization}}
393 initialization}}
394 static int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}}
395 static int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}}
406 static int l = k ? l : l; // expected-warning 2{{variable 'l' is uninitialized when used within its own initialization}}
407 static int m = 1 + (k ? m : m); // expected-warning 2{{variable 'm' is uninitialized when used within its own initialization}}
408 static int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initialization}}
411 static int a = a; // no-warning: used to signal intended lack of initialization.
412 static int b = b + 1; // expected-warning {{static variable 'b' is suspiciously used within its own initialization}}
413 static int c = (c + c); // expected-warning 2{{static variable 'c' is suspiciously used within its own initialization}}
414 static int d = ({ d + d ;}); // expected-warning 2{{static variable 'd' is suspiciously used within its own initialization}}
415 static int e = static_cast<long>(e) + 1; // expected-warning {{static variable 'e' is suspiciously used within its own initialization}}
416 static int f = foo(f); // expected-warning {{static variable 'f' is suspiciously used within its own initialization}}
426 static int l = k ? l : l; // expected-warning 2{{static variable 'l' is suspiciously used within its own initialization}}
427 static int m = 1 + (k ? m : m); // expected-warning 2{{static variable 'm' is suspiciously used within its own initialization}}
428 static int n = -n; // expected-warning {{static variable 'n' is suspiciously used within its own initialization}}
430 static int a = a; // no-warning: used to signal intended lack of initialization.
431 static int b = b + 1; // expected-warning {{static variable 'b' is suspiciously used within its own initialization}}
432 static int c = (c + c); // expected-warning 2{{static variable 'c' is suspiciously used within its own initialization}}
433 static int d = ({ d + d ;}); // expected-warning 2{{static variable 'd' is suspiciously used within its own initialization}}
434 static int e = static_cast<long>(e) + 1; // expected-warning {{static variable 'e' is suspiciously used within its own initialization}}
435 static int f = foo(f); // expected-warning {{static variable 'f' is suspiciously used within its own initialization}}
445 static int l = k ? l : l; // expected-warning 2{{static variable 'l' is suspiciously used within its own initialization}}
446 static int m = 1 + (k ? m : m); // expected-warning 2{{static variable 'm' is suspiciously used within its own initialization}}
447 static int n = -n; // expected-warning {{static variable 'n' is suspiciously used within its own initialization}}
455 int a = 42; // Note: because a is in a member initializer list, this initialization is ignored.
472 int &a = a; // expected-warning{{reference 'a' is not yet bound to a value when used within its own initialization}}
473 int &b(b); // expected-warning{{reference 'b' is not yet bound to a value when used within its own initialization}}
474 int &c = a ? b : c; // expected-warning{{reference 'c' is not yet bound to a value when used within its own initialization}}
475 int &d{d}; // expected-warning{{reference 'd' is not yet bound to a value when used within its own initialization}}
483 int &a = a; // expected-warning{{reference 'a' is not yet bound to a value when used within its own initialization}}
484 int &b(b); // expected-warning{{reference 'b' is not yet bound to a value when used within its own initialization}}
485 int &c = a ? b : c; // expected-warning{{reference 'c' is not yet bound to a value when used within its own initialization}}
486 int &d{d}; // expected-warning{{reference 'd' is not yet bound to a value when used within its own initialization}}
490 T() // expected-note{{during field initialization in this constructor}}
512 A a1 = a1 = makeA(); // expected-warning{{variable 'a1' is uninitialized when used within its own initialization}}
513 A a2 = a2 == a1; // expected-warning{{variable 'a2' is uninitialized when used within its own initialization}}
514 A a3 = a2 == a3; // expected-warning{{variable 'a3' is uninitialized when used within its own initialization}}
526 A a1([=] { return a1.x; }); // expected-warning{{variable 'a1' is uninitialized when used within its own initialization}}
605 B() {} // expected-note{{during field initialization in this constructor}}
612 C(char (*)[2]) {} // expected-note{{during field initialization in this constructor}}
674 L() : a(5) {} // expected-note{{during field initialization in this constructor}}