Skip to content

Commit 5de08a5

Browse files
kevgssvoj
authored andcommitted
MDEV-13631 Make use of clang-format
Add .clang-format files to a root directory and to storage/innobase
1 parent cbb90f7 commit 5de08a5

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.clang-format

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
SpaceBeforeAssignmentOperators: false
2+
SpaceAfterCStyleCast: true
3+
4+
BreakBeforeBraces: Custom
5+
BraceWrapping:
6+
AfterClass: true
7+
AfterControlStatement: true
8+
AfterEnum: true
9+
AfterFunction: true
10+
AfterNamespace: true
11+
AfterStruct: true
12+
AfterUnion: true
13+
AfterExternBlock: true
14+
BeforeCatch: true
15+
BeforeElse: true
16+
SplitEmptyFunction: true
17+
SplitEmptyRecord: true
18+
SplitEmptyNamespace: true

storage/innobase/.clang-format

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
UseTab: Always
2+
TabWidth: 8
3+
IndentWidth: 8
4+
BreakBeforeBinaryOperators: All
5+
PointerAlignment: Left
6+
AlwaysBreakAfterReturnType: TopLevel
7+
BreakBeforeBraces: Custom
8+
BraceWrapping:
9+
AfterFunction: true
10+
AccessModifierOffset: -8

0 commit comments

Comments
 (0)