On Fri, 26 Jun 2020, Markus Elfring wrote:
> >> <+... when any
> >> (t2 y = <+...
> >> ( sizeof(*(resource))
> >> |
> >> * *(resource)
> >> ) ...+>
> >
> > You are missing a ; here.
>
> I assumed that I may omit the semicolon in such a SmPL code.
> Can the specification of a SmPL nest construct ever be sufficient here?
No. <+... ...+> matches a subtree of an AST. For a variable
initialization, there is no subtree of the AST that includes both the
right side of an = and the ;.
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci