On Sat, 29 Aug 2020, Markus Elfring wrote:

> > No, you can't compbine a type and an expression in a disjunction.
>
> Such an information can be reconsidered once more
> because the following script variant for the semantic patch language
> gets accepted by the Coccinelle software.
>
> @display@
> identifier instance, member;
> type T;
> @@
> *\( sizeof(T) \| sizeof(*(instance->member)) \)

The above is fine.  Both branches of the disjunction are expressions.

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

Reply via email to