469,950 Members | 2,386 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

Need C++ Beautifier - must be VERY configurable

Hi,

We need a C++ beautifier, and due to the specific requirements of some
of our developers, it has to be very configurable. After trying some
free ones, we now realise that we might need to pay to get the options
we need.

We've tried AStyle - good, but not nearly configurable enough.
We've tried GreatCode - very good - much more configurable, but still
missing a few options

I've heard recommendations of Semantic Designs product, but I'm not
sure if it's got the features we need.

We've previously used Jindent for Java, and it was absolutely perfect,
because it was so configurable. They appear to be thinking about a C++
product, and other language formatters, but they're not available yet.

Some options we need for our C++ are:

- must have a command line interface option - to run as an external
tool from our IDEs
- brace positioning for everything - try catch, if else, switch,
methods
- insert a user-configurable file header (e.g., insert an external
user-specified text file)
- insert user-configurable method headers
- can IGNORE the formatting of MACROS
- can specify spaces required everywhere - including between Class
names and Object names in method calls etc
- can format entire projects automatically

Any suggestions very much appreciated, especially from developers
already using such a beautifier.

Cheers

Shug

Nov 25 '06 #1
4 2814
On 25 Nov 2006 04:54:25 -0800, "Shug" wrote:
>We need a C++ beautifier, and due to the specific requirements of some
of our developers, it has to be very configurable.

We've tried AStyle - good, but not nearly configurable enough.
We've tried GreatCode - very good - much more configurable, but still
missing a few options
Haven't cross-checked your requirements but the following tool claims
to have '168 configurable options as of version 0.30'. If that's not
enough combine the 3 tools in a pipe. I guess more beauty is hardly
possible.

http://uncrustify.sourceforge.net/

Good luck,
Roland Pibinger
Nov 25 '06 #2

Roland Pibinger wrote:
On 25 Nov 2006 04:54:25 -0800, "Shug" wrote:
We need a C++ beautifier, and due to the specific requirements of some
of our developers, it has to be very configurable.

We've tried AStyle - good, but not nearly configurable enough.
We've tried GreatCode - very good - much more configurable, but still
missing a few options

Haven't cross-checked your requirements but the following tool claims
to have '168 configurable options as of version 0.30'. If that's not
enough combine the 3 tools in a pipe. I guess more beauty is hardly
possible.

http://uncrustify.sourceforge.net/

Good luck,
Roland Pibinger
Thanks for your response Roland.

I had already searched in sourceforge for the usual terms, but that one
didn't come up.

I'll have a look at it later today - thanks again!

Shug

Nov 26 '06 #3

Roland Pibinger wrote:
On 25 Nov 2006 04:54:25 -0800, "Shug" wrote:
We need a C++ beautifier, and due to the specific requirements of some
of our developers, it has to be very configurable.

We've tried AStyle - good, but not nearly configurable enough.
We've tried GreatCode - very good - much more configurable, but still
missing a few options

Haven't cross-checked your requirements but the following tool claims
to have '168 configurable options as of version 0.30'. If that's not
enough combine the 3 tools in a pipe. I guess more beauty is hardly
possible.

http://uncrustify.sourceforge.net/

Good luck,
Roland Pibinger
Thanks again for that link Roland.

Having used uncrustify for a few days now, I have to say it's the best
beautifier that we've looked at recently - better than AStyle and
GreatCode, and also better than a couple of commercial products.

Additionally, the developer has been very accomodating with suggestions
for new Features, suggesting that this app will continue getting better
and more configurable. I suppose the more people use it and
contribute, the better it will be all round.

So, Roland, thanks for suggesting Uncrustify.

And credit to the uncrustify developer, Ben, for a great app.

Shug

Nov 29 '06 #4

Roland Pibinger wrote:
On 25 Nov 2006 04:54:25 -0800, "Shug" wrote:
We need a C++ beautifier, and due to the specific requirements of some
of our developers, it has to be very configurable.

We've tried AStyle - good, but not nearly configurable enough.
We've tried GreatCode - very good - much more configurable, but still
missing a few options

Haven't cross-checked your requirements but the following tool claims
to have '168 configurable options as of version 0.30'. If that's not
enough combine the 3 tools in a pipe. I guess more beauty is hardly
possible.

http://uncrustify.sourceforge.net/

Good luck,
Roland Pibinger
Thanks again for that link Roland.

Having used uncrustify for a few days now, I have to say it's the best
beautifier that we've looked at recently - better than AStyle and
GreatCode, and also better than a couple of commercial products.

Additionally, the developer has been very accomodating with suggestions
for new Features, suggesting that this app will continue getting better
and more configurable. I suppose the more people use it and
contribute, the better it will be all round.

So, Roland, thanks for suggesting Uncrustify.

And credit to the uncrustify developer, Ben, for a great app.

Shug

Nov 29 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Robert Freund | last post: by
13 posts views Thread by OvErboRed | last post: by
19 posts views Thread by Diego Andres Alvarez Marin | last post: by
6 posts views Thread by Zhou Lei | last post: by
2 posts views Thread by Matt England | last post: by
18 posts views Thread by Franz Steinhaeusler | last post: by
2 posts views Thread by sevak316 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.