Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKtCS-0008Lr-Av for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Jun 2017 21:18:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKtCR-0002Dw-Cd for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Jun 2017 21:18:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKtCQ-0002Dm-L1 for pgsql-hackers@postgresql.org; Tue, 13 Jun 2017 21:18:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKtCO-0004RL-E1 for pgsql-hackers@postgresql.org; Tue, 13 Jun 2017 21:18:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5DLI1nZ031423; Tue, 13 Jun 2017 17:18:01 -0400 From: Tom Lane To: Piotr Stefaniak cc: Alvaro Herrera , Peter Eisentraut , "pgsql-hackers@postgresql.org" Subject: Re: pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.) In-reply-to: References: <20170517171600.fyxl3lhseszeuqrx@alvherre.pgsql> <880.1495045872@sss.pgh.pa.us> <5316.1495051919@sss.pgh.pa.us> <11874.1495057567@sss.pgh.pa.us> <15819.1495145176@sss.pgh.pa.us> <51717.1495410614@sss.pgh.pa.us> <24365.1497370969@sss.pgh.pa.us> <29276.1497385419@sss.pgh.pa.us> Comments: In-reply-to Piotr Stefaniak message dated "Tue, 13 Jun 2017 21:13:12 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31421.1497388681.1@sss.pgh.pa.us> Date: Tue, 13 Jun 2017 17:18:01 -0400 Message-ID: <31422.1497388681@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Piotr Stefaniak writes: > On 2017-06-13 22:23, Tom Lane wrote: >> I could not find any places where reverting this change made the >> results worse, so I'm unclear on why you made it. > I must admit I'm a bit confused about why it's not fixed yet, but I'll > have to analyze that later this week. But the idea was to convince > indent that the following is not a declaration and therefore it > shouldn't be formatted as such: > typedef void (*voidptr) (int *); Hm. But that's just a function pointer typedef, and we like the formatting we're getting for those from this new version --- with or without that change. What do you think needs to be done differently? I note btw that this is not the first time we've discussed that particular bit of code in this thread. I proposed a couple of different possible changes to it before ... regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers