38 lines
965 B
YAML
38 lines
965 B
YAML
# Reformat all source files from the root directory with:
|
|
# clang-format -i $(find . -name '*.[ch]')
|
|
---
|
|
Language: Cpp
|
|
BasedOnStyle: LLVM
|
|
|
|
AlignAfterOpenBracket: DontAlign
|
|
AlignConsecutiveAssignments: None
|
|
AllowShortBlocksOnASingleLine: false
|
|
AllowShortEnumsOnASingleLine: true
|
|
AllowShortFunctionsOnASingleLine: None
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
AlwaysBreakAfterDefinitionReturnType: true
|
|
BreakBeforeBinaryOperators: NonAssignment
|
|
BreakBeforeBraces: Custom
|
|
BreakConstructorInitializers: AfterColon
|
|
BraceWrapping:
|
|
AfterControlStatement: false
|
|
AfterEnum: false
|
|
AfterFunction: true
|
|
AfterStruct: false
|
|
AfterUnion: false
|
|
BeforeElse: false
|
|
ColumnLimit: 0
|
|
ContinuationIndentWidth: 16
|
|
Cpp11BracedListStyle: false
|
|
IncludeBlocks: Preserve
|
|
IndentCaseLabels: true
|
|
IndentWidth: 8
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
MaxEmptyLinesToKeep: 2
|
|
SortIncludes: true
|
|
SpaceAfterCStyleCast: true
|
|
SpacesBeforeTrailingComments: 0
|
|
TabWidth: 8
|
|
UseTab: Always
|
|
...
|