-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.clang-format
41 lines (33 loc) · 995 Bytes
/
.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
# Don't align consecutive assignments or declarations.
# Example:
# int aaaa = 12;
# int b = 13;
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
# Use space for indentation instead of tab.
UseTab: Never
# Indentation handling.
IndentWidth: 4
AccessModifierOffset: -4
IndentCaseLabels: true
NamespaceIndentation: All
# Set to 0 to ensure that constructor initializers are always set to new line.
ColumnLimit: 0
# empty line handling
MaxEmptyLinesToKeep: 1
KeepEmptyLinesAtTheStartOfBlocks: false
# Brace Wrapping
BreakBeforeBraces: Allman
# Pointer and reference alignment style.
PointerAlignment: Left
# Spacing
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceAfterCStyleCast: false
# Alignment
AlignAfterOpenBracket: AlwaysBreak
BreakConstructorInitializers: AfterColon
ConstructorInitializerAllOnOneLineOrOnePerLine: false
# Short statement handling
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false