C/C++ code beautifier

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

    #16
    Re: C/C++ code beautifier

    Steve Kobes wrote:[color=blue]
    > Robert Gamble wrote:
    >[color=green]
    >>Assuming you mean C and/or C++, yes, there are many.[/color]
    >
    >
    > Out of curiosity, when would C/C++ ever mean anything *other* than "C and/or C++"?[/color]

    Roman numerals mixed with C operators? 100/100++ = 100/101 ~= 0.99

    Comment

    • Richard Herring

      #17
      Re: C/C++ code beautifier

      In message <cngm90$7ig$1@n ntp1.jpl.nasa.g ov>, E. Robert Tisdale
      <E.Robert.Tisda le@jpl.nasa.gov > trolled[color=blue]
      >
      >C++ was designed by the same people at Bell Labs.[/color]

      bool same(std::strin g a, std::string b);

      assert(same("St roustrup", "Ritchie")) ;

      Yeah, right.

      --
      Richard Herring

      Comment

      • Chris Hills

        #18
        Re: C/C++ code beautifier

        I always though that a C/C++ beautifier was ADA....

        Runs off to find asbestos suit and a ticket off the planet :-)

        /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
        \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/\
        /\/\/ chris@phaedsys. org www.phaedsys.org \/\/
        \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

        Comment

        • Jason Taylor

          #19
          Re: C/C++ code beautifier

          "E. Robert Tisdale" <E.Robert.Tisda le@jpl.nasa.gov > wrote in message news:<cngabu$1d j$1@nntp1.jpl.n asa.gov>...[color=blue]
          > Diego Andres Alvarez Marin wrote:
          >[color=green]
          > > Victor Bazarov wrote:
          > >[color=darkred]
          > >>Diego Andres Alvarez Marin wrote:
          > >>
          > >>>Is there a linux tool that uses as input my ugly C/C++ code and
          > >>>outputs a pretty and nice formated source code?
          > >>
          > >>Have you tried www.google.com?[/color]
          > >
          > > Believe me that I spend 15 minutes before asking here
          > > and I did not find anything...[/color]
          >
          > You should have told us that in your original post.
          >[color=green]
          > > Maybe I did not put the right words...[/color]
          >
          > I used Google
          >
          > http://www.google.com/
          >
          > to search for
          >
          > +"reformat C++"
          >
          > and I found lots of stuff including:
          >
          > http://www.vijayawadasite.com/home/c...al-issues.html
          >
          > [30.2] Are there any pretty-printers that reformat C++ source code?
          >
          > [snip]
          >
          > In alphabetical order:
          >
          > * Artistic Style is a reindenter and reformatter of C++, C and Java
          > source code. It is available from http://gene.md.huji.ac.il/~tald/astyle/
          > * C++2LaTeX is a LaTeX pretty printer. It is available from
          > http://mirriwinni.cse.rmit.edu.au/ft...TeX-4.0.tar.gz
          > * C-Clearly by V Communications, Inc. is a Windows program that
          > comes with standard formatting templates and also allows you to
          > customize your own. http://www.mixsoftware.com/product/ccl.htm
          > * GNU indent program may help. It's available at
          > http://www.arceneaux.com/indent.html. You can also find an "official"
          > GNU mirror site by looking at http://www.gnu.org/order/ftp.html or
          > perhaps the original GNU site, ftp://prep.ai.mit.edu/pub/gnu/ (e.g., if
          > the current version is 1.9.1 you could use
          > ftp://prep.ai.mit.edu/pub/gnu/indent-1.9.1.tar.gz).
          > * tgrind is a Unix based pretty printer. It usually comes with the
          > public distribution of TeX and LaTeX in the directory
          > "...tex82/contrib/van/tgrind". A more up-to-date version of tgrind by
          > Jerry Leichter can be found on: ftp://venus.ycc.yale.edu/pub in
          > [.TGRIND]. [Note: If anyone has an updated URL for tgrind, please let me
          > know (cline@parashif t.com).]
          >
          > Finally, you might consider lgrind which is another C++ to LaTeX
          > translator (check for the closest mirror site of the ctan archive). The
          > following is a grind definition for C++ (but this one doesn't recognize
          > some new keywords such as bool or wchar_t, and it doesn't recognize a
          > file ending with .cpp as C++):
          >
          > C++|c++|CC:\
          > :pb=\p\d?\(:cf: np=\)\d?;:bb={: be=}:\
          > :cb=/*:ce=*/:ab=//:ae=$:sb=":se=\ e":lb=':\
          > :zb=@:ze=@:tb=% %:te=%%:mb=%\$: me=\$%:vb=%\|:v e=\|%:\
          > :le=\e':tl:id=_ ~\::\
          > :kw=asm auto break case cdecl char continue default do double else\
          > enum extern far float for fortran goto huge if int interrupt long\
          > near pascal register return short signed sizeof static struct\
          > switch typedef union unsigned while void\
          > #define #else #endif #if #ifdef #ifndef #include #undef # define\
          > endif ifdef ifndef include undef defined #pragma\
          > class const delete friend inline new operator overload private\
          > protected public template this virtual:[/color]

          Check out a Windows program called Crystal FLOW for C/C++ from
          flowchart,Flow Chart,flow,flowcharting,flow charting,flowcharts,flow charts,flowchart generator,code to flowchart,source code to flowchart, generator,editor,program,programming,tools,IDE,visio,Project,function,preprocessor,data structure,Algorithm,parser,compiler,class,oops,OOAD, C,C++,Cpp,C#,C Sharp,understanding c/c++,ANSI standard,C extensions,ANSI C,Kiel C,source code,source code analyzer,code view, code review, formatting,format,autoformat,auto format,autoformatting,auto formatting,formatter,code formatter,code analyzer,code visualizer,code generator, Code analysis,graph,graphs,tree,call tree,calltree,caller tree,callertree,file tree,filetree,class-trees, class hierarchy, static checking,MISRA,LINT,HTML-Documenter,Documenting,Document,Documentation,HTML,State Transition diagrams, Metrics,McCabes,Halstead,Cyclomatic,Bugs Delivered,Browse,Browsing,Code browsing,Codebrowsing, Publish,Publisher,Source Publisher,Publisher Source Code,Publish Source Code,Commenting,Code Commenting,Comment generator, Comment,flowgen,call Flow,callflow,data flow,dataflow,codeflow,code flow,Development,Developers,Design,Diagrams


          In addition to an excellent code beautifier, it creates flowcharts
          from C/C++ code. Has a complete code browser too.

          Comment

          • Jason Taylor

            #20
            Re: C/C++ code beautifier

            Chris Hills <chris@phaedsys .org> wrote in message news:<c2eVeFCkG jnBFAGb@phaedsy s.demon.co.uk>. ..[color=blue]
            > I always though that a C/C++ beautifier was ADA....
            >
            > Runs off to find asbestos suit and a ticket off the planet :-)
            >
            > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
            > \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/\
            > /\/\/ chris@phaedsys. org www.phaedsys.org \/\/
            > \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/[/color]


            I found an excellent Windows program called Crystal FLOW for C/C++ from
            flowchart,Flow Chart,flow,flowcharting,flow charting,flowcharts,flow charts,flowchart generator,code to flowchart,source code to flowchart, generator,editor,program,programming,tools,IDE,visio,Project,function,preprocessor,data structure,Algorithm,parser,compiler,class,oops,OOAD, C,C++,Cpp,C#,C Sharp,understanding c/c++,ANSI standard,C extensions,ANSI C,Kiel C,source code,source code analyzer,code view, code review, formatting,format,autoformat,auto format,autoformatting,auto formatting,formatter,code formatter,code analyzer,code visualizer,code generator, Code analysis,graph,graphs,tree,call tree,calltree,caller tree,callertree,file tree,filetree,class-trees, class hierarchy, static checking,MISRA,LINT,HTML-Documenter,Documenting,Document,Documentation,HTML,State Transition diagrams, Metrics,McCabes,Halstead,Cyclomatic,Bugs Delivered,Browse,Browsing,Code browsing,Codebrowsing, Publish,Publisher,Source Publisher,Publisher Source Code,Publish Source Code,Commenting,Code Commenting,Comment generator, Comment,flowgen,call Flow,callflow,data flow,dataflow,codeflow,code flow,Development,Developers,Design,Diagrams


            In addition to a nice code beautifier, it creates the best flowcharts
            from code I have seen. It has a complete code browser too.

            Comment

            Working...