From fce4617571619d4d7f7ae55df17046eda7bd68f3 Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 3 Jun 2025 14:18:14 +0200 Subject: [PATCH] fix clang-format algining brackets also added qualifier alignment to be the same as my preference --- .clang-format | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index 7c0076a..891f5ce 100644 --- a/.clang-format +++ b/.clang-format @@ -14,14 +14,14 @@ ContinuationIndentWidth: 4 # width for a line continuation # --------------------------- # alignment options # --------------------------- -AlignAfterOpenBracket: Align # (Align,DontAlign,AlwaysBreak,BlockIndent) +AlignAfterOpenBracket: DontAlign # (Align,DontAlign,AlwaysBreak,BlockIndent) AlignArrayOfStructures: Left # (Left,Right,None) AlignConsecutiveMacros: AcrossEmptyLines # (None,Consecutive,AcrossEmptyLines,AcrossComments,AcrossEmptyLinesAndComments) AlignConsecutiveAssignments: None # (None,Consecutive,AcrossEmptyLines,AcrossComments,AcrossEmptyLinesAndComments) AlignConsecutiveBitFields: AcrossEmptyLines # (None,Consecutive,AcrossEmptyLines,AcrossComments,AcrossEmptyLinesAndComments) AlignConsecutiveDeclarations: None # (None,Consecutive,AcrossEmptyLines,AcrossComments,AcrossEmptyLinesAndComments) AlignEscapedNewlines: Left # (DontAlign,Left,LeftWithLastLine,Right) -AlignOperands: Align # (DontAlign,Align,AlignAfterOperator) +AlignOperands: DontAlign # (DontAlign,Align,AlignAfterOperator) AlignTrailingComments: Always # (Leave,Always,Never) # --------------------------- @@ -86,6 +86,7 @@ BinPackArguments: false # false: function calls either on DerivePointerAlignment: false # automatically detect pointer alignment PointerAlignment: Left # (Left,Right,Middle) ReferenceAlignment: Pointer # (Pointer,Left,Right,Middle) +QualifierAlignment: Right # (Leave,Left,Right,Custom) # --------------------------- # include settings and sorting