473,327 Members | 2,055 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,327 software developers and data experts.

C++ formatter/beautifier?

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 could point me to an open-source program, but I'm willing
to work with something that's free (as in beer). Thanks in advance.
Jul 22 '05 #1
13 3247
OvErboRed wrote:
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 could point me to an open-source program, but I'm willing
to work with something that's free (as in beer). Thanks in advance.


http://astyle.sourceforge.net

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces
Jul 22 '05 #2
Try 'CodeWorker' at http://www.codeworker.org.

This is a parsing tool and a universal source code generator that
interprets a scripting language. The language provides the function
'indentFile()'.

If you just have a file to indent, write a single-line script, called
"indent.cws" for instance:
indentFile("my-C++-file.cpp");

and type:
codeworker indent.cws

If you have more files to indent, change "indent.cws" to:
forfile i in "*.cpp" indentFile(i);
forfile i in "*.h" indentFile(i);

Regards,

Cedric Lemaire
Jul 22 '05 #3
"OvErboRed" <pu******@SPAMoverbored.net> wrote in message
news:Xn******************************@127.0.0.1...
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


http://dickey.his.com/bcpp/bcpp.html
Jul 22 '05 #4
Thanks for your reply. As I mentioned in my post, AS is too basic for my
needs.

"Phlip" <ph*******@yahoo.com> wrote in
news:Pn*****************@newssvr32.news.prodigy.co m:
http://astyle.sourceforge.net


Jul 22 '05 #5
Thanks for your reply. Unfortunately, BCPP is too basic for my needs.

"roman ziak" <ne***@MYLASTNAME.com> wrote in news:ZQOMc.1110$i_2.51482
@news20.bellglobal.com:
http://dickey.his.com/bcpp/bcpp.html

Jul 22 '05 #6
[Top-post fixed. Please take pride in your posts.]
Phlip wrote:
http://astyle.sourceforge.net

OvErboRed wrote:
Thanks for your reply. As I mentioned in my post, AS is too basic for my
needs.


What the hell kind of needs could AS be "too basic" for? Do you intent to
turn innocent functions into ASCII Art of recumbent bicycles?

Use the source, Luke!

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces
Jul 22 '05 #7
OvErboRed wrote:
Thanks for your reply. Unfortunately, BCPP is too basic for my needs.


Perhaps you should explain why the suggested programs are to basic for
your needs. In other word what do you need that those programs don't
provide?

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl
Jul 22 '05 #8
Phlip <ph*******@yahoo.com> wrote:
What the hell kind of needs could AS be "too basic" for? Do you intent to
turn innocent functions into ASCII Art of recumbent bicycles?


a while back I wrote editor macros to transform comment-boxes to/from the
single-marker form:

/*******/
/* xxx */
/*******/

/*
xxx
*/

One of the developers in my project group found it unsuitable because he
wanted curved edges on the boxes.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Jul 22 '05 #9

"OvErboRed" <pu******@SPAMoverbored.net> wrote in message
news:Xn******************************@127.0.0.1...
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 could point me to an open-source program, but I'm willing
to work with something that's free (as in beer). Thanks in advance.


Not free, but specific to C++ and doesn't have Indent quirks.
See http://www.semdesigns.com/Products/F...Formatter.html

--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com
Jul 22 '05 #10
Peter van Merkerk <me*****@deadspam.com> wrote in news:2mk07gFmkmabU1@uni-
berlin.de:
OvErboRed wrote:
Thanks for your reply. Unfortunately, BCPP is too basic for my needs.


Perhaps you should explain why the suggested programs are to basic for
your needs. In other word what do you need that those programs don't
provide?


At least be able to do what indent is capable of, e.g., be able to produce
GNU style, K&R style, or Berkeley style code, but adapted to C++.
Jul 22 '05 #11
Sorry, that was me, posted with wrong account.

Class Account <cs******@imail.eecs.berkeley.edu> wrote in
news:Xn**********************************@127.0.0. 1:
Peter van Merkerk <me*****@deadspam.com> wrote in
news:2mk07gFmkmabU1@uni- berlin.de:
Perhaps you should explain why the suggested programs are to basic
for your needs. In other word what do you need that those programs
don't provide?


At least be able to do what indent is capable of, e.g., be able to
produce GNU style, K&R style, or Berkeley style code, but adapted to
C++.


Jul 22 '05 #12
At least be able to do what indent is capable of, e.g., be able to produce
GNU style, K&R style, or Berkeley style code, but adapted to C++.

"Phlip" <ph*******@yahoo.com> wrote in news:ZQ0Nc.23$Z56.11
@newssvr33.news.prodigy.com:
[Top-post fixed. Please take pride in your posts.]
Phlip wrote:
> http://astyle.sourceforge.net


OvErboRed wrote:
Thanks for your reply. As I mentioned in my post, AS is too basic for my
needs.


What the hell kind of needs could AS be "too basic" for? Do you intent to
turn innocent functions into ASCII Art of recumbent bicycles?

Use the source, Luke!


Jul 22 '05 #13
overbored wrote:
At least be able to do what indent is capable of, e.g., be able to produce
GNU style, K&R style, or Berkeley style code, but adapted to C++.

> http://astyle.sourceforge.net


It do them, as top-level options: -linux, -knr, etc.

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces
Jul 22 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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,...
4
by: groleo | last post by:
Hi. Do you know any good code beautifier for c++? I tried indent but it screws my code, and astyle seems to go by its own rules :)
8
by: Surendra Singhi | last post by:
Hello, Are there any good open source C/C++ source code formatter? Thanks for your help. -- Surendra Singhi http://www.public.asu.edu/~sksinghi/index.html ,---- | "O thou my friend! The...
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...
4
by: Shug | last post by:
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...
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: sudhaMurugesan | last post by:
Hello everybody, I need oracle formatter as similar to sql beautifier available online. Any body can say some web sites regarding this formatter? please........ regards, Sudha
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.