[Cocci] Change function invocations argument

Julia Lawall julia.lawall at lip6.fr
Sun Dec 21 15:01:28 CET 2014

On Sun, 21 Dec 2014, Eliseo Martínez wrote:

> That’s right. I wanted to remove external parentheses, which wasn’t done if employing only e2/e3.
> I hadn’t realized using (e2)/(e3) would take care of both cases (with/without parentheses), though.
> BTW, is there an easy way to remove **all** unneeded parentheses, project wide?

Probably not.  You could remove all parentheses, but that might risk 
removing some needed ones.  On the other hand, Coccinelle does know 
something about precedednce, so you could try:


and see what happens.  Probably it will do more than you expect, though.


More information about the Cocci mailing list