Lines Matching full:else
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wdangling-else %s
6 …{ if (a) if (b) d++; else e++; } // expected-warning {{add explicit braces to avoid dangling else}} in f()
7 …{ if (a) while (b) if (c) d++; else e++; } // expected-warning {{add explicit braces to avoid dang… in f()
8 …{ if (a) switch (b) if (c) d++; else e++; } // expected-warning {{add explicit braces to avoid dan… in f()
9 …{ if (a) for (;;) if (c) d++; else e++; } // expected-warning {{add explicit braces to avoid dangl… in f()
10 …{ if (a) if (b) if (d) d++; else e++; else d--; } // expected-warning {{add explicit braces to avo… in f()
15 } else e++; // expected-warning {{add explicit braces to avoid dangling else}} in f()
20 { if (a) if (b) d++; else e++; else d--; } in f()
21 { if (a) if (b) if (d) d++; else e++; else d--; else e--; } in f()
22 { if (a) do if (b) d++; else e++; while (c); } in f()
26 else e++; in f()
31 } else e++; in f()
47 else \