Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKj85-0003BB-9v for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Sep 2020 14:18:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kKj84-0004id-7r for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Sep 2020 14:18:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKj84-0004iH-0s for pgsql-hackers@lists.postgresql.org; Tue, 22 Sep 2020 14:18:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKj7z-0004wo-Gg for pgsql-hackers@postgresql.org; Tue, 22 Sep 2020 14:18:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 08MEIeiP1177224; Tue, 22 Sep 2020 10:18:41 -0400 From: Tom Lane To: Daniel Gustafsson cc: Alvaro Herrera , Peter Eisentraut , pgsql-hackers Subject: Re: pgindent vs dtrace on macos In-reply-to: References: <20200917000334.GA28142@alvherre.pgsql> <66137.1600303192@sss.pgh.pa.us> <1019914.1600714537@sss.pgh.pa.us> Comments: In-reply-to Daniel Gustafsson message dated "Tue, 22 Sep 2020 10:25:54 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1177222.1600784320.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 22 Sep 2020 10:18:40 -0400 Message-ID: <1177223.1600784320@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Daniel Gustafsson writes: >> On 21 Sep 2020, at 20:55, Tom Lane 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 t= he > documentation to save the next one staring at this a few minutes? Somet= hing > along the lines of: > +If an exported function shares a name with a typedef, the header file w= ith 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