63 lines
1.2 KiB
Plaintext
63 lines
1.2 KiB
Plaintext
---
|
|
Language: Cpp
|
|
BasedOnStyle: LLVM
|
|
Standard: c++20
|
|
|
|
IndentWidth: 2
|
|
ColumnLimit: 100
|
|
|
|
# Pointer alignment
|
|
PointerAlignment: Left
|
|
ReferenceAlignment: Left
|
|
DerivePointerAlignment: false
|
|
|
|
# Braces
|
|
BreakBeforeBraces: Attach
|
|
Cpp11BracedListStyle: true
|
|
|
|
# Breaking
|
|
AllowShortFunctionsOnASingleLine: InlineOnly
|
|
AllowShortLambdasOnASingleLine: All
|
|
AllowShortIfStatementsOnASingleLine: WithoutElse
|
|
AlwaysBreakTemplateDeclarations: Yes
|
|
BreakConstructorInitializers: BeforeColon
|
|
BreakInheritanceList: BeforeColon
|
|
|
|
# Indentation
|
|
IndentCaseLabels: true
|
|
IndentPPDirectives: AfterHash
|
|
IndentRequiresClause: true
|
|
IndentWrappedFunctionNames: false
|
|
|
|
# Spacing
|
|
SpaceBeforeParens: ControlStatements
|
|
SpaceBeforeCpp11BracedList: false
|
|
SpacesBeforeTrailingComments: 2
|
|
|
|
# Includes
|
|
SortIncludes: CaseSensitive
|
|
IncludeBlocks: Regroup
|
|
IncludeCategories:
|
|
- Regex: '^<.*\.h>$'
|
|
Priority: 1
|
|
- Regex: '^<.*>$'
|
|
Priority: 2
|
|
- Regex: '.*'
|
|
Priority: 3
|
|
|
|
# Alignment
|
|
AlignConsecutiveMacros: true
|
|
AlignConsecutiveAssignments: false
|
|
AlignConsecutiveDeclarations: false
|
|
AlignOperands: Align
|
|
AlignTrailingComments: true
|
|
|
|
# Comments
|
|
ReflowComments: true
|
|
FixNamespaceComments: true
|
|
|
|
# Empty lines
|
|
MaxEmptyLinesToKeep: 1
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
...
|