-
Notifications
You must be signed in to change notification settings - Fork 25
/
.clang-format
194 lines (193 loc) · 5.78 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
---
Language: Cpp
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Right
AlignConsecutiveMacros: false
# BDE: RightAlignContinuations: true
AlignConsecutiveAssignments:
Enabled: true
AlignCompound: true
PadOperators: true
AlignConsecutiveBitFields: false
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: false
# BDE: AlignConsecutiveFunctionsAndData: false
# BDE: AlignedDeclaratorsPattern: '^[ds]_'
# BDE: AlignConsecutiveDeclarationsGutter: 1
AlignEscapedNewlines: Right
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortLambdasOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
# BDE: AllowShortNamespacesOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
# BDE: AlwaysBreakAfterInline: true
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterCaseLabel: false
AfterClass: true
AfterControlStatement: MultiLine
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 79
CommentPragmas: '^ ======'
# - '^ class'
# - '^ struct'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: true
# BDE: DecltypeMacro: BSLS_COMPILERFEATURES_FORWARD_REF
# BDE: InlineMacro: BSLS_PLATFORM_AGGRESSIVE_INLINE
DerivePointerAlignment: false
# BDE: DeriveReferenceAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '<bsl_([A-Za-z0-9.\Q/-_\E])+\.h>'
Priority: 7
SortPriority: 0
- Regex: '<bsl([A-Za-z0-9.\Q/-_\E])+\.h>'
Priority: 6
SortPriority: 0
- Regex: '<bdl([A-Za-z0-9.\Q/-_\E])+\.h>'
Priority: 5
SortPriority: 0
- Regex: '<bde([A-Za-z0-9.\Q/-_\E])+\.h>'
Priority: 4
SortPriority: 0
- Regex: '<bce([A-Za-z0-9.\Q/-_\E])+\.h>'
Priority: 3
SortPriority: 0
- Regex: '<nts([A-Za-z0-9.\Q/-_\E])+\.h>'
Priority: 2
SortPriority: 0
- Regex: '<ntc([A-Za-z0-9.\Q/-_\E])+\.h>'
Priority: 1
SortPriority: 0
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainSourceRegex: ''
IndentCaseLabels: false
IndentCaseBlocks: false
IndentGotoLabels: true
# BDE: IndentCommentAfterFunctionDeclaration: true
# BDE: IndentCommentAfterTagDeclaration: true
# BDE: CaseLabelOffset: 2
# BDE: KeepCenteredComments: false
# BDE: CenterBanners: true
# BDE: CenterBannersAtIndentWidth: false
# BDE: RightAlignCommentRETURN: true
# BDE: RightAlignControlFlowComments: true
# BDE: InsertSpaceBeforeFirstAttachedCommentWord: false
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
# BDE: LineFormatAlgorithm: BDE
# BDE: BDENonFunctionIdentifierPattern: '^BSLMF_.*|(^|_)ASSERT$'
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakOpenParenthesis: 0
PenaltyBreakAssignment: 0
# BDE: PenaltyBreakAroundNew: 110
PenaltyBreakBeforeFirstCallParameter: 0
# BDE: PenaltyBreakBeforeLoneCallParameter: 85
# BDE: PenaltyBreakBinaryOperator: 26
PenaltyBreakComment: 30000
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 6000000
PointerAlignment: Left
ReferenceAlignment: Left
ReflowComments: false
SortIncludes: true
# BDE: SortIncludesComparisonStyle: Alphanumeric
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
Standard: c++03
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 4
UseCRLF: false
UseTab: Never
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
...