[Cocci] new to cocci, help needed

Julia Lawall julia.lawall at lip6.fr
Fri Apr 21 17:12:18 CEST 2017


> >>>> expression *E1;
> >>>
> >>> That brings me one step further, but now I have "*&", e.g.,
> >>>
> >>> - f(a,b,&E,whatever)
> >>> + f(a,b,&E,sizeof(*&E))
> >>
> >> I think you would want sizeof(E)?
> I normally use a second rule to clean that one up
> @@
> expression E;
> @@
> - *&
>     E

This is a good option too.

julia


More information about the Cocci mailing list