From b5ec44f96b3ee6b3afa8cfa687494216a4d971a1 Mon Sep 17 00:00:00 2001 From: Colin Cornaby Date: Sun, 26 Nov 2023 20:53:20 -0800 Subject: [PATCH] Updating Clang format file --- .clang-format | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index 48d6ba14d9..76d0387f80 100644 --- a/.clang-format +++ b/.clang-format @@ -4,10 +4,12 @@ BasedOnStyle: Google Language: Cpp # Modifications to the style for Plasma go here IndentWidth: 4 +AccessModifierOffset: -4 ColumnLimit: 0 +BreakBeforeBraces: Custom BraceWrapping: AfterClass: true - AfterControlStatement: MultiLine + AfterControlStatement: Never AfterEnum: true AfterFunction: true AfterNamespace: true @@ -17,7 +19,7 @@ BraceWrapping: BeforeCatch: false BeforeElse: false IndentBraces: false -BreakBeforeBraces: Custom +IndentAccessModifiers: false AlignConsecutiveDeclarations: AcrossComments AlignConsecutiveAssignments: Enabled: False @@ -35,3 +37,34 @@ SpacesBeforeTrailingComments: 1 --- Language: ObjC # Obj-C specific settings go here +IndentWidth: 4 +AccessModifierOffset: -4 +ColumnLimit: 0 +BreakBeforeBraces: Custom +BraceWrapping: + AfterClass: true + AfterControlStatement: Never + AfterEnum: true + AfterFunction: true + AfterNamespace: true + AfterObjCDeclaration: true + AfterStruct: true + AfterUnion: true + BeforeCatch: false + BeforeElse: false + IndentBraces: false +IndentAccessModifiers: false +AlignConsecutiveDeclarations: AcrossComments +AlignConsecutiveAssignments: + Enabled: False +ReflowComments: true +LambdaBodyIndentation: OuterScope +AllowShortBlocksOnASingleLine: true +AllowShortFunctionsOnASingleLine: true +AllowShortIfStatementsOnASingleLine: true +PackConstructorInitializers: CurrentLine +ObjCBlockIndentWidth: 4 +SpacesInLineCommentPrefix: + Minimum: 1 + Maximum: -1 +SpacesBeforeTrailingComments: 1