It is a very hard problem to beautify code.

I agree to this opinion.


Coccinelle needs to make the code readable and to try to respect the existing 
style.

How does your tool recognise the used coding style?


But if someone wants something more exotic, they should use some tool that is 
designed for that.

I hope that a bit more functionality can be reused from the other 
implementations.


Actually, I think that most of the changes one does with Coccinelle are
quite localized, and so the format really doesn't matter.

I do not agree to your conclusion here.

Example: Where do you want to place curly braces if an instruction block like "if" will be adjusted?


If one is generating complete functions, then perhaps the situation is 
different.

It seems that Ajay Panyala was interested in such an use case.
http://lists.diku.dk/pipermail/cocci/2011-August/002117.html

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

Reply via email to