bug-indent
[Top][All Lists]
Advanced

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

Re: [Bug-indent] C++ ability for indent .. code patch and question.


From: Preston A. Elder
Subject: Re: [Bug-indent] C++ ability for indent .. code patch and question.
Date: Fri, 08 Feb 2002 16:13:34 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010923

Carlo Wood wrote:

On Sat, Jan 12, 2002 at 04:58:00PM +0100, Carlo Wood wrote:

I think that the correct strategy is to never catenate two '>' tokens.
If might be better to add a flag to parser_state_tos that indicates
that the last token was a '<' and then request a space before the
current '<' token if there was also a space before it in the input.


s/</>/g



Its been a little while since you've heard from me.

Once again, take it or leave it, however please find attached the patch to indent v2.2.7 that makes indent not only WORK with C++, but also actually make C++ pretty while doing it.

I run this over C and C++ code, and you may want to review it and put some if (c_plus_plus) definitions around it or something. Or you may want to drop this on the floor, but this is my contribution to the cause. I hope you will intergrate this into 2.2.8 when it comes out.

(I currently run this on all my C++ code, and I get no more errors or warnings from compilation than I did before, and the code compiles just fine ...)

Thanks,

--
PreZ
Development Head
Magick IRC Services

Magick IRC Services, power to the PEOPLE!
Product Site: http://www.magick.tm
Project Site: http://www.sourceforge.net/projects/magick

Attachment: indent-2.2.7+cpp.patch.gz
Description: Binary data


reply via email to

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