>> @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?

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

Reply via email to