From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Iz4qG5XIOWl8/CwAWB0awg (envelope-from ) for ; Wed, 10 Dec 2025 14:23:01 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=qjU91H2Z; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5765A1E08D; Wed, 10 Dec 2025 14:23:01 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 992211E08D for ; Wed, 10 Dec 2025 14:23:00 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 2AEAD4BA2E29 for ; Wed, 10 Dec 2025 19:23:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AEAD4BA2E29 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=qjU91H2Z Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 046134BA2E1F for ; Wed, 10 Dec 2025 19:22:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 046134BA2E1F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 046134BA2E1F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765394544; cv=none; b=Vps3CrCw8rDqUwIowJqmTQwMnI0F1NdDkmP6/4ca4izTH2SwjUHN1UK30fyzAjbZukT9jl4/fQ/OoDvJzG4hVs5QrAwEny2TRC2Kv8G4T5NE9Yt+O3q2gpqGUDvj8As/8SamKIT6L49J8pO4JlaCndHlyzK9mtwJ5DNwcCOkoKw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765394544; c=relaxed/simple; bh=AjsZBxmbwKIxq7lPGsjNFA4bKfCac7FwkdBFicxXF/c=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Op3+RW6uXvXxcZeGg6gpBpAjSJtO2rD2ot8uaB6N4/bAzR7GyfcOr3WoX4OufbwbWJ5vzulOt5JdXGIWz4R5kv+a4NcqN1DK4F6Tdbox61KRvTF/byJyilRnWBZhxKyotxB94GasccSobsldFjPyzU9BCVtilsDJMoo9Em2olLM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 046134BA2E1F Received: from eig-obgw-6006b.ext.cloudfilter.net ([10.0.30.211]) by cmsmtp with ESMTPS id TEJ2vs94kv724TPlXvgVah; Wed, 10 Dec 2025 19:22:23 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id TPlWvEMfWvXvHTPlXvxc99; Wed, 10 Dec 2025 19:22:23 +0000 X-Authority-Analysis: v=2.4 cv=e4IGSbp/ c=1 sm=1 tr=0 ts=6939c86f a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=wP3pNCr1ah4A:10 a=ItBw4LHWJt0A:10 a=20KFwNOVAAAA:8 a=BYbnJs0v2Keup99FDLkA:9 a=VS4QxaUSPT0UtbFnIvSC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=bCxBSpg23b6IyifOBhDt8acfddtGrpLiRaUCqVodRC4=; b=qjU91H2ZSupsQO97dqzOjsUUFn qRxh1IxCacSzySDz6z1Ybc3ezYfwpyA0CNbQE9IUsL7jO6kJsAWGKVA1VIITr6l4rwkQfBsbMdb7h x92EGYWLVc/fwH1c09r6DFeA1; Received: from 97-122-120-205.hlrn.qwest.net ([97.122.120.205]:53868 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vTPlR-00000001gf2-2hVj; Wed, 10 Dec 2025 12:22:17 -0700 From: Tom Tromey To: Jason Merrill Cc: Tom Tromey , Andrew Pinski , gdb-patches@sourceware.org, GCC Mailing List , binutils Subject: Re: [PATCH v4] Add .clang-format In-Reply-To: (Jason Merrill's message of "Mon, 13 Oct 2025 09:59:21 +0300") References: <20251006183901.1239002-1-tom@tromey.com> <87frbv3jmg.fsf@tromey.com> X-Attribution: Tom Date: Wed, 10 Dec 2025 12:22:07 -0700 Message-ID: <871pl22lcw.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.120.205 X-Source-L: No X-Exim-ID: 1vTPlR-00000001gf2-2hVj X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-120-205.hlrn.qwest.net (bapiya) [97.122.120.205]:53868 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfJahwueafKHKD2Kn+B5Xo/V+jo9+QmQmBsf8gMXMX/ccrON82rhwxdZMuYUUifnrZJ5QxD/xz9hdfAdR0e99Ln0j+BIYRNx8LqnYuojNvDot80lXw6Dp cBfQwM+YW31IAKDnqpT9XR1pChhtRA1nECthFQGzdrH0KNe33DviM+ZiJSR06X/Q+STlHmiBB2t7NfuxhXljXMb351vJJ450I58= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Jason" == Jason Merrill writes: >> IIRC gdb and gcc don't really agree on formatting. Someone who knows >> the gcc style well would have to go through all the settings to see. Jason> How does this file differ from contrib/clang-format? I finally got around to comparing the two. The proposed gdb file seems more complete -- it has many more settings. The gcc file mentions clang-format 7.0.1, but the gdb one was most recently tested with a minimum version of clang-format 18. Leaving aside the settings that only appear in the gdb file, gdb and gcc differ on a few: * BraceWrapping->AfterNamespace. gcc uses false but gdb doesn't use a custom setting here and relies on BreakBeforeBraces=true. * ForEachMacros (gdb removed all such macros during C++ification, but it wouldn't hurt to share this list) * ColumnLimit. gdb uses 79, gcc uses 80. This is probably unimportant. * AlignEscapedNewlines: gdb uses Left, gcc uses Right. Could go either way on this one. * AlwaysBreakTemplateDeclarations: gdb uses Yes, gcc uses MultiLine. I believe that the essence of the GNU style is that vertical space is free. Anyway these are closer than I thought. Only programmers could possibly notice the differences. Tom