Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: sxm@philabs.philips.com (Sandeep Mehta) Newsgroups: comp.sys.sun Subject: Re: Formatter for C++ Keywords: Miscellaneous Message-ID: <5972@brazos.Rice.edu> Date: 21 Mar 90 14:27:22 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 21 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n84 X-Sun-Spots-Digest: Volume 9, Issue 90, message 9 In article <5928@brazos.Rice.edu>, canon!smith@nsfnet-relay (Mark Smith) writes: >Does anyone know of a source code formatter like indent for C++? Public >domain or commercial will do. tgrind/vgrind will work decently with a reasonable vgrindefs cap entry. mine, and this was put together from contrib off the net, follows: C++|c++|g++|cplus:\ :ab=/*:ae=*/:bb={:be=}:cb=//:ce=$:lb=':le=\e':\ :pb=^*?(\a?\:\:)?\p\d?\(\a?\)(\d|{):\ :sb=":se=\e":tl:\ :kw=\ asm auto break case char class const continue \ default define delete do double else else endif enum \ extern float for friend goto if if ifdef \ ifndef include inline int long new operator \ overload public private register return short sizeof static struct \ switch this typedef undef union unsigned virtual void \ while : sxm@philabs.philips.com ...to be or not to bop ?