On Tue, 25 Dec 2018, SF Markus Elfring wrote:

> > f(...) {
> >    ... when any
> >    t x;
> >    ... when != x
> > }
>
> I wonder about the need to wrap a bit of SmPL code by a function skeleton.
> Should the Coccinelle software handle the shown source code search
> also without such an addition?

Apprently not, as shown by your experiment.  Declarations can appear at
top level and in functions, and Coccinelle doesn't know which you want.

julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to