On Tue, Aug 10, 2010 at 3:55 PM, Julia Lawall <[email protected]> wrote:
> But if what you want is (a) && (b) && (c), then that is another problem,
> because in that case, the aprentheses don't accumulate.


Yes, all I want is to put parenthesis on outer level. If there are
nested parenthesis, whatever coccinelle decides to do is ok, but the
outer ones should be there. In other words, between the parenthesis
I'm putting, there will be no && operator.

The only way I found that works is to expand my "good" rule, taking
into consideration 3 &&, 4 &&, 5 && and so on. But I hope there's a
better solution because after that I want to do the same for ||
operator and mixing both.


Lucas De Marchi
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to