From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id yF6LNNGdhmc/Ag8AWB0awg (envelope-from ) for ; Tue, 14 Jan 2025 12:24:33 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=gFl6rPYx; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D3FD01E100; Tue, 14 Jan 2025 12:24:33 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6BE701E05C for ; Tue, 14 Jan 2025 12:24:33 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0D70D385627C for ; Tue, 14 Jan 2025 17:24:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D70D385627C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1736875473; bh=sQEv2USUFKCSwv7K7RtoduRzH0VDzqXa/ZTXRJa5MTk=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=gFl6rPYxJtd2CR+YWCS+UGNMb80BlRtteES6HPDYmi48VeYEefeu7rZniDAKLMyOD xKRD6zi+RqSenLDxe5LjylvQ+J5VvwhqS7Flfs57T+4x5huGgEV+gOc5B3WlSg1raz E/5YPdk/4MHYkcI83siY3MYAhgsfsPjTw8UHkcFE= Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 7AE9F3856256 for ; Tue, 14 Jan 2025 17:23:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7AE9F3856256 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7AE9F3856256 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736875425; cv=none; b=l/FiGPNzjbjrqWbVffY9wm7hGlJpdumVUPbXd+cTMJioqr/bzvQebearI4yRAQCDLOizdA/zrl616dUEzjqmrDzNgpYC49lhSQCwaqPO6ZrQrOxZ8oTosNADOrMJmH9Uta2lv4h3CKRbb+U8eENrQ89F5LXOWkBfbldxnoOhfmI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736875425; c=relaxed/simple; bh=UGo9f00vkX/LOAbfKe95JqIQx8C+vhG/xRQwsrhJ7Bg=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version: Subject:To:From; b=C9+oSmFQYFBBPT3U/S4D5b2VFAFBd8yy+jmWpF6BXmt6V1+UB9HaXeRW3Y4DSmdmydCOgFECo0ml1bYNru/UpNosIhkmPckafCalrU5H+85y4Krxn3//Boj8necwMpAV35vQ+OnHEzseqdcnoukJ86imccNx+gOegg23ht71BYo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7AE9F3856256 Received: by simark.ca (Postfix, from userid 112) id 29A581E10A; Tue, 14 Jan 2025 12:23:45 -0500 (EST) Received: from [10.0.0.11] (modemcable238.237-201-24.mc.videotron.ca [24.201.237.238]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id BA3281E05C; Tue, 14 Jan 2025 12:23:43 -0500 (EST) Message-ID: <2985f4ae-33c0-4e02-8982-fa132f4d3741@simark.ca> Date: Tue, 14 Jan 2025 12:23:43 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: automated coding style tool To: Luis Machado , Tom Tromey , "Aktemur, Tankut Baris via Gdb" Cc: "Aktemur, Tankut Baris" References: <86538dac-6c3a-4b9e-9de9-3906e645fa4d@redhat.com> <87y16vwbzl.fsf@tromey.com> <74c8b867-f5bb-48f7-9849-11d06e63a3d7@arm.com> <87tta2r5z2.fsf@redhat.com> <87tta1qq1i.fsf@tromey.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb Reply-To: Simon Marchi Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 2025-01-14 12:14, Luis Machado wrote: > I'd go for a tool, even if it is slightly to moderately different from what > we tend to use. It's not like the GNU style has been updated to cope with > the more recent C++ syntax, so we have some stuff that isn't properly > documented. I agree. The style has to be precisely defined if everybody needs to do formatting by hand, and we want the result to be consistent. But with the tool, you say "the style is whatever the tool outputs", and that clears sooo much mental space. I don't see the absolute need for the auto-formatted code to follow to the letter whatever style we apply by hand today. If we don't like what the tool outputs, we can argue over than and change the tool. Also, if are missing some features to get the output we want, nobody is going to magically implement them for us. And if we don't use the tool, there's no motivation for us either to go implement the changes. I think that the only way to get the ball rolling is to start using the tool, even if the output is not ideal, and then if there's something really annoying, one of us *might* have the motivation to go improve the tool. Simon