Re: what do people use for automatic formatting of C++ code?
On 03/18/2011 12:50 PM, Sven Eden wrote:
cpp4ever wrote:
If you want a stand alone C++ formatter, then I'd recommend uncrustify.
Yes, uncrustify is very nice. But currently their bug list is not so nice
(28 open bugs, some of them rather serious).
I would wait until they cleared those bugs out, then uncrustify is a very
capable alternative to astyle.
I note that even astyle has bugs open, but perhaps there is some serious
bug in uncrustify that particularly concerns you. Admittedly I've never
tried using astyle, but wrt uncrustify I've not had any problems after
configuring it for my preferences, and I would suggest only a fool would
test a formatter on important code that is not under SCM.
Finally, I believe Kdevelop 4 has an astyle plugin for formatting code,
and based on my experience of that I'm sure astyle is more than capable
of satisfying most peoples requirements.
Regards
cpp4ever
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]