[Question]: Any tools to automatically format existing code base to a particular format?
-
I only know of "astyle":http://astyle.sourceforge.net/. You can tweak almost everything there. I'm unsure to which degree it should be "automatic", but I'm sure it can at least be hooked into some save routine in popular IDEs.
-
It would not surprise me if someone already wrote a Creator plugin for astyle. Oh.... someone has: http://astyleplugin.berlios.de/. I don't know of any built in solution for Creator.
-
This looks a bit like "some other thread":http://developer.qt.nokia.com/forums/viewthread/3364
I did recommend astyle, the astyle plugin and a UI for astyle and others there.
-
Chetankjain: I guess the formatter from eclipse will also work. I never used that though, I generally found eclipse just too bloated for my taste and never got into it:-(
-
Chetan, in case you didn't know already, they have documented it on the "QtCoding Style":http://qt.gitorious.org/qt/pages/QtCodingStyle page on gitorious. Unfortunately they don't state what's the base style (if there is any).
Another good page is that on "Coding Conventions":http://qt.gitorious.org/qt/pages/CodingConventions