-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.clang-format
107 lines (85 loc) · 2.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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 120
Language: Cpp
# Strings to be interpreted as attributes/qualifers
AttributeMacros: []
# Macros
IndentPPDirectives: BeforeHash
PPIndentWidth: 2
# Macros to be interpreted as foreach loops
ForEachMacros: []
# Macros to be interpred as conditionals
IfMacros: []
# Include
IncludeBlocks: Preserve
SortIncludes: CaseInsensitive
# Using namespaces
SortUsingDeclarations: true
# Brace
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
SplitEmptyFunction: true
AfterControlStatement: Always
KeepEmptyLinesAtTheStartOfBlocks: false
SeparateDefinitionBlocks: Always
# Comment
ReflowComments: true
# Class
EmptyLineBeforeAccessModifier: LogicalBlock
EmptyLineAfterAccessModifier: Never
BreakInheritanceList: BeforeComma
BreakConstructorInitializers: BeforeComma
PackConstructorInitializers: Never
# Alignment
PointerAlignment: Left
ReferenceAlignment: Left
QualifierAlignment: Left
# Array Structure
AlignArrayOfStructures: Right
# Consecutive
AlignConsecutiveAssignments: AcrossComments
AlignConsecutiveBitFields: AcrossComments
AlignConsecutiveDeclarations: AcrossComments
AlignConsecutiveMacros: AcrossComments
# Operands
AlignOperands: AlignAfterOperator
BreakBeforeBinaryOperators: NonAssignment
# Bit fields
BitFieldColonSpacing: After
# Function
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: None
AlwaysBreakAfterReturnType: None
BinPackArguments: false
BinPackParameters: false
# Loop
AllowShortLoopsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
# String
AlwaysBreakBeforeMultilineStrings: true
BreakStringLiterals: false
# If Statement
AllowShortIfStatementsOnASingleLine: WithoutElse
# Switch Case
AllowShortCaseLabelsOnASingleLine: false
# Lambda
AllowShortLambdasOnASingleLine: All
# Enum
AllowShortEnumsOnASingleLine: false
# Template
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeConceptDeclarations: true