By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,657 Members | 994 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,657 IT Pros & Developers. It's quick & easy.

Formatting

P: n/a
Hello all,

What is the recommended tool for beautifying C++ source code? There seem to
be a lot of options out there, but I don't know which is the preferred
tool...

Thanks,
Dave
Jul 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Dave wrote:
Hello all,

What is the recommended tool for beautifying C++ source code? There seem to
be a lot of options out there, but I don't know which is the preferred
tool...

Thanks,
Dave


All depends on your style requirements of preferences and
which will accomodate it.

I don't use one because I do the "beautifying" along the way.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 19 '05 #2

P: n/a

"Dave" <be***********@yahoo.com> wrote in message
news:vq************@news.supernews.com...
Hello all,

What is the recommended tool for beautifying C++ source code? There seem to be a lot of options out there, but I don't know which is the preferred
tool...


"Preferred" is of course a subjective issue. For example,
I prefer to make the code 'beautiful' (i.e. clear, readable,
and consistent) as I write it. As for having a computer (program)
come along and shuffle my source code around, well, I just don't
trust these darn machines much at all... :-)

-Mike
Jul 19 '05 #3

P: n/a
Dave wrote:
What is the recommended tool for beautifying C++ source code?
There seem to be a lot of options out there,
but I don't know which is the preferred tool...


I prefer Astyle

http://astyle.sourceforge.net/

because it's free
and because it is easy to modify to suit my tastes.

I don't think that their is any consensus.
You just need to pick the one that you like.

Jul 19 '05 #4

P: n/a

"Dave" <be***********@yahoo.com> wrote in message
news:vq************@news.supernews.com...
Hello all,

What is the recommended tool for beautifying C++ source code? There seem to be a lot of options out there, but I don't know which is the preferred
tool...

Thanks,
Dave


OK, thanks for the input everyone. I definitely agree with everyone on
keeping the code clean as you go. I am meticulous about my own code. The
problem is that I've just joined a new group with a 22000 SLOC codebase that
is over 10 years old and in *horrible* shape!
Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.