473,325 Members | 2,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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 3011
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert Freund | last post by:
I've been looking for a good and free code beautifier that runs on linux. About the only ones I found where Trita (www.trita.com), which costs money and only runs on windows. The other one was...
13
by: OvErboRed | last post by:
Hi, I'm wondering if anybody can point me to a good, free C++ formatter/beautifier. I'm looking for something that offers the level of control that the Unix/Linux 'indent' program provides, but for...
19
by: Diego Andres Alvarez Marin | last post by:
Hi all! Is there a linux tool that uses as input my ugly C/C++ code and outputs a pretty and nice formated source code? Regards, Diego
1
by: Sparhawk | last post by:
Hi, I want to integrate a code beautifier for C++ in the development process of my company. There are many beautifiers around which would meet our formatting requirements (SourceFormatX,...
6
by: Zhou Lei | last post by:
GNU Indent is a powerful beautifier for C, and I'm using astyle to do that for C++. But it's not perfect, anyone knows a free tool in Linux? Thanks.
2
by: Matt England | last post by:
I am looking for a C++ code beautifier/styler. Requirements and a list of potential choices follow. I'm looking for people's specific recommendations and reasons thereof per their specific...
18
by: Franz Steinhaeusler | last post by:
Hello, I did not find any reasonable pyhton source code beautifier program (preferable gui). Some would ask why? Program it immediatly good. (BTW: Would be a nice project, if I would have more...
3
by: Robert Dailey | last post by:
Hi, I've gone through tons of XML editors: - XML Spy - Oxygen - UltraEdit - PSPad - Many others I can't think of...
2
by: sevak316 | last post by:
Searched the forum and didn't find any topics on this. Does anyone know where I can find a user friendly C beautifier. We are using Indent right now, but it doesnt have a friendly interface. If...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.