Skip to content
Permalink
Browse files

MDEV-13631 Make use of clang-format

Add .clang-format files to a root directory and to storage/innobase
  • Loading branch information...
kevgs authored and svoj committed Apr 11, 2019
1 parent cbb90f7 commit 5de08a53ef8567d9c316c5a9eb4eda0ed6a2b11e
Showing with 28 additions and 0 deletions.
  1. +18 −0 .clang-format
  2. +10 −0 storage/innobase/.clang-format
@@ -0,0 +1,18 @@
SpaceBeforeAssignmentOperators: false
SpaceAfterCStyleCast: true

BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
@@ -0,0 +1,10 @@
UseTab: Always
TabWidth: 8
IndentWidth: 8
BreakBeforeBinaryOperators: All
PointerAlignment: Left
AlwaysBreakAfterReturnType: TopLevel
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true
AccessModifierOffset: -8

0 comments on commit 5de08a5

Please sign in to comment.
You can’t perform that action at this time.