Skip to content

Commit 7c5a789

Browse files
authored
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.
1 parent 4c3297b commit 7c5a789

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

.clang-format

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ IndentCaseLabels: true
44
ContinuationIndentWidth: 2
55
ConstructorInitializerIndentWidth: 2
66
SpaceAfterTemplateKeyword: false
7-
AllowShortCaseLabelsOnASingleLine: true
8-
AllowShortIfStatementsOnASingleLine: true
9-
AllowShortBlocksOnASingleLine: true
107
BinPackArguments: false
118
BinPackParameters: false

0 commit comments

Comments
 (0)