Add clang format specification
This commit is contained in:
parent
61716a2c77
commit
3b32bd539b
1 changed files with 27 additions and 0 deletions
27
.clang-format
Normal file
27
.clang-format
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
IndentWidth: 8
|
||||
TabWidth: 8
|
||||
ContinuationIndentWidth: 8
|
||||
UseTab: Always
|
||||
ColumnLimit: 100
|
||||
|
||||
AlignConsecutiveMacros: true
|
||||
AlignEscapedNewlines: Left
|
||||
AlignTrailingComments: true
|
||||
|
||||
AllowAllArgumentsOnNextLine: true
|
||||
AllowAllParametersOfDeclarationOnNextLine: true
|
||||
AllowShortFunctionsOnASingleLine: Empty
|
||||
|
||||
BreakBeforeBinaryOperators: None
|
||||
BreakStringLiterals: false
|
||||
|
||||
PenaltyExcessCharacter: 10
|
||||
PenaltyBreakBeforeFirstCallParameter: 999999
|
||||
PenaltyBreakAssignment: 10
|
||||
|
||||
MaxEmptyLinesToKeep: 1
|
||||
PointerAlignment: Right
|
||||
ReflowComments: true
|
||||
SortIncludes: true
|
||||
---
|
Loading…
Add table
Add a link
Reference in a new issue