-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
52 lines (43 loc) · 1.07 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
# Clang format - Will describe how we want the code to be formatted.
---
BasedOnStyle: Microsoft
IndentWidth: 4
TabWidth: 4
ColumnLimit: 120
UseTab: Never
# Overall Alignment
AlignOperands: Align
AlignAfterOpenBracket: Align
AllowAllArgumentsOnNextLine: false
AlignConsecutiveAssignments: None
AlignConsecutiveDeclarations: true
BreakStringLiterals: true
BreakBeforeBinaryOperators: true
PenaltyBreakAssignment: 60
# Comments
AlignTrailingComments: true
ReflowComments: true
# Macro
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: true
AcrossComments: false
# Function
AllowAllParametersOfDeclarationOnNextLine: false
BinPackArguments: false
BinPackParameters: false
AllowShortFunctionsOnASingleLine: true
IndentPPDirectives: BeforeHash
# Control Statements (if and switch)
AllowShortIfStatementsOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
IndentCaseLabels: false
IndentCaseBlocks: false
# Braces
BraceWrapping:
AfterCaseLabel: true
# Struct and bitfields
AlignConsecutiveBitFields: true
# Spaces
SpaceInEmptyBlock: true
SpacesInContainerLiterals: true