[DEV] Update clang format file.

This commit is contained in:
NADAL Jean-Baptiste
2024-03-04 14:05:38 +01:00
parent 49d06737a5
commit a602dbceec

View File

@@ -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
...