generated from Nigh/pico-scheduler-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
57 lines (57 loc) · 1.82 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
{
Language: Cpp,
BasedOnStyle: WebKit,
AlignAfterOpenBracket: Align,
# may cause some problem while inline comment after a array object
AlignArrayOfStructures: Right,
AlignConsecutiveBitFields: Consecutive,
AlignEscapedNewlines: DontAlign,
BreakBeforeBinaryOperators: NonAssignment,
AlignOperands: Align,
AlignTrailingComments: true,
PointerAlignment: Left,
AllowShortBlocksOnASingleLine: Always,
AllowShortCaseLabelsOnASingleLine: true,
AllowShortIfStatementsOnASingleLine: WithoutElse,
BitFieldColonSpacing: After,
BreakConstructorInitializers: AfterColon,
BreakInheritanceList: AfterColon,
Cpp11BracedListStyle: false,
BreakBeforeBraces: Custom,
BraceWrapping:
{
AfterCaseLabel: false,
AfterStruct: false,
SplitEmptyFunction: false,
AfterFunction: false,
BeforeElse: false,
BeforeWhile: false,
},
IndentCaseBlocks: false,
IndentCaseLabels: true,
IndentPPDirectives: BeforeHash,
UseTab: ForContinuationAndIndentation,
IndentWidth: 4,
TabWidth: 4,
SpaceBeforeParens: Custom,
SpaceBeforeParensOptions:
{
AfterControlStatements: false,
AfterFunctionDeclarationName: false,
AfterFunctionDefinitionName: false,
BeforeNonEmptyParentheses: false,
},
SpaceBeforeSquareBrackets: false,
SpaceInEmptyBlock: false,
SpaceInEmptyParentheses: false,
SpacesInCStyleCastParentheses: false,
SpacesInConditionalStatement: false,
SpacesInParentheses: false,
SpacesInSquareBrackets: false,
MaxEmptyLinesToKeep: 1,
SpaceAfterCStyleCast: false,
SpaceAfterLogicalNot: false,
SpaceBeforeAssignmentOperators: true,
SpaceBeforeCaseColon: false,
SortIncludes: false,
}