Hello,

I have tried another tiny script variant out for the semantic patch language
(according to the software combination “Coccinelle 1.0.8-00159-g730dbb03”).

@display@
identifier array, instance;
type T;
@@
*sizeof( \( T \| *(instance->array) \) )


elfring@Sonne:~/Projekte/Coccinelle/Probe> spatch --parse-cocci 
sizeof-test-20200828.cocci
…
minus: parse error:
  File "sizeof-test-20200828.cocci", line 5, column 17, charpos = 66
  around = '*',
  whole content = *sizeof( \( T \| *(instance->array) \) )


May I expect that such a SmPL disjunction should also work?

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to