Re: updated emacs configuration - Mailing list pgsql-hackers

From Greg Stark
Subject Re: updated emacs configuration
Date
Msg-id CAM-w4HP09VAiT7Oy2XTprScpL5BC7RknzEdfdxN_sFTV-8wCwA@mail.gmail.com
Whole thread Raw
In response to Re: updated emacs configuration  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: updated emacs configuration
Re: updated emacs configuration
List pgsql-hackers
On Thu, Jun 27, 2013 at 10:31 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> AFAIR, no one has ever done a serious comparison to anything except GNU
> indent, and (at least at the time) it seemed to have bugs as bad as
> pgindent's, just different ones.  I'm certainly open to another choice
> as long as we don't lose on portability of the tool.  But who will do
> the legwork to test something else?

Fwiw I played with clang-format a bit the other day. But I couldn't
get it to resemble our coding style. It was strongly of the opinion
that spacing within lines should be completely consistent and that
meant it eliminated all spaces that lined up initializers and such.

In theory this tool is promising though since it works by looking at
the llvm bytecode to determine what the real syntax is. It should be
able to handle the typedef issues we have with most of the the tools.


-- 
greg



pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: InvokeObjectPostAlterHook() vs. CommandCounterIncrement()
Next
From: Pavel Stehule
Date:
Subject: proposal - psql - show longest tables