From 1de0740736ed61cf5320d4f8824f8cdcc222528f Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Thu, 14 Mar 2024 17:21:33 +0100 Subject: [PATCH] clang-format: Disable brace wrapping for structs I want to be able to define unit structs on a single line, like this: struct Success {}; --- .clang-format | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index b6cfbf380..ff1037632 100644 --- a/.clang-format +++ b/.clang-format @@ -8,7 +8,8 @@ BasedOnStyle: WebKit BraceWrapping: AfterClass: true AfterFunction: true - AfterStruct: true + AfterStruct: false + SplitEmptyRecord: false BreakBeforeBinaryOperators: None BreakBeforeBraces: Custom BreakBeforeTernaryOperators: true