From 25a7829788eceedd76d61d9511c7e851fe18d058 Mon Sep 17 00:00:00 2001 From: Blendi Date: Thu, 18 Jun 2026 22:28:35 +0200 Subject: [PATCH] add formatter; not quite there yet, not used yet --- .clang-format | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..54a6344 --- /dev/null +++ b/.clang-format @@ -0,0 +1,39 @@ +BasedOnStyle: LLVM + +PointerAlignment: Left +DerivePointerAlignment: false + +UseTab: ForIndentation +IndentWidth: 4 +TabWidth: 4 + +InsertNewlineAtEOF: true +LineEnding: LF + +ColumnLimit: 0 + +BreakBeforeBraces: Attach +SpaceBeforeParens: ControlStatements + +SortIncludes: false +IncludeBlocks: Preserve + +AllowShortIfStatementsOnASingleLine: AllIfsAndElse +AllowShortLoopsOnASingleLine: true +AllowShortFunctionsOnASingleLine: All +AllowShortBlocksOnASingleLine: Always + +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignConsecutiveMacros: None +AlignOperands: false +AlignTrailingComments: false + +ContinuationIndentWidth: 4 + +IndentPPDirectives: None +IndentCaseLabels: true +IndentGotoLabels: true + +BinPackArguments: false +BinPackParameters: false