From 9693864abd9652fce905abaccb824dcff7d5d485 Mon Sep 17 00:00:00 2001 From: Aina Niemetz Date: Tue, 3 Dec 2019 10:24:20 -0800 Subject: [PATCH] Fix clang-format file for brace wrapping with case labels. (#3523) More recent clang version introduce an extra flag AfterCaseLabel for brace wrapping after case labels. Default is false, with the effect opening braces after case labels will be aligned on the same line as the label. Our style requires it to be set to true. --- .clang-format | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-format b/.clang-format index 23e537b33..a4e83f330 100644 --- a/.clang-format +++ b/.clang-format @@ -6,6 +6,7 @@ BinPackArguments: false BinPackParameters: false BreakBeforeBinaryOperators: NonAssignment BraceWrapping: + AfterCaseLabel: true AfterClass: true AfterControlStatement: true AfterEnum: true -- 2.30.2