bug-indent
[Top][All Lists]
Advanced

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

Re: [Bug-indent] brace-line-up feature mod for indent


From: Kim Saunders
Subject: Re: [Bug-indent] brace-line-up feature mod for indent
Date: 26 Jul 2002 09:21:33 +1200

> > Are you wanting something like this:
> > 
> > void foo ()
> > {
> >     int bar;
> > 
> >     if (a)
> >         {
> >         bar++;
> >         }
> >     else
> >         bar--;
> > }
> > 
> > KimS
> 
> Yes, that's what I want.  The differently indented code is a problem
> too, but not my problem as I don't use that style.  My problem is that
> indent doesn't do my style at all. :(

Yes... that's because your style is somewhat inconsistent, with code
indented inside function braces, but non inside conditional braces.

My personal opinion (as an indent *user*) is that this isn't really
something indent should do (it's meant to make code *consistent*).

KimS




reply via email to

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