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 1oZL5x-0003dX-Bw for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Sep 2022 23:50:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oZL5u-0006Cb-B5 for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Sep 2022 23:50:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZL5u-0006CF-2X for pgsql-hackers@lists.postgresql.org; Fri, 16 Sep 2022 23:50:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZL5n-00076w-Dc for pgsql-hackers@lists.postgresql.org; Fri, 16 Sep 2022 23:50:01 +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 28GNnpXx3922751; Fri, 16 Sep 2022 19:49:53 -0400 From: Tom Lane To: Peter Geoghegan cc: PostgreSQL Hackers Subject: Re: Making C function declaration parameter names consistent with corresponding definition names In-reply-to: References: <3913123.1663370391@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Fri, 16 Sep 2022 16:36:50 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3922749.1663372191.1@sss.pgh.pa.us> Date: Fri, 16 Sep 2022 19:49:51 -0400 Message-ID: <3922750.1663372191@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Geoghegan writes: > It's possible to configure the clang-tidy tooling to tolerate various > inconsistencies, below some kind of threshold -- it is totally > customizable. But I think that a strict, simple rule is the way to go > here. Agreed; I see no need to tolerate any inconsistency. > (Though without creating busy work for committers that don't > want to use clang-tidy all the time.) Yeah. I'd be inclined to handle it about like cpluspluscheck: provide a script that people can run from time to time, but don't insist that it's a commit-blocker. (I wouldn't be unhappy to see the cfbot include this in its compiler warnings suite, though, once we get rid of the existing instances.) regards, tom lane