Brecht Machiels wrote:
I know that for HTML there are tools (tidy for example) to clean up code. I'm sure there must be something similar for C++ code. It does have to be configurable to the Haiku guidelines though.
The following page lists a few tools: http://www.softpanorama.org/Utilities/beautifiers.shtml#C++ Artistic Style[1] and GNU Indent[2] are probably the best candidates. I'll have a go at configuring a Haiku style for one of these tonight... Brecht [1] http://astyle.sourceforge.net/ [2] http://www.gnu.org/software/indent/