[Top][All Lists]
[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: |
david ingamells |
Subject: |
Re: [Bug-indent] procname-start-lines and hability to position of return function type |
Date: |
Wed, 13 Feb 2002 22:30:03 +0100 |
Eric,
This feature request will not be implemented with the indent tool because
of the lack of lookahead that I explained before.
David.
On Friday 01 February 2002 10:15 am, VALETTE Eric wrote:
> 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.
--
David Ingamells
address@hidden
+31 (013) 5093388 (home)
+31 065010947 (mobile)