Skip to content

Commit 372d996

Browse files
MorganaFutureMorganaFuture
andauthored
fix .clang-format according coding style (#2454)
Co-authored-by: MorganaFuture <andrewmochaslkyi@gmail.com>
1 parent 155e98c commit 372d996

File tree

1 file changed

+37
-8
lines changed

1 file changed

+37
-8
lines changed

.clang-format

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,58 @@ IndentWidth: 8
33
TabWidth: 8
44
UseTab: Always
55
ColumnLimit: 80
6-
BreakBeforeBraces: Linux
6+
BreakBeforeBraces: Custom
77
BraceWrapping:
88
AfterFunction: true
9+
AfterControlStatement: Never
10+
AfterCaseLabel: false
11+
AfterClass: false
12+
AfterEnum: false
13+
AfterNamespace: false
14+
AfterStruct: false
15+
AfterUnion: false
16+
BeforeCatch: true
17+
BeforeElse: true
18+
BeforeLambdaBody: false
19+
BeforeWhile: false
20+
RemoveBracesLLVM: true
921
PointerAlignment: Right
1022
ReferenceAlignment: Right
1123
AlignAfterOpenBracket: Align
12-
BinPackArguments: false
24+
BinPackArguments: true
1325
BinPackParameters: false
26+
AllowAllArgumentsOnNextLine: true
27+
ContinuationIndentWidth: 0
28+
IndentWrappedFunctionNames: false
29+
AllowAllParametersOfDeclarationOnNextLine: true
1430
SortIncludes: true
1531
IncludeBlocks: Regroup
1632
IncludeCategories:
17-
- Regex: '^<[a-z_]+\.h>'
33+
- Regex: '^<fcntl\.h>|^<signal\.h>|^<stdio\.h>|^<unistd\.h>|^<sys/.*\.h>'
1834
Priority: 1
19-
- Regex: '^<[a-z_]+>'
35+
- Regex: '^<[a-z_]+\.h>'
2036
Priority: 2
21-
- Regex: '^<boost/.*>'
37+
- Regex: '^<[a-z_]+>|^<chrono>|^<cstring>|^<fstream>|^<iostream>|^<thread>'
2238
Priority: 3
23-
- Regex: '^".*"'
39+
- Regex: '^<boost/.*>'
2440
Priority: 4
25-
AllowShortBlocksOnASingleLine: Never
41+
- Regex: '^<clickhouse/.*>|^<spdlog/.*>'
42+
Priority: 5
43+
- Regex: '^".*"'
44+
Priority: 6
45+
AllowShortBlocksOnASingleLine: Always
2646
AllowShortFunctionsOnASingleLine: None
27-
AllowShortIfStatementsOnASingleLine: Never
47+
AllowShortIfStatementsOnASingleLine: Never
48+
AllowShortLoopsOnASingleLine: false
49+
InsertBraces: false
2850
IndentCaseLabels: false
2951
AccessModifierOffset: -8
3052
Standard: Latest
3153
AlwaysBreakAfterReturnType: All
54+
SpaceAfterCStyleCast: false
55+
SpaceBeforeParens: ControlStatements
56+
AlignOperands: Align
57+
AlignConsecutiveDeclarations: false
58+
AlignConsecutiveAssignments: false
59+
AlignConsecutiveMacros: false
60+
DerivePointerAlignment: false

0 commit comments

Comments
 (0)