Formatter for C++

Sandeep Mehta sxm at philabs.philips.com
Thu Mar 22 00:27:22 AEST 1990


In article <5928 at brazos.Rice.edu>, canon!smith at 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 at philabs.philips.com                             ...to be or not to bop ?



More information about the Comp.sys.sun mailing list