summaryrefslogtreecommitdiffstats
path: root/coccinelle/zz-drop-braces.cocci
blob: 34bf12fbea77cbee266f3008e63f328f7d37381a (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
@@
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;
)
- }