dotfiles/home/clang-format

29 lines
931 B
Text

BasedOnStyle: Google
AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
AlignConsecutiveBitFields: true
AlignConsecutiveMacros: true
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: true
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
BinPackArguments: false
BinPackParameters: false
# BreakBeforeBinaryOperators: NonAssignment # TODO: enable on clang-format v20
BreakBeforeBraces: WebKit
# BreakBinaryOperations: OnePerLine # TODO: enable on clang-format v20
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
ContinuationIndentWidth: 8
DerivePointerAlignment: false
IndentCaseLabels: false
IndentPPDirectives: AfterHash
IndentWidth: 4
PPIndentWidth: 2
PackConstructorInitializers: CurrentLine
PointerAlignment: Right
ReferenceAlignment: Pointer
SeparateDefinitionBlocks: Always
SortUsingDeclarations: true
SpaceAfterTemplateKeyword: false