Lines Matching full:for
14 for (; !s.stop();) {}
15 for (; s.keep_running;) {}
16 for (int i; i < 1; ++i) {}
17 for (int i; i < 1; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
18 for (int i; i < 1; ) { ++i; }
19 for (int i; i < 1; ) { return; }
20 for (int i; i < 1; ) { break; }
21 for (int i; i < 1; ) { goto exit_loop; }
23 for (int i; i < 1; ) { by_ref(i); }
24 for (int i; i < 1; ) { by_value(i); } // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
25 for (int i; i < 1; ) { by_pointer(&i); }
27 for (int i; i < 1; ++i)
28 for (int j; j < 1; ++j)
30 for (int i; i < 1; ++i)
31 for (int j; j < 1; ++i) // expected-warning {{variable 'j' used in loop condition not modified in loop body}}
33 for (int i; i < 1; ++i)
34 for (int j; i < 1; ++j) // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
37 for (int *i, *j; i < j; ++i) {}
38 for (int *i, *j; i < j;) {} // expected-warning {{variables 'i' and 'j' used in loop condition not modified in loop body}}
40 // Dereferencing pointers is ignored for now.
41 for (int *i; *i; ) {}
49 for (; i; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
50 for (; i; ) { i = 5; }
53 for (; i < j; ) {} // expected-warning {{variables 'i' and 'j' used in loop condition not modified in loop body}}
54 for (; i < j; ) { i = 5; }
55 for (; i < j; ) { j = 5; }
58 for (; i < 5; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
59 for (; i < 5; ) { i = 5; }
62 for (; i < 5.0; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
63 for (; i < 5.0; ) { i = 5; }
66 for (; i == 'a'; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
67 for (; i == 'a'; ) { i = 5; }
70 for (; i == true; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
71 for (; i == true; ) { i = 5; }
74 for (; ptr == __null; ) {} // expected-warning {{variable 'ptr' used in loop condition not modified in loop body}}
75 for (; ptr == __null; ) { ptr = &i; }
78 for (; -i > 5; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
79 for (; -i > 5; ) { ++i; }
82 for (; i != 3i; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
83 for (; i != 3i; ) { ++i; }
86 for (; i ? j : k; ) {} // expected-warning {{variables 'i', 'j', and 'k' used in loop condition not modified in loop body}}
87 for (; i ? j : k; ) { ++i; }
88 for (; i ? j : k; ) { ++j; }
89 for (; i ? j : k; ) { ++k; }
90 for (; i; ) { j = i ? i : i; } // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
91 for (; i; ) { j = (i = 1) ? i : i; }
92 for (; i; ) { j = i ? i : ++i; }
95 for (; i ?: j; ) {} // expected-warning {{variables 'i' and 'j' used in loop condition not modified in loop body}}
96 for (; i ?: j; ) { ++i; }
97 for (; i ?: j; ) { ++j; }
98 for (; i; ) { j = i ?: i; } // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
101 for (; (i); ) { } // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
102 for (; (i); ) { ++i; }
105 for (; i < sizeof(j); ) { } // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
106 for (; i < sizeof(j); ) { ++j; } // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
107 for (; i < sizeof(j); ) { ++i; }
114 for (;x<5;) { *ptr = 6; } // expected-warning {{variable 'x' used in loop condition not modified in loop body}}
116 for (;x<5;) {
125 for (; a;); // expected-warning {{variable 'a' used in loop condition not modified in loop body}}
126 for (; a + b;); // expected-warning {{variables 'a' and 'b' used in loop condition not modified in loop body}}
127 for (; a + b + c;); // expected-warning {{variables 'a', 'b', and 'c' used in loop condition not modified in loop body}}
128 for (; a + b + c + d;); // expected-warning {{variables 'a', 'b', 'c', and 'd' used in loop condition not modified in loop body}}
129 for (; a + b + c + d + e;); // expected-warning {{variables used in loop condition not modified in loop body}}
130 for (; a + b + c + d + e + f;); // expected-warning {{variables used in loop condition not modified in loop body}}
131 for (; a + c + d + b;); // expected-warning {{variables 'a', 'c', 'd', and 'b' used in loop condition not modified in loop body}}
132 for (; d + c + b + a;); // expected-warning {{variables 'd', 'c', 'b', and 'a' used in loop condition not modified in loop body}}
138 for (int a; a+a+a+a+a+a+a+a+a+a;); // \
140 for (int a; a+a+a+a+a+a+a+a+a+a+a;); // \
142 for (int a; a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a;); // \
144 for (int a; a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a;);//\
152 for (;x6;);
153 for (;y;);
158 for (;;i++) { // expected-note{{incremented here}}
162 for (;;i++) { // expected-note{{incremented here}}
166 for (;;++i) { // expected-note{{incremented here}}
170 for (;;++i) { // expected-note{{incremented here}}
174 for (;;i--) { // expected-note{{decremented here}}
178 for (;;i--) { // expected-note{{decremented here}}
182 for (;;--i) { // expected-note{{decremented here}}
186 for (;;--i) { // expected-note{{decremented here}}
191 for (;;++i)
193 for (;;--i)
197 for (;;i++) {
201 for (;;i--) {
215 for (;;i++) { // expected-note{{incremented here}}
219 for (;;i++) { // expected-note{{incremented here}}
223 for (;;++i) { // expected-note{{incremented here}}
227 for (;;++i) { // expected-note{{incremented here}}
231 for (;;i--) { // expected-note{{decremented here}}
235 for (;;i--) { // expected-note{{decremented here}}
239 for (;;--i) { // expected-note{{decremented here}}
243 for (;;--i) { // expected-note{{decremented here}}
248 for (;;++i)
250 for (;;--i)
254 for (;;i++) {
258 for (;;i--) {