Need Code Beautifier for C++ with command line capabilities

Discussion in 'C++' started by Sparhawk, Nov 23, 2004.

  1. Sparhawk

    Sparhawk Guest

    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
     
    Sparhawk, Nov 23, 2004
    #1
    1. Advertising

  2. Sparhawk

    Ira Baxter Guest

    "Sparhawk" <> wrote in message
    news:...

    > 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.


    > Any help is greatly appreciated,
    > Kay Eckernkamp



    --
    Ira D. Baxter, Ph.D., CTO 512-250-1018
    Semantic Designs, Inc. www.semdesigns.com
     
    Ira Baxter, Nov 23, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tivo Escobar
    Replies:
    6
    Views:
    762
  2. Diego Andres Alvarez Marin

    C/C++ code beautifier

    Diego Andres Alvarez Marin, Nov 16, 2004, in forum: C++
    Replies:
    20
    Views:
    6,934
    Jason Taylor
    Nov 28, 2004
  3. Replies:
    4
    Views:
    4,707
    Bharat Karia
    Mar 22, 2005
  4. Shug
    Replies:
    4
    Views:
    622
  5. Shug
    Replies:
    5
    Views:
    589
    james cook
    Jun 12, 2008
Loading...

Share This Page