Need Code Beautifier for C++ with command line capabilities

S

Sparhawk

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
 
I

Ira Baxter

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/Products/Formatters/CppFormatter.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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top