From 039b8782d4794f34c5f0219d8a8d21f6e21d74f1 Mon Sep 17 00:00:00 2001 From: Eugene Kosov Date: Wed, 12 Jun 2019 22:36:43 +0300 Subject: MDEV-13631 Make use of clang-format Explicitly mention every options in .clang-format to protect us from possible future changes. Remove separate InnoDB style. Change style to look more like this script: for x in $@ do indent -kr -bl -bli0 -l79 -i2 -nut -c48 -dj -cp0 $x sed -ri -e 's/ = /= /g'\ -e '/switch.*\)$/{N;s/\n[ ]+/ /}' $x done Significant different is that 'switch' and '{' are put on different lines because it's impossible in clang-format to set formatting rules just for 'switch' statement. --- storage/innobase/.clang-format | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 storage/innobase/.clang-format (limited to 'storage') diff --git a/storage/innobase/.clang-format b/storage/innobase/.clang-format deleted file mode 100644 index f7a72f3cf24..00000000000 --- a/storage/innobase/.clang-format +++ /dev/null @@ -1,10 +0,0 @@ -UseTab: Always -TabWidth: 8 -IndentWidth: 8 -BreakBeforeBinaryOperators: All -PointerAlignment: Left -AlwaysBreakAfterReturnType: TopLevel -BreakBeforeBraces: Custom -BraceWrapping: - AfterFunction: true -AccessModifierOffset: -8 -- cgit v1.2.1