47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
---
|
|
# We'll use defaults from the LLVM style, but with 4 columns indentation.
|
|
BasedOnStyle: LLVM
|
|
IndentWidth: 4
|
|
# use \n instead of \r\n
|
|
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
|
|
ReferenceAlignment: Right
|
|
AlignArrayOfStructures: Right
|
|
IndentCaseLabels: true
|
|
|
|
# AlignConsecutiveAssignments: Consecutive
|
|
AlignConsecutiveBitFields: Consecutive
|
|
AlignConsecutiveMacros: AcrossEmptyLines
|
|
|
|
# Lines
|
|
AllowAllParametersOfDeclarationOnNextLine: true
|
|
AllowShortBlocksOnASingleLine: Never
|
|
AlwaysBreakAfterReturnType: None
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: None
|
|
AllowShortIfStatementsOnASingleLine: Never
|
|
SeparateDefinitionBlocks: Always
|
|
|
|
# Braces
|
|
BreakBeforeBraces: Allman
|
|
BraceWrapping:
|
|
SplitEmptyFunction: true
|
|
|
|
# Misc
|
|
IndentAccessModifiers: false
|
|
BreakConstructorInitializers: AfterColon
|
|
PackConstructorInitializers: NextLineOnly
|