add an untested, but likely usable clang-format configuration file (from matthias buhr)
This commit is contained in:
parent
48c70b60d8
commit
5c0f11970c
25
tools/clang-format
Normal file
25
tools/clang-format
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
Language: Cpp
|
||||||
|
AlignAfterOpenBracket: 'true'
|
||||||
|
AlignTrailingComments: 'true'
|
||||||
|
AlwaysBreakTemplateDeclarations: 'true'
|
||||||
|
AllowShortBlocksOnASingleLine: 'false'
|
||||||
|
AllowShortCaseLabelsOnASingleLine: 'false'
|
||||||
|
AllowShortFunctionsOnASingleLine: All
|
||||||
|
AllowShortIfStatementsOnASingleLine: 'false'
|
||||||
|
AllowShortLoopsOnASingleLine: 'false'
|
||||||
|
AlwaysBreakAfterDefinitionReturnType: 'true'
|
||||||
|
BasedOnStyle: LLVM
|
||||||
|
BreakBeforeBraces: 'Linux'
|
||||||
|
BreakConstructorInitializersBeforeComma: 'true'
|
||||||
|
ColumnLimit: '100'
|
||||||
|
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
|
||||||
|
IndentCaseLabels: 'false'
|
||||||
|
NamespaceIndentation: 'None'
|
||||||
|
PenaltyReturnTypeOnItsOwnLine: '1'
|
||||||
|
PointerAlignment: Left
|
||||||
|
SpaceBeforeParens: Always
|
||||||
|
TabWidth: '2'
|
||||||
|
UseTab: ForIndentation
|
||||||
|
|
Loading…
Reference in New Issue
Block a user