bind9/cocci/return-void-from-void.spatch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
140 B
Text
Raw Normal View History

@rule1@
identifier f1;
@@
void f1(...)
{
...
}
@rule2@
identifier rule1.f1, f2;
@@
void f2(...)
{
<+...
*return(f1(...));
...+>
}