Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezn49-0006Gu-R7 for pgsql-hackers@arkaria.postgresql.org; Sat, 24 Mar 2018 17:34:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ezn48-0002EO-65 for pgsql-hackers@arkaria.postgresql.org; Sat, 24 Mar 2018 17:34:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezn47-0002EF-VJ for pgsql-hackers@lists.postgresql.org; Sat, 24 Mar 2018 17:34:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezn45-0007AH-6i for pgsql-hackers@lists.postgresql.org; Sat, 24 Mar 2018 17:34:51 +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 w2OHYjiZ029151; Sat, 24 Mar 2018 13:34:45 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org Subject: Re: Undesirable entries in typedefs list In-reply-to: <20180324172919.axixlwl2itsk2yx3@alap3.anarazel.de> References: <28690.1521912334@sss.pgh.pa.us> <20180324172919.axixlwl2itsk2yx3@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 24 Mar 2018 10:29:19 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29149.1521912885.1@sss.pgh.pa.us> Date: Sat, 24 Mar 2018 13:34:45 -0400 Message-ID: <29150.1521912885@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-03-24 13:25:34 -0400, Tom Lane wrote: >> (2) "abs", "boolean", "iterator", "other", "pointer", "reference", >> "string", and "type" all now are listed as typedef names. >> >> It's probably okay to treat "boolean" as a typedef, but all those others >> are complete disasters. Anyone know where they're coming from? > Semi informed theory: LLVM? I think I'd configured one of the LLVM > animals to collect typedefs, but that might have been a bad idea... That was my first thought as well, since this seems to have changed quite recently. I don't think it's a bad idea to be collecting typedefs from something that compiles that code, because otherwise our own typedefs in that area won't be known. >> As for "bool", we could probably deal with that most reliably by >> having pgindent add it as a special case. Maybe we could get it >> back in there by having some trailing-edge buildfarm member >> contribute typedefs, but that seems like a solution with a rather >> limited half-life. > Could we combine the list of typedefs with one manually maintained > in-tree? Perhaps. We might need a manually maintained blacklist, as well. regards, tom lane