Lines Matching full:empty
11 …if (x); // expected-warning {{if statement has empty body}} expected-note{{put the semicolon on a … in test1()
15 …if (x == MACRO_A); // expected-warning {{if statement has empty body}} expected-note{{put the semi… in test1()
16 …if (MACRO_A == x); // expected-warning {{if statement has empty body}} expected-note{{put the semi… in test1()
20 …for (i = 0; i < x; i++); { // expected-warning{{for loop has empty body}} expected-note{{put the s… in test1()
25 …for (i = 0; i < x; i++); // expected-warning{{for loop has empty body}} expected-note{{put the sem… in test1()
32 …i++); // expected-warning{{for loop has empty body}} expected-note{{put the semicolon on a separat… in test1()
38 …for (int j : arr); // expected-warning{{range-based for loop has empty body}} expected-note{{put t… in test1()
42 …arr); // expected-warning{{range-based for loop has empty body}} expected-note{{put the semicolon … in test1()
45 …while (b() == 0); // expected-warning{{while loop has empty body}} expected-note{{put the semicolo… in test1()
48 …while (b() == 0); { // expected-warning{{while loop has empty body}} expected-note{{put the semico… in test1()
52 …while (b() == 0); // expected-warning{{while loop has empty body}} expected-note{{put the semicolo… in test1()
58 …c() == 0); // expected-warning{{while loop has empty body}} expected-note{{put the semicolon on a … in test1()
70 …while (b()); // expected-warning{{while loop has empty body}} expected-note{{put the semicolon on … in test1()
75 …switch(y); // expected-warning{{switch statement has empty body}} expected-note{{put the semicolon… in test1()
123 /// There should be no warning for a null statement resulting from an empty macro.
124 #define EMPTY(a) macro
126 if (x) EMPTY(x); // no-warning in test3()
129 for (i = 0; i < x; i++) EMPTY(i); // no-warning in test3()
133 i++) EMPTY(i); // no-warning in test3()
136 for (int j : arr) EMPTY(j); // no-warning in test3()
139 arr) EMPTY(j); // no-warning in test3()
141 while (b() == 0) EMPTY(i); // no-warning in test3()
144 c() == 0) EMPTY(i); // no-warning in test3()
148 EMPTY(i); // no-warning in test3()
165 …for (i = 0; i < x; i++); // expected-warning{{for loop has empty body}} expected-note{{put the sem… in test5()
173 …i++); // expected-warning{{for loop has empty body}} expected-note{{put the semicolon on a separat… in test5()
181 …while (b() == 0); // expected-warning{{while loop has empty body}} expected-note{{put the semicolo… in test5()
188 …c() == 0); // expected-warning{{while loop has empty body}} expected-note{{put the semicolon on a … in test5()
244 // no empty body warning. in test_errors()
262 …if (x); // expected-warning{{if statement has empty body}} expected-note{{put the semicolon on a s… in test_template()
265 EMPTY(x); // no-warning in test_template()
268 …for (int j : arr); // expected-warning{{range-based for loop has empty body}} expected-note{{put t… in test_template()
270 …while (b() == 0); // expected-warning{{while loop has empty body}} expected-note{{put the semicolo… in test_template()