Re: Run pgindent now?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Run pgindent now?
Date: 2015-05-27 00:35:51
Message-ID: 55651167.9060007@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5/25/15 5:51 PM, Alvaro Herrera wrote:
> Tom Lane wrote:
>
>> A longer-term fix would be to make pgindent less stupid about this sort
>> of usage, but nobody's yet volunteered to dig into the guts of that code.
>
> We've discussed in the past that we could use something other than BSD's
> indent -- astyle has been mentioned. It seems that with suitable
> options, we could make the result very close to what we have now, and
> not be forced to deal with typedef lists and other nonsense.

astyle looks like a decent tool, but it seems to me that it tends to
leave things alone that it doesn't have an explicit rule about. So that
would leave a lot of room for formatting randomness from different authors.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Davin M. Potts 2015-05-27 00:49:40 Re: [Pgbuildfarm] buildfarm olinguito vs python
Previous Message Andres Freund 2015-05-27 00:31:07 Re: Run pgindent now?