[Cocci] Transformation challenges with SmPL around “LIST_FOR_EACH_ENTRY”

Julia Lawall julia.lawall at lip6.fr
Sat Dec 2 10:47:38 CET 2017


> @adjustment@
> expression ex;
> statement S;
> @@
> -LIST_FOR_EACH_ENTRY
> +hlist_for_each_entry
>  (..., ...,
> -ex,
>  ...)
>  S

This is not completely a good idea.  The ... in the argument list will
match a sequence of things, not a single thing.  It could be:

-LIST_FOR_EACH_ENTRY
+hlist_for_each_entry
 (e1,e2,
-ex,
 ...)
 S

julia


More information about the Cocci mailing list