From d515dd8fec743086f2870f9efce0fb7fdb25ca2a Mon Sep 17 00:00:00 2001 From: Reuben Dunnington Date: Tue, 22 Aug 2023 08:04:31 -0700 Subject: [PATCH] clang-format: use custom brace/indent style --- .clang-format | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index 57a457d..03bf57f 100644 --- a/.clang-format +++ b/.clang-format @@ -1,5 +1,4 @@ AllowAllArgumentsOnNextLine: false -BreakBeforeBraces: Allman Cpp11BracedListStyle: false ColumnLimit: 0 BreakBeforeBinaryOperators: NonAssignment @@ -15,4 +14,22 @@ PointerAlignment: Left SeparateDefinitionBlocks: Always SpaceBeforeParens: Never ReflowComments: false -SortIncludes: false \ No newline at end of file +SortIncludes: false +BreakBeforeBraces: Custom +BraceWrapping: + AfterCaseLabel: true + AfterClass: true + AfterControlStatement: Always + AfterExternBlock: false + AfterEnum: true + AfterFunction: true + AfterNamespace: true + AfterObjCDeclaration: true + AfterStruct: true + AfterObjCDeclaration: true + AfterUnion: true + BeforeCatch: true + BeforeElse: true + BeforeLambdaBody: true + BeforeWhile: true +IndentExternBlock: false