Hi Friends,
I recently went through a tool which can be very very useful while doing similar modification across multiple files.. Examples:
Replace: bool foo = 0; b = 1; b == 1; b == 0, etc with: bool foo = false; b = true; b == true; b == false, etc
Much more complex things are possible as well..
It wouldn't require any manual intervention even if you have to do that for all the files present in your repository.
Many of us in Linaro have to regularly work on fixing things around all available drivers for a particular framework. It would be very useful there..
Useful Links: http://coccinelle.lip6.fr/ http://coccinelle.lip6.fr/papers.php
https://www.youtube.com/watch?v=ohyn1DTuh18
I am still trying to learn it more and more, let me know if somebody is already good in it, will ask some queries :)
(Thanks tglx to enlighten me :))
-- viresh