[Cocci] BUG: possible parsing issue

Jesse Brandeburg jesse.brandeburg at intel.com
Mon Dec 4 19:05:46 CET 2017


On Sat, 2 Dec 2017 09:14:23 +0100
Julia Lawall <julia.lawall at lip6.fr> wrote:

> > - LIST_FOR_EACH_ENTRY(c,f,g,member) S
> > + hlist_for_each_entry(c,f,member) S  
> 
> Actually, the problem is that you have removed S and dded it back.
> Then you are relying on Coccinelle to do the pretty printing, and all
> comments will be dropped.  Just rewrite your rule as follows, and
> everything will be fine:
> 
>  - LIST_FOR_EACH_ENTRY(c,f,g,member)
>  + hlist_for_each_entry(c,f,member)
>    S

Wow, thanks for that, it now works. The discussion following this post
was also very educational.  Thanks!


More information about the Cocci mailing list