I have this task to restructure and clean huge amounts of code, including removal of junk code, changing functions/variables names to adhere to naming conventions and similar changes.
Can you please let me know of any tools which can help me automate it as much as possible.

I came across coccinelle. Just wondering what are the other better options ?