From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6au4MNzP0mgYeQ8AWB0awg (envelope-from ) for ; Tue, 23 Sep 2025 12:50:36 -0400 Received: by simark.ca (Postfix, from userid 112) id BB3941E0BA; Tue, 23 Sep 2025 12:50:36 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, 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 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 A48D81E04C for ; Tue, 23 Sep 2025 12:50:34 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4129F385701A for ; Tue, 23 Sep 2025 16:50:34 +0000 (GMT) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 2D6F43858C78; Tue, 23 Sep 2025 16:50:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2D6F43858C78 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2D6F43858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1758646208; cv=none; b=VPZjHarvQYcoWd2SSPZlAM0vZ3NVm/BcXRzOsWC58QV7/i6O1IURfNvoOnlItooSEqJxDDetGYICTacZEJP2r+sKMvNrvxwEiVj3Qk/yUY07NVpWblai64BE6zbFbzMVk/r/37b9HTTB0+qpd+DiD6XsiH+0v9U0ycyboPoL114= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1758646208; c=relaxed/simple; bh=sKRaD010NPanm1MbGTYd0VepExr5ppy5aVgN+J9WhE4=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=sdmVwqgG/aXiWQdt/C88ztUhvPfd1h+CSvgq3v9tTUZUsunFcvkRT/kdwt/DdMeuefkGsq8GL9d9006UXaOXHkdmO6iqIWtAWRQOC5OSuYdY4b5ZribjA32yQ4itDtW252KhlvIrasyYgz4THuTg96BXS7MV8B2JPSIJLQR8OkM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D6F43858C78 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 B5445FEC; Tue, 23 Sep 2025 09:49:59 -0700 (PDT) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.78.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 020523F694; Tue, 23 Sep 2025 09:50:06 -0700 (PDT) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org, binutils@sourceware.org, gdb-patches@sourceware.org Cc: jwakely@redhat.com, Richard Earnshaw Subject: [PATCH 1/1] toplevel: unify the GCC and GDB/binutils .editorconfig files Date: Tue, 23 Sep 2025 17:49:59 +0100 Message-ID: <20250923164959.565000-2-rearnsha@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250923164959.565000-1-rearnsha@arm.com> References: <20250923164959.565000-1-rearnsha@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Both GCC and GDB/binutils now have root editorconfig files. It would make sense to unify them as this sets the general tone for these projects. ChangeLog: * .editorconfig: Unify the GCC and GDB/binutils root config. --- .editorconfig | 122 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 113 insertions(+), 9 deletions(-) diff --git a/.editorconfig b/.editorconfig index af1a28411da..e5e9997f44f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,38 +1,142 @@ -# top-most EditorConfig file for gcc +# Copyright 2025 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# This file helps editors auto-configure whitespace settings. +# +# See here for more information about the format and editor support: +# +# https://editorconfig.org/ + +# This file is common to the GCC and GDB/Binutils projects. If you +# update one, please sync it with the other. + +# top-most EditorConfig file root = true [*] end_of_line = lf insert_final_newline = true +tab_width = 8 -[*.{h,cc}] +# EditorConfig files +[.editorconfig] charset = utf-8 -indent_style = tab -indent_size = 2 -tab_width = 8 trim_trailing_whitespace = true -[{Makefile,ChangeLog}*] +# Makefile +[{Makefile,*.mk,*.am}*] indent_style = tab indent_size = 8 trim_trailing_whitespace = true +# ChangeLogs [ChangeLog*] +indent_style = tab +indent_size = 8 +trim_trailing_whitespace = true +charset = utf-8 + +# C/C++ +[*.{c,h,cc}] charset = utf-8 +indent_style = tab +indent_size = 2 +trim_trailing_whitespace = true +# GCC .def files. These are generally C fragments that get included +# one or more times +[gcc/**.def] +charset = utf-8 +indent_style = tab +indent_size = 2 +trim_trailing_whitespace = true + +# Texinfo files [*.texi] charset = utf-8 indent_size = 2 -tab_width = 8 trim_trailing_whitespace = true +# Expect / TCL +[*.{exp,tcl}] +indent_style = tab +indent_size = 4 +trim_trailing_whitespace = true + +# Python [*.py] indent_style = space indent_size = 4 trim_trailing_whitespace = true -[*.exp] +# Assembler +[*.{s,S,asm}] +indent_style = tab +indent_size = 8 +trim_trailing_whitespace = true + +# GCC Machine description files +[gcc/config/**.md] +indent_style = tab +indent_size = 2 +trim_trailing_whitespace = true + +# Awk +[*.awk] +indent_style = tab +indent_size = 2 +trim_trailing_whitespace = true + +# Autoconf +[*.{ac,m4}] +indent_style = tab +indent_size = 2 +trim_trailing_whitespace = true + +# Shell scripts +[*.sh] indent_style = tab indent_size = 4 -tab_width = 8 +trim_trailing_whitespace = true + +# Ada +[*.ad[bs]] +indent_style = space +indent_size = 3 +trim_trailing_whitespace = true + +# D +[*.d] +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +# Go +[*.go] +indent_style = tab +indent_size = 8 +trim_trailing_whitespace = true + +# Fortran +[*.[Ff]90] +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true + +# Cobol +[*.cbl] +indent_style = space +indent_size = 2 trim_trailing_whitespace = true -- 2.43.0