VNC-151 Update .clang-format with new alignment and style rules

This commit is contained in:
El 2025-10-25 15:44:51 +00:00
parent 1928beea07
commit 2e95177f1b
No known key found for this signature in database
GPG key ID: 205388FEB607950A

View file

@ -3,6 +3,8 @@
Language: Cpp Language: Cpp
BasedOnStyle: LLVM BasedOnStyle: LLVM
AccessModifierOffset: -4 AccessModifierOffset: -4
AlignArrayOfStructures: Left
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false AlignConsecutiveDeclarations: false
AlignOperands: true AlignOperands: true
@ -35,7 +37,8 @@ BreakConstructorInitializers: AfterColon
BreakConstructorInitializersBeforeComma: false BreakConstructorInitializersBeforeComma: false
ColumnLimit: 120 ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: false ConstructorInitializerAllOnOneLineOrOnePerLine: false
ContinuationIndentWidth: 8 ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
IncludeCategories: IncludeCategories:
- Regex: '^<.*' - Regex: '^<.*'
Priority: 1 Priority: 1
@ -51,6 +54,7 @@ MacroBlockBegin: ''
MacroBlockEnd: '' MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2 MaxEmptyLinesToKeep: 2
NamespaceIndentation: All NamespaceIndentation: All
PackConstructorInitializers: Never
SortIncludes: CaseSensitive SortIncludes: CaseSensitive
SpaceAfterCStyleCast: true SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: false SpaceAfterTemplateKeyword: false