kh1/.clang-format
Noah McQueen 9d1a4cc92b
think i found another split (#9)
* think i found another split

* added basic clang-format

* implemented requested changes
2023-10-24 05:25:38 +09:00

40 lines
833 B
YAML

IndentWidth: 4
UseTab: Never
ColumnLimit: 120
PointerAlignment: Left
AllowShortIfStatementsOnASingleLine: false
AllowShortBlocksOnASingleLine: false
BreakBeforeBraces: Custom
BraceWrapping:
# Place opening brace on next line if the statement is multi-line
# e.g.
# if (very
# long
# condition)
# {
AfterControlStatement: MultiLine
IndentCaseLabels: true
BreakBeforeBinaryOperators: NonAssignment
ExperimentalAutoDetectBinPacking: true
BinPackParameters: false
AlignAfterOpenBracket: BlockIndent
# Our include order is WIP so disable it
SortIncludes: false
IncludeCategories:
# common.h always comes first
- Regex: '^"common\.h"$'
Priority: 10
# everything else
- Regex: '.*'
Priority: 1
SortPriority: 0
AllowShortFunctionsOnASingleLine: None