Source code formatter?

Source code formatter?

Post by Ramo » Tue, 15 Mar 2005 16:22:42

I have received C/C++ source code from several programmers, and
each has their own style in indentation, etc.

Is there any tool out there which will format source code and at
least make it homogeneus?


-Ramon F Herrera

Source code formatter?

Post by Chris F.A. » Tue, 15 Mar 2005 18:37:01

These days I use emacs (C-c C-q); I used to use indent.

Chris F.A. Johnson
My code (if any) in this post is copyright 2005, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License


Source code formatter?

Post by Davide Bia » Tue, 15 Mar 2005 18:51:06

You could try 'c-beautifier', but the best solution would be to grab
all the developers and have them to agree on a standard style.
At least some standard practice about indentation, placement and use of
parentesis ({}) and comments.


I'm an apatheist. The question is no longer interesting, and the
answer no longer matters.
-- from alt.sysadmin.recovery