bug-indent
[Top][All Lists]
Advanced

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

Re: indent enhancement request remove unneeded brackets


From: indent
Subject: Re: indent enhancement request remove unneeded brackets
Date: Mon, 25 May 2009 21:21:29 +0200
User-agent: Thunderbird 2.0.0.19 (X11/20081227)

w langdon wrote:
> I do not know how easy it would be to do this, but one of our users
> has requested that indent be able to remove unnecessary "{" "}".
>
> Some automatically generated C (produced by CIL) has many
> extra brackets, which serve only to clutter the source code
> and it would be nice if gnu indent could remove them from its
> pretty print.
>
>                             Thank you
>
>                                 Bill
>
>         Dr. W. B. Langdon,
>         Department of Computer Science,
>         King's College London,
>         Strand, London, WC2R 2LS, UK
>         http://www.cs.ucl.ac.uk/external/W.Langdon
>
> A Field Guide to Genetic Programming
>                        http://www.gp-field-guide.org.uk/
> Evolving purple robot
> http://bioinformatics.essex.ac.uk/users/wlangdon/field_guide/
> CIGPU 2009             http://www.cs.ucl.ac.uk/external/W.Langdon/cigpu
> GP EM                  http://www.springer.com/10710
> GP Bibliography        http://www.cs.bham.ac.uk/~wbl/biblio/
>
>
> _______________________________________________
> bug-indent mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-indent
>
>   
Bill,
Thank you for your suggestion. In my opinion, however, it is beyond the
scope of indent to modify syntactic elements of the source code. The
purpose of indent is to adjust the white space between the syntactic
elements. It would be better to fix the problem at the origin by
adapting CIL to not produce superfluous braces.

David.




reply via email to

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