From 6674c88b9d11e862180cafda43071e8c13e2b31e Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Wed, 17 Apr 2024 01:51:20 -0400 Subject: [PATCH] Update .clang-format to roughly match behavior from older versions --- .clang-format | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 9c546c4b30..57cd4be445 100644 --- a/.clang-format +++ b/.clang-format @@ -1,7 +1,18 @@ BasedOnStyle: LLVM IndentWidth: 4 AccessModifierOffset: -4 -BreakBeforeBraces: Allman +# basically BreakBeforeBraces: Allman but don't break lambdas +BreakBeforeBraces: Custom +BraceWrapping: + AfterCaseLabel: true + AfterClass: true + AfterControlStatement: Always + AfterEnum: true + AfterFunction: true + AfterNamespace: true + AfterStruct: true + AfterUnion: true + BeforeElse: true PointerAlignment: Middle SpaceAfterTemplateKeyword: false AlwaysBreakTemplateDeclarations: Yes