aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorLoïc Blot <loic.blot@unix-experience.fr>2017-04-06 15:27:47 +0200
committerLoïc Blot <loic.blot@unix-experience.fr>2017-04-06 15:27:47 +0200
commit00138a52d892b6f07d6f6d70c27bb9c61ee191c3 (patch)
tree9b5d2c7c1f3547e8601ef7fc7528571867d7b313 /.clang-format
parent48ce9c9b307ef340d21ecf00d623ac69cb841e09 (diff)
downloadminetest-00138a52d892b6f07d6f6d70c27bb9c61ee191c3.tar.gz
minetest-00138a52d892b6f07d6f6d70c27bb9c61ee191c3.tar.bz2
minetest-00138a52d892b6f07d6f6d70c27bb9c61ee191c3.zip
Clang format brace style fix
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format12
1 files changed, 11 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format
index 547df6a95..63d884a09 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,7 +1,17 @@
BasedOnStyle: LLVM
IndentWidth: 8
UseTab: Always
-BreakBeforeBraces: Linux
+BreakBeforeBraces: Custom
+BraceWrapping:
+ AfterClass: true
+ AfterControlStatement: false
+ AfterEnum: true
+ AfterFunction: true
+ AfterNamespace: true
+ AfterStruct: true
+ AfterUnion: true
+ BeforeCatch: false
+ BeforeElse: false
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
AccessModifierOffset: -8