On Fri, 4 Dec 2015, SF Markus Elfring wrote:

> >> @r1@
> >> identifier fops;
> >> identifier fn;
> >> position p;
> >> @@
> >> struct tty_operations fops@p = {
> >>     ...,
> >>     .cleanup = fn,
> >>     ...
> >> };
> >
> > You don't need the ...
>
> I find it interesting that you suggest to omit the use of SmPL ellipsis here.
>
>
> > Coccinelle is very relaxed about matching structure initializers.
>
> Would you like to explain the handling of designated initialisers
> with the semantic patch language a bit more?

I think I already did...  What you provide is required to b a subset is
what is present in the code to be matched.

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

Reply via email to