Which source code formatter to choose?

Which source code formatter to choose?

Post by Alex Blekh » Tue, 29 Apr 2008 22:34:13


Hello,

We have pretty large project which totals several millions LOC.
The project is quite old, therefore many different coding styles
may be found across the code. We want to bring the code to a
common coding style. Due to project's size it's not feasible to
accomplish this task by hand. We're looking for an automatic
source formatter tool for C/C++ code.

The formatter tool must be configurable according to our coding
standard rules for C++ language costructs (if's, for's, switch'es,
etc.). There is no requirement to integrate the formatter into
Visual Studio.

I'll appreciate your advices and thoughts on the subject.

Thanks
Alex