Home | History | Annotate | Download | only in Analysis

Lines Matching full:condition

8   if (b) // expected-warning {{whenever 'if' condition is false}} \
9 // expected-note {{remove the 'if' if its condition is always true}}
20 if (b) {} // expected-warning {{whenever 'if' condition is true}} \
21 // expected-note {{remove the 'if' if its condition is always false}}
32 while (b) { // expected-warning {{whenever 'while' loop exits because its condition is false}} \
33 // expected-note {{remove the condition if it is always true}}
49 // expected-note {{remove the condition if it is always false}}
68 } while (b); // expected-warning {{whenever 'do' loop exits because its condition is false}} \
69 // expected-note {{remove the condition if it is always true}}
84 } while (b); // expected-warning {{whenever 'do' loop condition is true}} \
85 // expected-note {{remove the condition if it is always false}}
97 n < k; // expected-warning {{whenever 'for' loop exits because its condition is false}} \
98 // expected-note {{remove the condition if it is always true}}
117 // expected-note {{remove the condition if it is always false}}
133 for (int &a : arr) { // no-warning, condition was not explicitly specified
164 maybe() // expected-warning {{whenever '?:' condition is false}} \
165 // expected-note {{remove the '?:' if its condition is always true}}
177 maybe() // expected-warning {{whenever '?:' condition is true}} \
178 // expected-note {{remove the '?:' if its condition is always false}}
189 maybe() // expected-warning {{whenever '&&' condition is false}} \
190 // expected-note {{remove the '&&' if its condition is always true}}
201 maybe() // expected-warning {{whenever '&&' condition is true}} \
202 // expected-note {{remove the '&&' if its condition is always false}}
215 maybe() // expected-warning {{whenever '||' condition is false}} \
216 // expected-note {{remove the '||' if its condition is always true}}
229 maybe() // expected-warning {{whenever '||' condition is true}} \
230 // expected-note {{remove the '||' if its condition is always false}}
318 else if (k == 2) // expected-warning {{whenever 'if' condition is false}} \
319 // expected-note {{remove the 'if' if its condition is always true}}
324 else if (k == -2) // expected-warning {{whenever 'if' condition is false}} \
325 // expected-note {{remove the 'if' if its condition is always true}}
376 if (b) { // expected-warning {{variable 'x' is used uninitialized whenever 'if' condition is true}} expected-note {{remove}}