From 7c5a789c6ccf09bfaec9c449aa606d8a6276b855 Mon Sep 17 00:00:00 2001 From: Heejin Ahn <aheejin@gmail.com> Date: Tue, 23 Apr 2019 16:59:17 -0700 Subject: 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. --- .clang-format | 3 --- 1 file changed, 3 deletions(-) (limited to '.clang-format') 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 -- cgit v1.2.3