]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/empty-if.cocci
test-execute: Add tests for new PassEnvironment= directive
[thirdparty/systemd.git] / coccinelle / empty-if.cocci
1 @@
2 expression e, f, g, h, i, j;
3 statement s, t;
4 @@
5 (
6 if (e) {
7 (
8 if (h) s
9 |
10 if (h) s else t
11 |
12 while (h) s
13 |
14 for (h; i; j) s
15 )
16 }
17 |
18 while (e) {
19 (
20 if (h) s
21 |
22 if (h) s else t
23 |
24 while (h) s
25 |
26 for (h; i; j) s
27 )
28 }
29 |
30 for (e; f; g) {
31 (
32 if (h) s
33 |
34 if (h) s else t
35 |
36 while (h) s
37 |
38 for (h; i; j) s
39 )
40 }
41 |
42 - if (e) {
43 + if (e)
44 s
45 - }
46 |
47 - while (e) {
48 + while (e)
49 s
50 - }
51 |
52 - for (e; f; g) {
53 + for (e; f; g)
54 s
55 - }
56 )