From 93775352052d635dddedec9e26b3c89a8c5c4298 Mon Sep 17 00:00:00 2001 From: Andreas Fuchs Date: Fri, 26 Apr 2024 15:23:44 +0200 Subject: [PATCH] Add clang-format style for project This adds a .clang-format file for the project. Signed-off-by: Andreas Fuchs --- .clang-format | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..0869d3f04 --- /dev/null +++ b/.clang-format @@ -0,0 +1,16 @@ +# SPDX-FileCopyrightText: Copyright (c) 2023-2024 Infineon Technologies AG +# +# SPDX-License-Identifier: BSD-2-clause + +--- + +BasedOnStyle: GNU + +IndentWidth: 4 +ColumnLimit: 100 +BreakBeforeBraces: Attach +SpaceBeforeParens: ControlStatementsExceptControlMacros +AlignConsecutiveMacros: + Enabled: true + AcrossEmptyLines: true + AcrossComments: false