-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.clang-format
49 lines (37 loc) · 1.16 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
---
# Align parameters on the open bracket
AlignAfterOpenBracket: Align
# Allows contracting simple braced statements to a single line
AllowShortBlocksOnASingleLine: 'true'
# Short case labels wont't be contracted to a single line
AllowShortCaseLabelsOnASingleLine: 'false'
# Merge all inline functions fitting on a single line
AllowShortFunctionsOnASingleLine: 'Inline'
# If (a) return; can be put on a single line
AllowShortIfStatementsOnASingleLine: 'true'
# Configure each individual brace in BraceWrapping
BreakBeforeBraces: 'Custom'
# Control of individual brace wrapping cases
BraceWrapping: {
AfterClass: 'true'
AfterControlStatement: 'false'
AfterEnum : 'true'
AfterFunction : 'false'
AfterNamespace : 'true'
AfterStruct : 'true'
AfterUnion : 'true'
BeforeCatch : 'false'
BeforeElse : 'true'
IndentBraces : 'false'
}
# The column limit
ColumnLimit: '100'
# The number of columns to use for indentation.
IndentWidth: '4'
# Targeted language
Language: Cpp
# Pointer is aligned to right side
PointerAlignment: Right
# High penalty to avoid line break just after return type
PenaltyReturnTypeOnItsOwnLine: 10000
SortIncludes: 'false'