bug-indent
[Top][All Lists]
Advanced

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

Re: [Bug-indent] Disabling indentation styles


From: david ingamells
Subject: Re: [Bug-indent] Disabling indentation styles
Date: Wed, 17 Jul 2002 20:59:55 +0200

Paul,
There have been other queries about just this issue. The problem is that 
indent was not designed to start with a "zero change" setting. Given the 
state of the code I also do not think that it is realistic to try to force 
indent to have a do nothing option.

The good news is that a development project has started to create a new 
indent tool that will be much more structured and flexible and the need for 
this option has been mentioned to the developer. I cannot say when this 
project will start to deliver working versions - it is still in the "pushing 
ideas around" stage.

Regards,

David.

On Friday 05 July 2002 5:53 pm, Paul Smith wrote:
> Hi all; I have some questions.  What I'm looking for, ultimately, is a
> tool to help me re-indent (but _only_ re-indent!) code in an automated
> way.
>
> By this I mean I want to fix the actual indentation of lines, normalize
> use of whitespace during indentation, etc.
>
> But I do _not_ want to perform any other formatting cleanups: no
> movement of braces, adding/removing whitespace to the right of the
> indentation, etc. etc.
>
> From the manual it wasn't immediately obvious to me whether every GNU
> indent option that modified code had the ability to be disabled.  It
> would be great if one of the "common styles" was something like "-none"
> which started with no indentation enabled at all; that is, if you used
> that style with no other options the output of indent would be identical
> to the input, while still actually parsing the file (that is, "-none"
> would not simply be a short-circuit around the guts of indent that turns
> it into cat, but it would actually parse the code: it would simply
> decide to not make a change at every decision point).
>
> Do you think it's possible for me to come up with a set of options to
> the current version of GNU indent which implements this "-none" common
> style?
>
> Do you think it's useful to have such a common style at all?
>
> Do you think that GNU indent could be usefully employed in the fashion
> I'm interested in (that is, to enforce "partial" coding standards, where
> only certain types of things like indentation were standardized, and the
> rest left unmodified)?

-- 
David Ingamells
address@hidden
+31 (013) 5093388     (home)
+31 615010947 (mobile)



reply via email to

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