From 2b7de8315088a4806f588b5647d724c93045bd93 Mon Sep 17 00:00:00 2001 From: Uwe Date: Fri, 20 Jan 2023 03:24:02 +0100 Subject: [PATCH] .clang-format: revert two recent changes - the option 'InsertBraces' might be helpful, however under MSVC it makes much more troubles as it helps: All the time the braces are either inserted in a wrong way or often only the opening brace. Since we did not use this setting previously, this recent change can be safely reverted for now. - the 'BeforeElse' change was obviously a mistake in the previous change. All the time we used a linebreak before an else --- .clang-format | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index df6ff0eab8..6ba545491f 100644 --- a/.clang-format +++ b/.clang-format @@ -25,7 +25,7 @@ BraceWrapping: AfterNamespace: true AfterUnion: true BeforeCatch: true - BeforeElse: false + BeforeElse: true IndentBraces: false SplitEmptyFunction: false SplitEmptyRecord: true @@ -39,7 +39,7 @@ ContinuationIndentWidth: 4 IndentCaseLabels: true IndentPPDirectives: None IndentWidth: 4 -InsertBraces: true +InsertBraces: false KeepEmptyLinesAtTheStartOfBlocks: true MaxEmptyLinesToKeep: 2 NamespaceIndentation: None