Formatting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    Formatting

    Hello all,

    What is the recommended tool for beautifying C++ source code? There seem to
    be a lot of options out there, but I don't know which is the preferred
    tool...

    Thanks,
    Dave


  • Thomas Matthews

    #2
    Re: Formatting

    Dave wrote:[color=blue]
    > Hello all,
    >
    > What is the recommended tool for beautifying C++ source code? There seem to
    > be a lot of options out there, but I don't know which is the preferred
    > tool...
    >
    > Thanks,
    > Dave[/color]

    All depends on your style requirements of preferences and
    which will accomodate it.

    I don't use one because I do the "beautifyin g" along the way.

    --
    Thomas Matthews

    C++ newsgroup welcome message:

    C++ Faq: http://www.parashift.com/c++-faq-lite
    C Faq: http://www.eskimo.com/~scs/c-faq/top.html
    alt.comp.lang.l earn.c-c++ faq:

    Other sites:
    http://www.josuttis.com -- C++ STL Library book

    Comment

    • Mike Wahler

      #3
      Re: Formatting


      "Dave" <better_cs_now@ yahoo.com> wrote in message
      news:vqo2sp99pc ps8e@news.super news.com...[color=blue]
      > Hello all,
      >
      > What is the recommended tool for beautifying C++ source code? There seem[/color]
      to[color=blue]
      > be a lot of options out there, but I don't know which is the preferred
      > tool...[/color]

      "Preferred" is of course a subjective issue. For example,
      I prefer to make the code 'beautiful' (i.e. clear, readable,
      and consistent) as I write it. As for having a computer (program)
      come along and shuffle my source code around, well, I just don't
      trust these darn machines much at all... :-)

      -Mike


      Comment

      • E. Robert Tisdale

        #4
        Re: Formatting

        Dave wrote:
        [color=blue]
        > What is the recommended tool for beautifying C++ source code?
        > There seem to be a lot of options out there,
        > but I don't know which is the preferred tool...[/color]

        I prefer Astyle



        because it's free
        and because it is easy to modify to suit my tastes.

        I don't think that their is any consensus.
        You just need to pick the one that you like.

        Comment

        • Dave

          #5
          Re: Formatting


          "Dave" <better_cs_now@ yahoo.com> wrote in message
          news:vqo2sp99pc ps8e@news.super news.com...[color=blue]
          > Hello all,
          >
          > What is the recommended tool for beautifying C++ source code? There seem[/color]
          to[color=blue]
          > be a lot of options out there, but I don't know which is the preferred
          > tool...
          >
          > Thanks,
          > Dave
          >
          >[/color]

          OK, thanks for the input everyone. I definitely agree with everyone on
          keeping the code clean as you go. I am meticulous about my own code. The
          problem is that I've just joined a new group with a 22000 SLOC codebase that
          is over 10 years old and in *horrible* shape!


          Comment

          Working...