Are there any pretty-printers that reformat C++ source code?
In alphabetical order: • A2PS is a Unix-based pretty-printer. It is available from www.infres.enst.fr/~demaille/a2ps/ • Artistic Style is a reindenter and reformatter of C++, C and Java source code. It is available from astyle.sourceforge.net/ • C++2LaTeX is a LaTeX pretty printer. It is available from www.arnoldarts.de/cpp2latex.html • C-Clearly by V Communications, Inc. is a Windows program that comes with standard formatting templates and also allows you to customize your own. www.mixsoftware.com/product/ccl.htm • GNU indent program may help. It’s available at www.arceneaux.com/indent.html. You can also find an “official” GNU mirror site by looking at www.gnu.org/order/ftp.html or perhaps the original GNU site, prep.ai.mit.edu/pub/gnu/ (e.g., if the current version is 1.9.1 you could use prep.ai.mit.edu/pub/gnu/indent-1.9.1.tar.gz). • “HPS Beauty” is reported to be a Windows 95/98/NT4/NT2000 utility that beautifies C/C++ source code based on rules.
[Recently added informatil about tgrind (on 9/97). Click here to go to the next FAQ in the “chain” of recent changes.] In alphabetical order: • C++2LaTeX is a LaTeX pretty printer. It is available via ftp from ftp://ftp.germany.eu.net/pub/packages/TeX/support/pretty/C++2LaTeX-3.02.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.v-com.com/ • GNU indent program may help. It’s somewhere on ftp://www.cygnus.com [Note: If anyone has a better URL, please let me know (cline@parashift.com).] • 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@parashift.com).] Finally, you might consider lgrind w