473,657 Members | 2,435 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3029
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
3563
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 Beautify PHP (www.bierkandt.org/beautify) which does not offer all the features I'd like to have. I'm also more interested in something that is not written in php itself because I want to reformat large amounts of code quite often, and I guess...
13
3294
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 C++ (indent has some quirks when applied to C++). I have spent a while Googling for something along these lines, but haven't come up with anything, only various very basic formatting programs like Artistic Style. It would be best if someone...
19
3460
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
2313
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, SourceStyler, ...) but those are based on a GUI and thus require a developer to do this extra-step before checking the code in. We planned to include the beautifier as a post build step (from MS VC++). To do this we would need a command line interface...
6
2036
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
2645
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 experience, particularly if you have evaluated many tools or received feedback from others who have. Requirements I seek: run on Linux systems, command line operation, save styling-configuration in a file that can be shared by many users, flexible...
18
7167
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 spare time). Ich have some foreign source, which are programed in a way I don't like, so I would like to have a tool, which automatically processes following options:
3
2250
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
2015
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 you have used a beautifier that you are happy with, please let me know. Thanks.
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7330
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6166
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.