chore: clang-format and formatting

This commit is contained in:
paulhorn
2026-06-21 19:59:09 +02:00
parent 9ba08bee98
commit 41c990cf57
5 changed files with 137 additions and 150 deletions
+48
View File
@@ -0,0 +1,48 @@
BasedOnStyle: LLVM
# Pointer/Reference alignment: int * p, void (* callback)(...)
PointerAlignment: Middle
ReferenceAlignment: Middle
# Line length
ColumnLimit: 100
# Return type on its own line
BreakAfterReturnType: All
# Params each on their own line
BinPackParameters: false
# Indentation
IndentWidth: 4
TabWidth: 4
UseTab: Never
ContinuationIndentWidth: 4
# Braces always on their own line (Allman style)
BreakBeforeBraces: Allman
# No blank line after opening {
KeepEmptyLinesAtTheStartOfBlocks: false
# Space after C-style cast: (uint32_t) x
SpaceAfterCStyleCast: true
# Spaces
SpaceInEmptyParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
# Allow single-line if without braces
AllowShortIfStatementsOnASingleLine: WithoutElse
# Include sorting
SortIncludes: CaseSensitive
IncludeBlocks: Regroup
# Short constructs
AllowShortFunctionsOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
# Comments
ReflowComments: true