add formatter; not quite there yet, not used yet

This commit is contained in:
2026-06-18 22:28:35 +02:00
parent 5710020e64
commit 25a7829788

39
.clang-format Normal file
View File

@@ -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