-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
65 lines (47 loc) · 1.57 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
---
# The extra indent or outdent of access modifiers
AccessModifierOffset: -4
# Align parameters on the open bracket
AlignAfterOpenBracket: Align
# Disallows contracting simple braced statements to a single line
AllowShortBlocksOnASingleLine: 'false'
# 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; cannot be put on a single line
AllowShortIfStatementsOnASingleLine: 'false'
# While (true) continue; cannot be put on a single line
AllowShortLoopsOnASingleLine: 'false'
# Break after the template<...> of a template declaration.
AlwaysBreakTemplateDeclarations: 'true'
# Configure each individual brace in BraceWrapping
BreakBeforeBraces: 'Custom'
AlwaysBreakTemplateDeclarations: 'true'
# Control of individual brace wrapping cases
BraceWrapping: {
AfterClass: 'false'
AfterControlStatement: 'false'
AfterEnum : 'false'
AfterFunction : 'false'
AfterNamespace : 'false'
AfterStruct : 'false'
AfterUnion : 'false'
BeforeCatch : 'false'
BeforeElse : 'false'
IndentBraces : 'false'
}
# The column limit
ColumnLimit: '100'
# The number of columns to use for indentation.
IndentWidth: '4'
# Targeted language
Language: Cpp
# No indentation for namespaces.
NamespaceIndentation: None
# Pointer is aligned to right side
PointerAlignment: Right
BreakBeforeBinaryOperators: All
# High penalty to avoid line break just after return type
PenaltyReturnTypeOnItsOwnLine: 10000
SortIncludes: 'true'