From 9c93210691d983831432f8d7ea4b5c52b7e8cc3f Mon Sep 17 00:00:00 2001 From: Alejandro Laguna Date: Fri, 10 Jul 2026 18:07:21 +0200 Subject: [PATCH] chore: add formatter rules --- .clang-format | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000000000000000000000000000000000..216ad4dbd5261a4d02421facc483a1a154c128a7 --- /dev/null +++ b/.clang-format @@ -0,0 +1,26 @@ +BasedOnStyle: LLVM + +IndentWidth: 4 +TabWidth: 4 +UseTab: Never + +ColumnLimit: 100 + +BreakBeforeBraces: Attach + +AllowShortIfStatementsOnASingleLine: AllIfsAndElse +AllowShortLoopsOnASingleLine: true +AllowShortFunctionsOnASingleLine: All + +IndentCaseLabels: true +SpaceBeforeParens: ControlStatements +PointerAlignment: Left + +SortIncludes: true +InsertBraces: true + +BraceWrapping: + AfterFunction: false + AfterControlStatement: false + AfterStruct: false + AfterEnum: false