Xref: utzoo comp.lang.c++:5881 comp.sources.wanted:9756 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!att!dptg!mtuno!luke From: luke@mtuno.ATT.COM (s.l.jones) Newsgroups: comp.lang.c++,comp.sources.wanted Subject: C++ beautifier Keywords: C++, ansi, PD/freeware Message-ID: <2774@mtuno.ATT.COM> Date: 13 Dec 89 18:54:31 GMT Organization: AT&T Bell Laboratories Lines: 36 Does anybody out there have a C++ beautifier like the UNIX cb(1) program? I'm especially interested in something that can hack function headers like int main( int argc, char **argv ) { printf( "hello, world\n" ); } which, as you can see, is not even (necessarily) C++, but plain vanilla ANSI C. I don't want it bad enough to pay any money, but I promise to use it a lot. (I need source, since I'd use it on both UNIX and DOS.) Ideally, this cb++ should offer all sorts of customizations. I want to use it to coerce other peoples code, since :-) my coding style is already ideal. I'd like to be able to control how it treats comments, (including the // kind), whether spaces go inside or outside parens, or neither, or both, where the curly braces go (of course), and how to indent run-on expressions like if( condition1 && condition2 && condition3 && condition4 && condition5 ) // also where to indent the line after that beast It should also offer the choice of whether to use tabs, and, if so, what width they should represent. And so forth....generally speaking, the more the merrier. It should be so complex it has to have its own .rc file :-). Send a man page too. Thanks in advance. Luke Jones -- S. Luke Jones, luke@mtung.att.com or ...!att!mtung!luke 201/957-2733 AT&T Inf###Bell Labs, Rm. MT 2E-337, 200 Laurel Ave., Middletown, NJ 07748 DISCLAIMER: the opinions presented herein are solely my own, *NOT* AT&T's. "System Test? That's for idiots!" --- me, misquoting "Dirty" Harry Calahan