This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

looking for c++ indent


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]