Re: Another pgindent gripe - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Another pgindent gripe
Date
Msg-id 18296.1131374722@sss.pgh.pa.us
Whole thread Raw
In response to Another pgindent gripe  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> I have another gripe regarding pgindent.  Why does it change indenting
> of function declarations?

What it's doing is indenting the additional lines in the same way as
they'd be indented in the function definition, that is

static void foo(int p1,   int p2);

static void
foo(int p1,   int p2)
{ ...

I've always thought this was pretty stupid, too --- I think it'd look
nicer as

static void foo(int p1,               int p2);

But I dunno whether it is easily fixable.  It's always done that AFAIR.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: Getting table name/tuple from OID
Next
From: "Merlin Moncure"
Date:
Subject: parameterized limit statements