-
Notifications
You must be signed in to change notification settings - Fork 7
/
clang-format.txt
64 lines (48 loc) · 1.31 KB
/
clang-format.txt
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
BasedOnStyle: Microsoft
# Allow double brackets such as std::vector<std::vector<int>>.
Standard: Cpp11
# Indent 4 spaces at a time.
IndentWidth: 4
# Keep lines under 120 columns long.
SortIncludes: false
BinPackParameters: false
# Always break before braces
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
# Keeps extern "C" blocks unindented.
AfterExternBlock: false
BeforeLambdaBody: false
# Lambda body indentation
LambdaBodyIndentation: OuterScope
# Indent case labels.
IndentCaseLabels: false
# Left-align pointers and references
PointerAlignment: Left
# Use 0 space negative offset for access modifiers
AccessModifierOffset: -4
AllowShortCaseLabelsOnASingleLine: false
# Useful for spacing out functions in classes
KeepEmptyLinesAtTheStartOfBlocks: true
# Indent nested PP directives.
IndentPPDirectives: AfterHash
# Include blocks style
IncludeBlocks: Preserve
UseTab: Always
BreakConstructorInitializers: BeforeComma
AlignConsecutiveMacros: AcrossEmptyLines
SpacesInLineCommentPrefix:
Maximum: 0