mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-12-30 14:40:47 +01:00
Add clang-format.
This commit is contained in:
parent
efa858c4cc
commit
8c4832f711
1 changed files with 42 additions and 0 deletions
42
.clang-format
Normal file
42
.clang-format
Normal file
|
@ -0,0 +1,42 @@
|
|||
BasedOnStyle: Google
|
||||
Language: Cpp
|
||||
ColumnLimit: 120
|
||||
IndentWidth: 4
|
||||
TabWidth: 4
|
||||
UseTab: Never
|
||||
SortIncludes: Never
|
||||
PPIndentWidth : 1
|
||||
IndentPPDirectives: AfterHash
|
||||
ReflowComments: true
|
||||
SpacesBeforeTrailingComments: 1
|
||||
AlignTrailingComments: true
|
||||
AlignAfterOpenBracket: Align
|
||||
AlignConsecutiveMacros:
|
||||
Enabled: true
|
||||
AcrossEmptyLines: true
|
||||
AcrossComments: true
|
||||
AlignConsecutiveAssignments:
|
||||
Enabled: true
|
||||
AcrossEmptyLines: false
|
||||
AcrossComments: true
|
||||
AlignCompound: true
|
||||
PadOperators: true
|
||||
AlignConsecutiveDeclarations:
|
||||
Enabled: true
|
||||
AcrossEmptyLines: false
|
||||
AcrossComments: true
|
||||
AlignEscapedNewlines: Left
|
||||
AccessModifierOffset: -2
|
||||
AlignArrayOfStructures: Right
|
||||
AlignOperands: Align
|
||||
AllowAllArgumentsOnNextLine: false
|
||||
AllowShortFunctionsOnASingleLine: Inline
|
||||
AllowShortBlocksOnASingleLine: Empty
|
||||
BreakBeforeBinaryOperators: None
|
||||
BinPackArguments: false
|
||||
BinPackParameters: false
|
||||
DerivePointerAlignment: false
|
||||
PenaltyBreakAssignment: 4
|
||||
PenaltyExcessCharacter: 4
|
||||
PenaltyBreakBeforeFirstCallParameter: 1
|
||||
PointerAlignment: Left
|
Loading…
Reference in a new issue