From 4c8e3ef4c9cf6c2ef3e94fdbbfa3ce2f34d6c4d0 Mon Sep 17 00:00:00 2001 From: Quinn Date: Fri, 20 Jun 2025 12:49:59 +0200 Subject: [PATCH] modify clang-format to be more inline with linux kernel --- .clang-format | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.clang-format b/.clang-format index ec399da..582b39c 100644 --- a/.clang-format +++ b/.clang-format @@ -84,7 +84,7 @@ BinPackArguments: false # false: function calls either on # pointer alignment # --------------------------- DerivePointerAlignment: false # automatically detect pointer alignment -PointerAlignment: Left # (Left,Right,Middle) +PointerAlignment: Right # (Left,Right,Middle) ReferenceAlignment: Pointer # (Pointer,Left,Right,Middle) QualifierAlignment: Right # (Leave,Left,Right,Custom) @@ -192,7 +192,7 @@ BitFieldColonSpacing: Both # (Both,None,Before,After) IndentAccessModifiers: false IndentCaseLabels: false IndentCaseBlocks: false -IndentGotoLabels: true +IndentGotoLabels: false IndentExternBlock: AfterExternBlock # (AfterExternBlock,NoIndent,Indent) IndentRequiresClause: false IndentPPDirectives: None # preprocessor indent style (None,AfterHash,BeforeHash) @@ -209,4 +209,3 @@ ObjCBreakBeforeNestedBlockParam: true ObjCSpaceAfterProperty: false ObjCSpaceBeforeProtocolList: true ... -..