| 1 | # |
| 2 | # SPDX-FileCopyrightText: Copyright 2024, 2026 Arm Limited and/or its affiliates <open-source-office@arm.com> |
| 3 | # |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | # |
| 6 | |
| 7 | # Indicates this is the top-level EditorConfig. |
| 8 | root = true |
| 9 | |
| 10 | # Apply these settings to all files. |
| 11 | [*] |
| 12 | charset = utf-8 |
| 13 | end_of_line = lf |
| 14 | indent_size = 4 |
| 15 | indent_style = space |
| 16 | insert_final_newline = true |
| 17 | trim_trailing_whitespace = true |
| 18 | |
| 19 | # Avoid conflict with formatters. |
| 20 | [*.{c,h,cpp,hpp,md}] |
| 21 | indent_size = unset |
| 22 | |
| 23 | # Override settings. |
| 24 | [*.{json,yml,yaml}] |
| 25 | indent_size = 2 |
| 26 | |
| 27 | # YAML files as well. |
| 28 | [.clang-{tidy,format}] |
| 29 | indent_size = 2 |
| 30 | |
| 31 | # Override settings. |
| 32 | [LICENSES/*] |
| 33 | indent_size = unset |
| 34 | |
| 35 | # Override settings. |
| 36 | [experimental/ops/**/{CMakeLists.txt,*.cmake,*.cmake.in}] |
| 37 | indent_size = unset |