From 6bd71656eb9fa6b6972795b80d048258dc158047 Mon Sep 17 00:00:00 2001 From: Alejandro Cabeza Romero Date: Wed, 4 Feb 2026 15:50:54 +0100 Subject: [PATCH] Add format options file. --- .clang-format | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..2ae4aa3 --- /dev/null +++ b/.clang-format @@ -0,0 +1,24 @@ +BasedOnStyle: LLVM + +IndentWidth: 4 +ColumnLimit: 120 + +IndentAccessModifiers: false +AccessModifierOffset: -4 + +AlignAfterOpenBracket: BlockIndent +BinPackParameters: false +BinPackArguments: false + +AllowAllParametersOfDeclarationOnNextLine: false +PenaltyBreakBeforeFirstCallParameter: 1 + +PointerAlignment: Left +ReferenceAlignment: Left + +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false + +BreakAfterReturnType: None +PenaltyReturnTypeOnItsOwnLine: 1000