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