From a9b3840c631d67182ad2aa9041924251efd3050e Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 24 Jul 2025 12:50:14 +0200 Subject: [PATCH] edit clang-format to be on-par with my current preferred style --- .clang-format | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.clang-format b/.clang-format index e832a52..175ffb2 100644 --- a/.clang-format +++ b/.clang-format @@ -20,7 +20,7 @@ AlignOperands: DontAlign AlignTrailingComments: true AlignConsecutiveMacros: AcrossEmptyLines AlignEscapedNewlines: Left -AlignArrayOfStructures: None +AlignArrayOfStructures: Left AlignConsecutiveAssignments: None AlignConsecutiveBitFields: AcrossEmptyLines AlignConsecutiveDeclarations: None @@ -87,7 +87,7 @@ BinPackArguments: true DerivePointerAlignment: false PointerAlignment: Right ReferenceAlignment: Pointer -QualifierAlignment: Right +QualifierAlignment: Left # --------------------------- # include settings and sorting @@ -96,6 +96,10 @@ IncludeIsMainSourceRegex: '' IncludeIsMainRegex: '([-_](test|unittest))?$' IncludeBlocks: Regroup IncludeCategories: + - Regex: '^' + Priority: 1 + SortPriority: 0 + CaseSensitive: true - Regex: '^<.*\.h>' Priority: 2 SortPriority: 0 @@ -110,7 +114,7 @@ IncludeCategories: # --------------------------- FixNamespaceComments: false MaxEmptyLinesToKeep: 2 -ReflowComments: false +ReflowComments: true RemoveBracesLLVM: false AllowAllArgumentsOnNextLine: false AllowAllParametersOfDeclarationOnNextLine: false