-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
79 lines (79 loc) · 2.03 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
BasedOnStyle: LLVM
Language: Cpp
Standard: Auto
DisableFormat: false
UseCRLF: false
UseTab: Never
ColumnLimit: 120
IndentWidth: 4
PPIndentWidth: 2
AccessModifierOffset: -4
MaxEmptyLinesToKeep: 1
FixNamespaceComments: true
SortUsingDeclarations: true
BreakInheritanceList: BeforeComma
AlignAfterOpenBracket: BlockIndent
SortIncludes: Never
# AlignArrayOfStructures: Left
# AlignConsecutiveAssignments:
# Enabled: true
# AcrossEmptyLines: true
# AcrossComments: false
AlignConsecutiveBitFields:
Enabled: true
AcrossEmptyLines: true
AcrossComments: false
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: true
AcrossComments: false
AlignEscapedNewlines: Left
AlignOperands: AlignAfterOperator
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AlwaysBreakBeforeMultilineStrings : true
BraceWrapping:
AfterCaseLabel : false
AfterClass : true
AfterControlStatement : Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: false
SplitEmptyNamespace: true
BreakBeforeBraces: Custom
IndentAccessModifiers: false
IndentCaseBlocks: true
IndentCaseLabels: false
IndentExternBlock: AfterExternBlock
IndentGotoLabels: true
IndentPPDirectives: BeforeHash
# InsertTrailingCommas: Wrapped
LambdaBodyIndentation: Signature
NamespaceIndentation: All
PointerAlignment: Left
QualifierAlignment: Left
ReferenceAlignment: Right
ReflowComments: true
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpacesInConditionalStatement: true
SpacesInContainerLiterals: true