Re: [cocci] Using statement list combinations?

Markus Elfring
2025-07-03T10:28:31Z

>> Would you find an SmPL code variant (like the following) more reasonable?
>>
>> @display@
>> statement header, footer;
>> statement list sl;
>> @@
>> *header { sl } footer
>
> I don't know what you expect it to match.

Such a source code search approach is very generic.
I am curious how often this code pattern could be found finally.

Regards,
Markus