Topic: C++ BEAUTIFIER, MY RESULTS, SOME PROBLEMS


Author: narayan@perlab.eas.asu.edu (Narayanan Ramamrutham)
Date: Mon, 26 Jul 1993 21:38:43 GMT
Raw View
C++ BEAUTIFIER, MY RESULTS, SOME PROBLEMS

These are the results of the indent that i used on my c++ pgms.

the options that I used are:
 -bad -bap2 -bbb -br -cdb -cli4 -di8 -fca -i8 -lp -npsl -sob -sc -ts8

i have the following problems:
 1. all the constructor routines, destructor routines & operator routines, the following is what happens:
  ex: if the input is
   foo::foo(...)
   the result is
   foo: :foo(...), the space in between the two colons causes a parse error when i compile the program.

 2. i dont know but the -bap option doesnt seem to work for me. infact i have the following effect:
  ex: if the i/p is
   foo::foo(..)
   {
    ---
    ---
   }

   foo::foo1(...)
   {
    ---
    ---
   }

   the result is
   foo: :foo (..)
   {
   } foo: :foo1 (...)
   {
   }
   though, this doesnot cause any compilation errors, but i find it difficult to read.

I am playing with the various options and i will be happy to post my results.
I thank all who responded to my request for info on the c++ beautifier.
Nanu.
--

*******************************************************************************
Narayanan Ramamrutham (Nanu) Off: (602) 965-7425        {             }
Dept. Of Computer Science Res: (602) 968-3015        {____     ____}
Arizona State University           @{ (0)---(0) }@
         (         )
          ( \___/ )
**      e-mail : narayan@perlab.eas.asu.edu      \     /
**               ramamrut@enuxha.eas.asu.edu       \___/
**   ramamrut@enuxhb.eas.asu.edu        | |    **
*******************************************************************************
   Gravity doesnt exist, Earth sucks!!!!
*******************************************************************************