bug-indent
[Top][All Lists]
Advanced

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

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


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

david ingamells wrote:
Eric,
I'm pleased you like what you see, although I cannot take much of the credit
for the improvements, having taken over as maintainer not long before the
release of 2.2.7.

Regarding your request, as indent does not really look ahead in the file, at the time that the function type is seen indent cannot differentiate between
a global variable declaration and a function declaration. Therefore whatever
indent is set to will apply to the indentation of both. Is this what your coding standard requires? e.g. how should

int a_global_variable;
int a_function()
{
   return 1;
}


int a_global_variable;

  int
a_function()
{
  return 1;
}

NB : only one function will be close to variable declaration in most case.
Besides, there will probably be comments to separate the two lines.


--
   __
  /  `                          Eric Valette - Canon CRF
 /--   __  o _.                 Product Dev. Group Software Team Leader
(___, / (_(_(__                 Rue de la touche lambert
                                35517 Cesson-Sevigne  Cedex
                                FRANCE
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]