[Cocci] "TODO: FunCall" in python match printing

Yoann Padioleau padator at wanadoo.fr
Fri Mar 6 16:54:54 CET 2009


Julia Lawall <julia at diku.dk> writes:

> I guess you are not really only interested in uint8_t, but other types as 
> well.  You can match multiple types concisely as illustrated below:
>
> @r@
> expression b;
> typedef uint8_t;
> typedef uint16_t;
> {volatile uint8_t,volatile uint8_t} a;

{volatile uint8_t,volatile uint16_t} a;

:) the SmPL parser does not issue a warning for duplicate entries ? :)

Note that the user may want intuitively to write

volatile {uint8_t,uint16_t} a;


> position p1;
> @@
>  a at p1 = b;
>
> ---
>
> julia
> _______________________________________________
> Cocci mailing list
> Cocci at diku.dk
> http://lists.diku.dk/mailman/listinfo/cocci
> (Web access from inside DIKUs LAN only)


More information about the Cocci mailing list