Re: C++-pretty-printer wanted !!!

rfg@netcom.com (Ronald F. Guilmette)
Wed, 14 Sep 1994 15:35:24 GMT

          From comp.compilers

Related articles
C++-pretty-printer wanted !!! fgr@eup.siemens-albis.CH (1994-09-10)
Re: C++-pretty-printer wanted !!! smh@Franz.COM (1994-09-14)
Re: C++-pretty-printer wanted !!! rfg@netcom.com (1994-09-14)
Re: C++-pretty-printer wanted !!! euambn@eua.ericsson.se (1994-09-17)
Re: C++-pretty-printer wanted !!! henrik@atlas.sto.foa.se (1994-10-07)
Re: C++-pretty-printer wanted !!! rfg@netcom.com (1994-10-14)
| List of all articles for this month |

Newsgroups: comp.compilers,comp.lang.c++
From: rfg@netcom.com (Ronald F. Guilmette)
Keywords: C++, tools
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
References: 94-09-018
Date: Wed, 14 Sep 1994 15:35:24 GMT

fgr@eup.siemens-albis.CH writes:
>I'm looking for a C++-pretty-printer that reads any ugly
>C++-sourcefile and formats it to a nice, correctly indented
>sourcefile. There are several programs for C-code (such as indent),
>but I couldn't find one for C++. The program should work with UNIX
>(on a SUN).


Actually, GNU Indent works ok with C++ code (I think). I've formatted
*some* C++ code with it, and it seems to work.


But there were quite a number of bugs in the current released version
(1.9.1) for *both* C and C++... mostly relating to operators. For my
own work, I've fixed all of those I found, and added additional support
for the C++ specific operators.


I'll be happy to mail patches (relative to 1.9.1) to anyone who wants them.


--


-- Ron Guilmette, Sunnyvale, CA ---------- RG Consulting -------------------
---- domain addr: rfg@netcom.com ----------- Purveyors of Compiler Test ----
---- uucp addr: ...!uunet!netcom!rfg ------- Suites and Bullet-Proof Shoes -
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.