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.