From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id B0B973858429; Fri, 29 Jul 2022 12:34:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B0B973858429 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E40C11063; Fri, 29 Jul 2022 05:34:48 -0700 (PDT) Received: from [10.2.78.65] (unknown [10.2.78.65]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4BD153F73D; Fri, 29 Jul 2022 05:34:47 -0700 (PDT) Message-ID: <6388d619-97da-5acb-cac4-53e2119b4fed@foss.arm.com> Date: Fri, 29 Jul 2022 13:34:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Setting up editors for the GNU/GCC coding style? Content-Language: en-GB To: Iannetta Paul , Alexander Monakov Cc: gcc@gcc.gnu.org, Gcc References: From: Richard Earnshaw In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3490.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2022 12:34:50 -0000 On 28/07/2022 22:43, Iannetta Paul wrote: > About configuring recent editors to follow the GNU coding style, I don't > really know but it should always be possible to register a hook that > will run `indent` when the file is saved. I don't think that's a good idea. It will result in quite a lot of minor changes that will just make diffs confused. We do have a style, but not everything is exactly as GNU indent would lay it out (plus GNU indent says quite clearly that it can't handle C++). R.