diff options
author | Eugene Kosov <claprix@yandex.ru> | 2019-06-12 22:36:43 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2019-06-12 22:36:43 +0300 |
commit | 039b8782d4794f34c5f0219d8a8d21f6e21d74f1 (patch) | |
tree | 23c08e4767204e5df7e8020eba18182a37fe2c67 /storage | |
parent | 7a7d9904e12335ee8b1eea9671138b3c469a3829 (diff) | |
download | mariadb-git-039b8782d4794f34c5f0219d8a8d21f6e21d74f1.tar.gz |
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.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/innobase/.clang-format | 10 |
1 files changed, 0 insertions, 10 deletions
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 |