summaryrefslogtreecommitdiff
path: root/coccinelle/empty-if.cocci
blob: ebd0bfddce0f735046b00b640e73307f9361dd2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@@
expression e, f;
statement s, t;
@@
(
if (e) {
if (f) s
}
|
if (e) {
if (f) s
else t
}
|
- if (e) {
+ if (e)
s
- }
)