From ad68dac46eabc3371fe229ae32a957d68b4998ee Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 12 Sep 2024 20:24:11 +0100 Subject: [PATCH] Set clang-format options --- roles/home-cli/files/clang-format | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/roles/home-cli/files/clang-format b/roles/home-cli/files/clang-format index 94976ea..5d32582 100644 --- a/roles/home-cli/files/clang-format +++ b/roles/home-cli/files/clang-format @@ -31,7 +31,7 @@ BinPackParameters: true BitFieldColonSpacing: Both BreakAfterJavaFieldAnnotations: false BreakBeforeBinaryOperators: None -BreakBeforeBraces: Attach +BreakBeforeBraces: Custom BreakBeforeConceptDeclarations: true BreakBeforeInheritanceComma: false BreakBeforeTernaryOperators: false @@ -126,6 +126,25 @@ TabWidth: 8 UseCRLF: false UseTab: Never +BraceWrapping: + AfterCaseLabel: false + AfterClass: false + AfterControlStatement: Never + AfterEnum: false + AfterFunction: true + AfterNamespace: false + AfterStruct: false + AfterUnion: false + AfterExternBlock: false + BeforeCatch: true + BeforeElse: true + BeforeLambdaBody: false + BeforeWhile: false + IndentBraces: false + SplitEmptyFunction: false + SplitEmptyRecord: false + SplitEmptyNamespace: false + SpaceBeforeParensOptions: AfterControlStatements: true AfterForeachMacros: true