edit clang-format to be on-par with my current preferred style

This commit is contained in:
2025-07-24 12:50:14 +02:00
parent d51ce2986f
commit 5283050311

View File

@@ -20,7 +20,7 @@ AlignOperands: DontAlign
AlignTrailingComments: true AlignTrailingComments: true
AlignConsecutiveMacros: AcrossEmptyLines AlignConsecutiveMacros: AcrossEmptyLines
AlignEscapedNewlines: Left AlignEscapedNewlines: Left
AlignArrayOfStructures: None AlignArrayOfStructures: Left
AlignConsecutiveAssignments: None AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: AcrossEmptyLines AlignConsecutiveBitFields: AcrossEmptyLines
AlignConsecutiveDeclarations: None AlignConsecutiveDeclarations: None
@@ -87,7 +87,7 @@ BinPackArguments: true
DerivePointerAlignment: false DerivePointerAlignment: false
PointerAlignment: Right PointerAlignment: Right
ReferenceAlignment: Pointer ReferenceAlignment: Pointer
QualifierAlignment: Right QualifierAlignment: Left
# --------------------------- # ---------------------------
# include settings and sorting # include settings and sorting
@@ -96,6 +96,10 @@ IncludeIsMainSourceRegex: ''
IncludeIsMainRegex: '([-_](test|unittest))?$' IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeBlocks: Regroup IncludeBlocks: Regroup
IncludeCategories: IncludeCategories:
- Regex: '^<glad/gl\.h>'
Priority: 1
SortPriority: 0
CaseSensitive: true
- Regex: '^<.*\.h>' - Regex: '^<.*\.h>'
Priority: 2 Priority: 2
SortPriority: 0 SortPriority: 0
@@ -110,7 +114,7 @@ IncludeCategories:
# --------------------------- # ---------------------------
FixNamespaceComments: false FixNamespaceComments: false
MaxEmptyLinesToKeep: 2 MaxEmptyLinesToKeep: 2
ReflowComments: false ReflowComments: true
RemoveBracesLLVM: false RemoveBracesLLVM: false
AllowAllArgumentsOnNextLine: false AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false AllowAllParametersOfDeclarationOnNextLine: false