> But this fails:
>
>  @@
>  type T;
>  identifier var;
>  attribute name autofree;
>  @@
>
>     T var autofree;
>     ...
>  ++ free(var);
>     return ...;
>
> with
>
>  minus: parse error:
>    File "autofree.cocci", line 7, column 17, charpos = 73
>    around = ';',
>    whole content =    T var autofree;
>
> What am I doing wrong here?
> I tried both with v1.0.8 and latest git.

Thanks for the report.  I will look into it.

julia
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to