summaryrefslogtreecommitdiffstats
path: root/coccinelle/zz-drop-braces.cocci
blob: 8c3be01c1f78617e3a655b0c1acd5046cc241794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
position p : script:python() { p[0].file != "src/journal/lookup3.c" };
identifier id;
expression e;
@@
if (...)
- {
(
    id@p(...);
|
    e@p;
)
- }

@@
position p : script:python() { p[0].file != "src/journal/lookup3.c" };
identifier id;
expression e;
@@
if (...)
- {
(
    return id@p(...);
|
    return e@p;
)
- }