summaryrefslogtreecommitdiffstats
path: root/cocci/return-void-from-void.spatch
blob: fcc639f6ea025373ab120299020833b3c94e5a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@ rule1 @
identifier f1;
@@

void f1(...)
{
...
}

@ rule2 @
identifier rule1.f1;
identifier f2;
@@

void f2(...) {
...
* return(f1(...));
...
}