Source indentation style - take II


Subject: Source indentation style - take II
From: Jesper Skov (jskov@redhat.com)
Date: Tue Feb 13 2001 - 10:05:23 CST


OK, just found that the indent maintained by GNU (GNU indent 2.2.5) is
actually way newer than the one I played with. And it's much better
too.

Only problems I found now are:

 o Wrapping existing long comments to fit in 79 chars have some weird
   results:

      if (offset == cumEndOffset) // there's a frag boundary exactly
                                         // where we want. pfTemp is to our
                                         // left.
      {

   Fine by me, but it may irk some people.

 o npsl/psl option does not work properly so it's not possible to get
   proper looking function definitions (function name should be at
   column 1 like the return type):

    bool
        pt_PieceTable::getSpanAttrProp (PL_StruxDocHandle sdh, UT_uint32 offset,
                                        bool bLeftSide, const PP_AttrProp ** ppAP) const

   This is a regular bug, I'm sure.
  

Note that tab width has been fixed. It is now 4 as it should be for
AbiWord source files.

Please have a look at the below and see if it's acceptable.

It was generated with:

indent /tmp/pt_PieceTable.cpp -o ./pt2.cpp -bbb -nbc -bl -c40 -nce \
       -d0 -di1 -nfc1 -i4 -l79 -lp -sc -fca -hnl -ip0 -bbo -lp -ts4 \
       -bli0 -npsl

some of the options are probably wrong since I couldn't be bothered to
start from scratch.

Jesper




This archive was generated by hypermail 2b25 : Tue Feb 13 2001 - 10:05:33 CST