|
| 1 | +# Copyright 2025 Free Software Foundation, Inc. |
| 2 | +# |
| 3 | +# This program is free software; you can redistribute it and/or modify |
| 4 | +# it under the terms of the GNU General Public License as published by |
| 5 | +# the Free Software Foundation; either version 3 of the License, or |
| 6 | +# (at your option) any later version. |
| 7 | +# |
| 8 | +# This program is distributed in the hope that it will be useful, |
| 9 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | +# GNU General Public License for more details. |
| 12 | +# |
| 13 | +# You should have received a copy of the GNU General Public License |
| 14 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | + |
| 16 | +# This file helps editors auto-configure whitespace settings. |
| 17 | +# |
| 18 | +# See here for more information about the format and editor support: |
| 19 | +# |
| 20 | +# https://editorconfig.org/ |
| 21 | + |
| 22 | +# This file is common to the GCC and GDB/Binutils projects. If you |
| 23 | +# update one, please sync it with the other. |
| 24 | + |
| 25 | +# top-most EditorConfig file |
| 26 | +root = true |
| 27 | + |
| 28 | +[*] |
| 29 | +end_of_line = lf |
| 30 | +insert_final_newline = true |
| 31 | +tab_width = 8 |
| 32 | + |
| 33 | +# EditorConfig files |
| 34 | +[.editorconfig] |
| 35 | +charset = utf-8 |
| 36 | +trim_trailing_whitespace = true |
| 37 | + |
| 38 | +# Makefile |
| 39 | +[{Makefile,*.mk,*.am}*] |
| 40 | +indent_style = tab |
| 41 | +indent_size = 8 |
| 42 | +trim_trailing_whitespace = true |
| 43 | + |
| 44 | +# ChangeLogs |
| 45 | +[ChangeLog*] |
| 46 | +indent_style = tab |
| 47 | +indent_size = 8 |
| 48 | +trim_trailing_whitespace = true |
| 49 | +charset = utf-8 |
| 50 | + |
| 51 | +# C/C++ |
| 52 | +[*.{c,h,cc}] |
| 53 | +charset = utf-8 |
| 54 | +indent_style = tab |
| 55 | +indent_size = 2 |
| 56 | +trim_trailing_whitespace = true |
| 57 | + |
| 58 | +# GCC .def files. These are generally C fragments that get included |
| 59 | +# one or more times |
| 60 | +[gcc/**.def] |
| 61 | +charset = utf-8 |
| 62 | +indent_style = tab |
| 63 | +indent_size = 2 |
| 64 | +trim_trailing_whitespace = true |
| 65 | + |
| 66 | +# Texinfo files |
| 67 | +[*.texi] |
| 68 | +charset = utf-8 |
| 69 | +indent_size = 2 |
| 70 | +trim_trailing_whitespace = true |
| 71 | + |
| 72 | +# Expect / TCL |
| 73 | +[*.{exp,tcl}] |
| 74 | +indent_style = tab |
| 75 | +indent_size = 4 |
| 76 | +trim_trailing_whitespace = true |
| 77 | + |
| 78 | +# Python |
| 79 | +[*.py] |
| 80 | +indent_style = space |
| 81 | +indent_size = 4 |
| 82 | +trim_trailing_whitespace = true |
| 83 | + |
| 84 | +# Assembler |
| 85 | +[*.{s,S,asm}] |
| 86 | +indent_style = tab |
| 87 | +indent_size = 8 |
| 88 | +trim_trailing_whitespace = true |
| 89 | + |
| 90 | +# GCC Machine description files |
| 91 | +[gcc/config/**.md] |
| 92 | +indent_style = tab |
| 93 | +indent_size = 2 |
| 94 | +trim_trailing_whitespace = true |
| 95 | + |
| 96 | +# Awk |
| 97 | +[*.awk] |
| 98 | +indent_style = tab |
| 99 | +indent_size = 2 |
| 100 | +trim_trailing_whitespace = true |
| 101 | + |
| 102 | +# Autoconf |
| 103 | +[*.{ac,m4}] |
| 104 | +indent_style = tab |
| 105 | +indent_size = 2 |
| 106 | +trim_trailing_whitespace = true |
| 107 | + |
| 108 | +# Shell scripts |
| 109 | +[*.sh] |
| 110 | +indent_style = tab |
| 111 | +indent_size = 4 |
| 112 | +trim_trailing_whitespace = true |
| 113 | + |
| 114 | +# Ada |
| 115 | +[*.ad[bs]] |
| 116 | +indent_style = space |
| 117 | +indent_size = 3 |
| 118 | +trim_trailing_whitespace = true |
| 119 | + |
| 120 | +# D |
| 121 | +[*.d] |
| 122 | +indent_style = space |
| 123 | +indent_size = 4 |
| 124 | +trim_trailing_whitespace = true |
| 125 | + |
| 126 | +# Go |
| 127 | +[*.go] |
| 128 | +indent_style = tab |
| 129 | +indent_size = 8 |
| 130 | +trim_trailing_whitespace = true |
| 131 | + |
| 132 | +# Fortran |
| 133 | +[*.[Ff]90] |
| 134 | +indent_style = space |
| 135 | +indent_size = 2 |
| 136 | +trim_trailing_whitespace = true |
| 137 | + |
| 138 | +# Cobol |
| 139 | +[*.cbl] |
| 140 | +indent_style = space |
| 141 | +indent_size = 2 |
| 142 | +trim_trailing_whitespace = true |
0 commit comments