pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: pgindent vs dtrace on macos
Date: Tue, 22 Sep 2020 10:18:40 -0400
Message-ID: <1177223.1600784320@sss.pgh.pa.us> (raw)
In-Reply-To: <B498B70E-C1D7-474B-871B-8B2C35F840FB@yesql.se>
References: <20200917000334.GA28142@alvherre.pgsql>
	<66137.1600303192@sss.pgh.pa.us>
	<1019914.1600714537@sss.pgh.pa.us>
	<B498B70E-C1D7-474B-871B-8B2C35F840FB@yesql.se>

Daniel Gustafsson <daniel@yesql.se> writes:
>> On 21 Sep 2020, at 20:55, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Here's a proposed patch to fix it that way.

> +1 on this patch.  Do you think it's worth adding a note about this in the
> documentation to save the next one staring at this a few minutes?  Something
> along the lines of:

> +If an exported function shares a name with a typedef, the header file with the
> +prototype can get incorrect spacing for the function.

AFAIK, a function name that's the same as a typedef name will get
misformatted whether it's exported or not; pgindent doesn't really
know the difference.  But yeah, we could add something about this.

			regards, tom lane





view thread (21+ messages)  latest in thread

Message-ID: <1177223.1600784320@sss.pgh.pa.us>
Permalink:  ../1177223.1600784320@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1177223.1600784320@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daniel@yesql.se, alvherre@2ndquadrant.com, peter.eisentraut@2ndquadrant.com
  Subject: Re: pgindent vs dtrace on macos
  In-Reply-To: <1177223.1600784320@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox