Re: Run pgindent now? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Run pgindent now?
Date
Msg-id 55651167.9060007@gmx.net
Whole thread Raw
In response to Re: Run pgindent now?  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List 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.




pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Run pgindent now?
Next
From: Tatsuo Ishii
Date:
Subject: psql po translation update