From 391f86bc387d745de897503c36d11cd65691b84c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 1 May 2023 19:24:01 +1000 Subject: [PATCH] clang-format: set BraceWrapping::AfterControlStatement to "MultiLine" This was the code-style Blender used before switching to clang-format which did not support this style of brace placement at the time. Since then support was added, this helps readability as the beginning of braces isn't as clear in the case of multi-line conditionals. This implements a proposal from #75956. --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 71ce9e68e44..17196f7ddab 100644 --- a/.clang-format +++ b/.clang-format @@ -62,7 +62,7 @@ ContinuationIndentWidth: 4 BreakBeforeBraces: Custom BraceWrapping: { AfterClass: 'false', - AfterControlStatement: 'false', + AfterControlStatement: 'MultiLine', AfterEnum : 'false', AfterFunction : 'true', AfterNamespace : 'false',