Re: [cocci] Using statement list combinations?

Julia Lawall
2025-07-03T11:54:31Z

On Thu, 3 Jul 2025, Markus Elfring wrote:

> >> 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.

Probably never. People don't often make a {} between two other
statements.

julia