summaryrefslogtreecommitdiffstats
path: root/server/.clang-format
diff options
context:
space:
mode:
Diffstat (limited to 'server/.clang-format')
-rw-r--r--server/.clang-format321
1 files changed, 321 insertions, 0 deletions
diff --git a/server/.clang-format b/server/.clang-format
new file mode 100644
index 0000000..8e74797
--- /dev/null
+++ b/server/.clang-format
@@ -0,0 +1,321 @@
1---
2Language: Cpp
3AlignAfterOpenBracket: true
4AccessModifierOffset: -2
5AlignArrayOfStructures: None
6AlignConsecutiveAssignments:
7 Enabled: false
8 AcrossEmptyLines: false
9 AcrossComments: false
10 AlignCompound: false
11 AlignFunctionDeclarations: false
12 AlignFunctionPointers: false
13 PadOperators: true
14AlignConsecutiveBitFields:
15 Enabled: false
16 AcrossEmptyLines: false
17 AcrossComments: false
18 AlignCompound: false
19 AlignFunctionDeclarations: false
20 AlignFunctionPointers: false
21 PadOperators: false
22AlignConsecutiveDeclarations:
23 Enabled: false
24 AcrossEmptyLines: false
25 AcrossComments: false
26 AlignCompound: false
27 AlignFunctionDeclarations: true
28 AlignFunctionPointers: false
29 PadOperators: false
30AlignConsecutiveMacros:
31 Enabled: false
32 AcrossEmptyLines: false
33 AcrossComments: false
34 AlignCompound: false
35 AlignFunctionDeclarations: false
36 AlignFunctionPointers: false
37 PadOperators: false
38AlignConsecutiveShortCaseStatements:
39 Enabled: false
40 AcrossEmptyLines: false
41 AcrossComments: false
42 AlignCaseArrows: false
43 AlignCaseColons: false
44AlignConsecutiveTableGenBreakingDAGArgColons:
45 Enabled: false
46 AcrossEmptyLines: false
47 AcrossComments: false
48 AlignCompound: false
49 AlignFunctionDeclarations: false
50 AlignFunctionPointers: false
51 PadOperators: false
52AlignConsecutiveTableGenCondOperatorColons:
53 Enabled: false
54 AcrossEmptyLines: false
55 AcrossComments: false
56 AlignCompound: false
57 AlignFunctionDeclarations: false
58 AlignFunctionPointers: false
59 PadOperators: false
60AlignConsecutiveTableGenDefinitionColons:
61 Enabled: false
62 AcrossEmptyLines: false
63 AcrossComments: false
64 AlignCompound: false
65 AlignFunctionDeclarations: false
66 AlignFunctionPointers: false
67 PadOperators: false
68AlignEscapedNewlines: Right
69AlignOperands: Align
70AlignTrailingComments:
71 AlignPPAndNotPP: true
72 Kind: Always
73 OverEmptyLines: 0
74AllowAllArgumentsOnNextLine: true
75AllowAllParametersOfDeclarationOnNextLine: true
76AllowBreakBeforeNoexceptSpecifier: Never
77AllowBreakBeforeQtProperty: false
78AllowShortBlocksOnASingleLine: Never
79AllowShortCaseExpressionOnASingleLine: true
80AllowShortCaseLabelsOnASingleLine: false
81AllowShortCompoundRequirementOnASingleLine: true
82AllowShortEnumsOnASingleLine: true
83AllowShortFunctionsOnASingleLine: All
84AllowShortIfStatementsOnASingleLine: Never
85AllowShortLambdasOnASingleLine: All
86AllowShortLoopsOnASingleLine: false
87AllowShortNamespacesOnASingleLine: false
88AlwaysBreakAfterDefinitionReturnType: None
89AlwaysBreakBeforeMultilineStrings: false
90AttributeMacros:
91 - __capability
92BinPackArguments: true
93BinPackLongBracedList: true
94BinPackParameters: BinPack
95BitFieldColonSpacing: Both
96BracedInitializerIndentWidth: -1
97BraceWrapping:
98 AfterCaseLabel: true
99 AfterClass: true
100 AfterControlStatement: Always
101 AfterEnum: true
102 AfterExternBlock: true
103 AfterFunction: true
104 AfterNamespace: false
105 AfterObjCDeclaration: true
106 AfterStruct: true
107 AfterUnion: true
108 BeforeCatch: true
109 BeforeElse: true
110 BeforeLambdaBody: true
111 BeforeWhile: true
112 IndentBraces: false
113 SplitEmptyFunction: true
114 SplitEmptyRecord: true
115 SplitEmptyNamespace: true
116BreakAdjacentStringLiterals: true
117BreakAfterAttributes: Leave
118BreakAfterJavaFieldAnnotations: false
119BreakAfterOpenBracketBracedList: true
120BreakAfterOpenBracketFunction: true
121BreakAfterOpenBracketIf: false
122BreakAfterOpenBracketLoop: false
123BreakAfterOpenBracketSwitch: false
124BreakAfterReturnType: None
125BreakArrays: true
126BreakBeforeBinaryOperators: NonAssignment
127BreakBeforeCloseBracketBracedList: true
128BreakBeforeCloseBracketFunction: false
129BreakBeforeCloseBracketIf: false
130BreakBeforeCloseBracketLoop: false
131BreakBeforeCloseBracketSwitch: false
132BreakBeforeConceptDeclarations: Always
133BreakBeforeBraces: Custom
134BreakBeforeInlineASMColon: OnlyMultiline
135BreakBeforeTemplateCloser: false
136BreakBeforeTernaryOperators: true
137BreakBinaryOperations: Never
138BreakConstructorInitializers: BeforeColon
139BreakFunctionDefinitionParameters: false
140BreakInheritanceList: BeforeColon
141BreakStringLiterals: true
142BreakTemplateDeclarations: Yes
143ColumnLimit: 80
144CommentPragmas: '^ IWYU pragma:'
145CompactNamespaces: false
146ConstructorInitializerIndentWidth: 2
147ContinuationIndentWidth: 2
148Cpp11BracedListStyle: AlignFirstComment
149DerivePointerAlignment: false
150DisableFormat: false
151EmptyLineAfterAccessModifier: Never
152EmptyLineBeforeAccessModifier: LogicalBlock
153EnumTrailingComma: Leave
154ExperimentalAutoDetectBinPacking: false
155FixNamespaceComments: true
156ForEachMacros:
157 - foreach
158 - Q_FOREACH
159 - BOOST_FOREACH
160IfMacros:
161 - KJ_IF_MAYBE
162IncludeBlocks: Preserve
163IncludeCategories:
164 - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
165 Priority: 2
166 SortPriority: 0
167 CaseSensitive: false
168 - Regex: '^(<|"(gtest|gmock|isl|json)/)'
169 Priority: 3
170 SortPriority: 0
171 CaseSensitive: false
172 - Regex: '.*'
173 Priority: 1
174 SortPriority: 0
175 CaseSensitive: false
176IncludeIsMainRegex: '(Test)?$'
177IncludeIsMainSourceRegex: ''
178IndentAccessModifiers: false
179IndentCaseBlocks: false
180IndentCaseLabels: false
181IndentExportBlock: true
182IndentExternBlock: AfterExternBlock
183IndentGotoLabels: true
184IndentPPDirectives: None
185IndentRequiresClause: true
186IndentWidth: 2
187IndentWrappedFunctionNames: false
188InsertBraces: false
189InsertNewlineAtEOF: false
190InsertTrailingCommas: None
191IntegerLiteralSeparator:
192 Binary: 0
193 BinaryMinDigitsInsert: 0
194 BinaryMaxDigitsRemove: 0
195 Decimal: 0
196 DecimalMinDigitsInsert: 0
197 DecimalMaxDigitsRemove: 0
198 Hex: 0
199 HexMinDigitsInsert: 0
200 HexMaxDigitsRemove: 0
201 BinaryMinDigits: 0
202 DecimalMinDigits: 0
203 HexMinDigits: 0
204JavaScriptQuotes: Leave
205JavaScriptWrapImports: true
206KeepEmptyLines:
207 AtEndOfFile: false
208 AtStartOfBlock: true
209 AtStartOfFile: true
210KeepFormFeed: false
211LambdaBodyIndentation: Signature
212LineEnding: DeriveLF
213MacroBlockBegin: ''
214MacroBlockEnd: ''
215MainIncludeChar: Quote
216MaxEmptyLinesToKeep: 1
217NamespaceIndentation: None
218NumericLiteralCase:
219 ExponentLetter: Leave
220 HexDigit: Leave
221 Prefix: Leave
222 Suffix: Leave
223ObjCBinPackProtocolList: Auto
224ObjCBlockIndentWidth: 2
225ObjCBreakBeforeNestedBlockParam: true
226ObjCSpaceAfterProperty: false
227ObjCSpaceBeforeProtocolList: true
228OneLineFormatOffRegex: ''
229PackConstructorInitializers: BinPack
230PenaltyBreakAssignment: 2
231PenaltyBreakBeforeFirstCallParameter: 19
232PenaltyBreakBeforeMemberAccess: 150
233PenaltyBreakComment: 300
234PenaltyBreakFirstLessLess: 120
235PenaltyBreakOpenParenthesis: 0
236PenaltyBreakScopeResolution: 500
237PenaltyBreakString: 1000
238PenaltyBreakTemplateDeclaration: 10
239PenaltyExcessCharacter: 1000000
240PenaltyIndentedWhitespace: 0
241PenaltyReturnTypeOnItsOwnLine: 60
242PointerAlignment: Left
243PPIndentWidth: -1
244QualifierAlignment: Leave
245ReferenceAlignment: Pointer
246ReflowComments: Always
247RemoveBracesLLVM: false
248RemoveEmptyLinesInUnwrappedLines: false
249RemoveParentheses: Leave
250RemoveSemicolon: false
251RequiresClausePosition: OwnLine
252RequiresExpressionIndentation: OuterScope
253SeparateDefinitionBlocks: Leave
254ShortNamespaceLines: 1
255SkipMacroDefinitionBody: false
256SortIncludes:
257 Enabled: true
258 IgnoreCase: false
259 IgnoreExtension: false
260SortJavaStaticImport: Before
261SortUsingDeclarations: LexicographicNumeric
262SpaceAfterCStyleCast: false
263SpaceAfterLogicalNot: false
264SpaceAfterOperatorKeyword: false
265SpaceAfterTemplateKeyword: true
266SpaceAroundPointerQualifiers: Default
267SpaceBeforeAssignmentOperators: true
268SpaceBeforeCaseColon: false
269SpaceBeforeCpp11BracedList: false
270SpaceBeforeCtorInitializerColon: true
271SpaceBeforeInheritanceColon: true
272SpaceBeforeJsonColon: false
273SpaceBeforeParens: ControlStatements
274SpaceBeforeParensOptions:
275 AfterControlStatements: true
276 AfterForeachMacros: true
277 AfterFunctionDefinitionName: false
278 AfterFunctionDeclarationName: false
279 AfterIfMacros: true
280 AfterNot: false
281 AfterOverloadedOperator: false
282 AfterPlacementOperator: true
283 AfterRequiresInClause: false
284 AfterRequiresInExpression: false
285 BeforeNonEmptyParentheses: false
286SpaceBeforeRangeBasedForLoopColon: true
287SpaceBeforeSquareBrackets: false
288SpaceInEmptyBraces: Never
289SpacesBeforeTrailingComments: 1
290SpacesInAngles: Never
291SpacesInContainerLiterals: true
292SpacesInLineCommentPrefix:
293 Minimum: 1
294 Maximum: -1
295SpacesInParens: Never
296SpacesInParensOptions:
297 ExceptDoubleParentheses: false
298 InCStyleCasts: false
299 InConditionalStatements: false
300 InEmptyParentheses: false
301 Other: false
302SpacesInSquareBrackets: false
303Standard: Latest
304StatementAttributeLikeMacros:
305 - Q_EMIT
306StatementMacros:
307 - Q_UNUSED
308 - QT_REQUIRE_VERSION
309TableGenBreakInsideDAGArg: DontBreak
310TabWidth: 8
311UseTab: Never
312VerilogBreakBetweenInstancePorts: true
313WhitespaceSensitiveMacros:
314 - BOOST_PP_STRINGIZE
315 - CF_SWIFT_NAME
316 - NS_SWIFT_NAME
317 - PP_STRINGIZE
318 - STRINGIZE
319WrapNamespaceBodyWithEmptyLines: Leave
320...
321