-
Notifications
You must be signed in to change notification settings - Fork 7
/
.clang-format
65 lines (50 loc) · 1.26 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
BasedOnStyle: Google
IndentWidth: 4
TabWidth: 4
ColumnLimit: 120
Language: Cpp
Standard: Latest
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '(<|"mbed)'
Priority: 0
SortPriority: 0
- Regex: '"(drivers|rtos|events|platform|hal)'
Priority: 2
SortPriority: 0
- Regex: "PinNames.h"
Priority: 1
SortPriority: 0
- Regex: '"(connectivity|features|storage|ble)'
Priority: 3
SortPriority: 0
AccessModifierOffset: -2
Cpp11BracedListStyle: true
DerivePointerAlignment: false
PointerAlignment: Right
AlignAfterOpenBracket: true
AlignConsecutiveAssignments: true
FixNamespaceComments: true
IndentCaseLabels: true
AlignEscapedNewlines: Right
SpacesBeforeTrailingComments: 3
AlignTrailingComments: true
ReflowComments: true
AlignConsecutiveMacros: true
NamespaceIndentation: Inner
SpaceBeforeCpp11BracedList: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: false
UseTab: Always
KeepEmptyLinesAtTheStartOfBlocks: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortBlocksOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterFunction: true
AfterEnum: true
AfterNamespace: false
BeforeLambdaBody: false
IndentPPDirectives: BeforeHash