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

Julia Lawall julia at diku.dk
Fri Mar 6 16:57:50 CET 2009


On Fri, 6 Mar 2009, Yoann Padioleau wrote:

> 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 ? :)

Oops, apparently not.

> Note that the user may want intuitively to write
> 
> volatile {uint8_t,uint16_t} a;

Perhaps, but it doesn't work.

julia


More information about the Cocci mailing list