summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-04-23 16:59:17 -0700
committerGitHub <noreply@github.com>2019-04-23 16:59:17 -0700
commit7c5a789c6ccf09bfaec9c449aa606d8a6276b855 (patch)
tree0a5b77dd629fdd1c86a0efa1da1ffb502575819a /.clang-format
parent4c3297bba82905994a36e52701696be412573b3f (diff)
downloadbinaryen-7c5a789c6ccf09bfaec9c449aa606d8a6276b855.tar.gz
binaryen-7c5a789c6ccf09bfaec9c449aa606d8a6276b855.tar.bz2
binaryen-7c5a789c6ccf09bfaec9c449aa606d8a6276b855.zip
Don't allow short if/case/blocks on a single line (#2044)
While looking at code changes after mass clang-formatting our current codebase, I think this rather hurts readability than improves it. And none of preset styles (LLVM, Chrome, Google, Mozilla, and WebKit) allows these, with only exception that Google allows short ifs on a single line.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format3
1 files changed, 0 insertions, 3 deletions
diff --git a/.clang-format b/.clang-format
index 497379448..9ca4dd982 100644
--- a/.clang-format
+++ b/.clang-format
@@ -4,8 +4,5 @@ IndentCaseLabels: true
ContinuationIndentWidth: 2
ConstructorInitializerIndentWidth: 2
SpaceAfterTemplateKeyword: false
-AllowShortCaseLabelsOnASingleLine: true
-AllowShortIfStatementsOnASingleLine: true
-AllowShortBlocksOnASingleLine: true
BinPackArguments: false
BinPackParameters: false