[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-indent] procname-start-lines and hability to position of return fun

From: VALETTE Eric
Subject: [Bug-indent] procname-start-lines and hability to position of return function type
Date: Wed, 30 Jan 2002 10:57:45 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020127

First I would like to thank all the people that hace contributed to develop indent 2.2.7. I gave up using indent long time ago and was using emacs to format the code. With indent 2.2.7, I think I may revise my position.

I currently use the following, .indent.pro setup
-cdb -sc -br -ce -bli4 -brs -i2 -nbbo -ts4 -nut -sob -psl

And I'm pretty satisfied with wht it does except for the the psl option that should be complemented or (use the -i setting) for putting the return type not on the first colum but aligned with type definition inside the prodcedure definition.

int foo() {return 1;}
is transformed into :

foo ()
  return 1;

The programming standart I use requires :

foo ()
  return 1;

  /  `                          Eric Valette - Canon CRF
 /--   __  o _.                 Product Dev. Group Software Team Leader
(___, / (_(_(__                 Rue de la touche lambert
                                35517 Cesson-Sevigne  Cedex
Tel: +33 (0)2 99 87 68 91       Fax: +33 (0)2 99 84 11 30
E-mail: address@hidden    http://www.crf.canon.fr

reply via email to

[Prev in Thread] Current Thread [Next in Thread]