[DEV] Update clang format file.
This commit is contained in:
@@ -6,30 +6,40 @@ IndentWidth: 4
|
||||
UseCRLF: true
|
||||
# spaces, not tabs!
|
||||
UseTab: Never
|
||||
|
||||
---
|
||||
Language: Cpp
|
||||
Standard: c++17
|
||||
AccessModifierOffset: -4
|
||||
ColumnLimit: 0
|
||||
NamespaceIndentation: All
|
||||
|
||||
# Alignment
|
||||
# Force pointers to the type for C++.
|
||||
DerivePointerAlignment: false
|
||||
PointerAlignment: Right
|
||||
# Use 100 columns
|
||||
ColumnLimit: 120
|
||||
AlignConsecutiveAssignments: Consecutive
|
||||
ReferenceAlignment: Right
|
||||
AlignArrayOfStructures: Right
|
||||
|
||||
# AlignConsecutiveAssignments: Consecutive
|
||||
AlignConsecutiveBitFields: Consecutive
|
||||
AlignConsecutiveMacros: AcrossEmptyLines
|
||||
|
||||
# Lines
|
||||
AllowAllParametersOfDeclarationOnNextLine: true
|
||||
AllowShortBlocksOnASingleLine: Never
|
||||
AlwaysBreakAfterReturnType: None
|
||||
AllowShortCaseLabelsOnASingleLine: false
|
||||
AllowShortFunctionsOnASingleLine: None
|
||||
AllowShortIfStatementsOnASingleLine: Never
|
||||
SplitEmptyFunction: true
|
||||
BreakBeforeBraces: Allman
|
||||
SeparateDefinitionBlocks: Always
|
||||
NamespaceIndentation: All
|
||||
|
||||
# Braces
|
||||
BreakBeforeBraces: Allman
|
||||
BraceWrapping:
|
||||
SplitEmptyFunction: true
|
||||
|
||||
# Misc
|
||||
IndentAccessModifiers: false
|
||||
ReferenceAlignment: Right
|
||||
BreakConstructorInitializers: AfterColon
|
||||
AlignArrayOfStructures: Right
|
||||
PackConstructorInitializers: CurrentLine
|
||||
AlignConsecutiveMacros: true
|
||||
...
|
||||
PackConstructorInitializers: NextLineOnly
|
||||
|
||||
Reference in New Issue
Block a user