By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,423 Members | 1,327 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,423 IT Pros & Developers. It's quick & easy.

Need Code Beautifier for C++ with command line capabilities

P: n/a
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 of the
beautifier.
SourceFormatX does not have one
SourceStyler seems to have one, but I can't test it before purchasing
and it seems to be very basic
PolyStyle has one but breaks my C++ code

I have the following requirements to a beautifier
a) has command line interface
b) allows formatting of whole folders with recursive option for
subfolders
c) ignores readonly files
d) command line allows using of a style file which was previously
defined
e) preferably allows to exclude specific files (such as
automatically generated headers)
f) does not need to be free but shouldn't cost 500$/license either

Does anyone know of a tool?

Any help is greatly appreciated,
Kay Eckernkamp
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Sparhawk" <Ka************@gmx.de> wrote in message
news:74*************************@posting.google.co m...
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 of the
beautifier.
SourceFormatX does not have one
SourceStyler seems to have one, but I can't test it before purchasing
and it seems to be very basic
PolyStyle has one but breaks my C++ code
See http://www.semanticdesigns.com/Produ...Formatter.html
Won't break your source code.
I have the following requirements to a beautifier
a) has command line interface Check.
b) allows formatting of whole folders with recursive option for
subfolders There's a GUI tool to establish a "project file" that has such a recursive
option. Once the project file is established, you can execute from
the command line.
c) ignores readonly files Leave them out of the project file.
d) command line allows using of a style file which was previously
defined Style established on command line. You can of course
put this in a script.
e) preferably allows to exclude specific files (such as
automatically generated headers) Leave them out of the project file.
f) does not need to be free but shouldn't cost 500$/license either Way under $500.00.

Any help is greatly appreciated,
Kay Eckernkamp

--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.