From 9d6dbb8ac897f2c337b2252d5be3ca2a8e40f4d7 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Thu, 12 Jul 2018 15:16:35 +0300 Subject: [PATCH] Update .clang-format to avoid break after namespace --- .clang-format | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index e341b1f99..e8b4f9181 100644 --- a/.clang-format +++ b/.clang-format @@ -18,7 +18,15 @@ AlwaysBreakTemplateDeclarations: true BinPackArguments: true BinPackParameters: true BreakBeforeBinaryOperators: None -BreakBeforeBraces: GNU +BreakBeforeBraces: Custom +BraceWrapping: + AfterClass: true + AfterControlStatement: true + AfterFunction: true + AfterNamespace: false + AfterStruct: true + IndentBraces: true + BeforeElse: true BreakBeforeTernaryOperators: true BreakConstructorInitializersBeforeComma: false ColumnLimit: 100