Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:condition

17   for (int i; i < 1; ) {}  // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
24 for (int i; i < 1; ) { by_value(i); } // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
31 for (int j; j < 1; ++i) // expected-warning {{variable 'j' used in loop condition not modified in loop body}}
34 for (int j; i < 1; ++j) // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
38 for (int *i, *j; i < j;) {} // expected-warning {{variables 'i' and 'j' used in loop condition not modified in loop body}}
49 for (; i; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
53 for (; i < j; ) {} // expected-warning {{variables 'i' and 'j' used in loop condition not modified in loop body}}
58 for (; i < 5; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
62 for (; i < 5.0; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
66 for (; i == 'a'; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
70 for (; i == true; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
74 for (; ptr == __null; ) {} // expected-warning {{variable 'ptr' used in loop condition not modified in loop body}}
78 for (; -i > 5; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
82 for (; i != 3i; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
86 for (; i ? j : k; ) {} // expected-warning {{variables 'i', 'j', and 'k' used in loop condition not modified in loop body}}
90 for (; i; ) { j = i ? i : i; } // expected-warning {{variable 'i' used in loop condition not modified in loop body}}
95 for (; i ?: j; ) {} // expected-warning {{variables 'i' and 'j' used in loop condition not modified in loop body}}
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}}
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}}
114 for (;x<5;) { *ptr = 6; } // expected-warning {{variable 'x' used in loop condition not modified in loop body}}
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}}
139 // expected-warning {{variable 'a' used in loop condition not modified in loop body}}
141 // expected-warning {{variable 'a' used in loop condition not modified in loop body}}
143 // expected-warning {{variable 'a' used in loop condition not modified in loop body}}
145 // expected-warning {{variable 'a' used in loop condition not modified in loop body}}