Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com X-Apparently-From: Message-ID: <3BF07A92.1422A16C@yahoo.com> Date: Mon, 12 Nov 2001 20:42:42 -0500 From: Earnie Boyd Reply-To: CA List X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Robert Collins CC: cygwin-apps AT sources DOT redhat DOT com Subject: Re: looking for c++ indent References: <03df01c16be2$b45ded80$0200a8c0 AT lifelesswks> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I haven't tried any of them yet but searching sourceforge.net for indent provides several. The one that I plan to look at first is gindent but I haven't even downloaded yet. Earnie. Robert Collins wrote: > The standard gnu indent is doing horrible things.. > > i.e. > > @@ -97,7 +102,8 @@ auth_retry: > > if (code < 200 || code >= 300) > { > - delete c; > + delete > + c; > return; > } > > Now, I'm of the opinion that second guessing your indent tool is a waste > of time - may as well not have one. > > However, I'm quite happy to use a different indent tool, that stays with > GNU indenting rules, but understands c++ well enough not to do the sort > of idiocy show above. > > I don't have the time to research a replacement just now, or to fix > indent itself, and it's a low priority - indent is consistent in what it > does, not random, so diffs should be small from now on in. > > If someone here can suggest a better indent.. I'll take a look. > Alternatively (preferred actually, but I don't wish to impinge on other > folks time) if someone wanted to hack indent to be c++ aware (ideally > including making things like headers with > #ifdef __cplusplus > extern "C" { > #endif > not indent the exported stuff.. that would be great. > > Rob _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com