draconisplusplus/.clang-format
2025-05-13 01:48:08 -04:00

47 lines
1.1 KiB
YAML

BasedOnStyle: Chromium
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Right
AlignConsecutiveAssignments:
Enabled: true
AlignConsecutiveDeclarations:
Enabled: true
PadOperators: true
AlignConsecutiveMacros:
Enabled: true
AlignConsecutiveShortCaseStatements:
Enabled: true
AlignOperands: DontAlign
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortLoopsOnASingleLine: true
BinPackArguments: false
BreakBeforeBraces: Attach
ColumnLimit: 0
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
Cpp11BracedListStyle: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<.*>$'
Priority: 1
- Regex: '^"Config/.*"'
Priority: 2
- Regex: '^"Core/.*"'
Priority: 3
- Regex: '^"Services/.*"'
Priority: 4
- Regex: '^"UI/.*"'
Priority: 5
- Regex: '^"Util/.*"'
Priority: 6
- Regex: '^"Wrappers/.*"'
Priority: 7
- Regex: '^".*"$'
Priority: 8
IndentExternBlock: Indent
IndentPPDirectives: BeforeHash
NamespaceIndentation: All
QualifierAlignment: Left
SpaceBeforeCpp11BracedList: true
SpacesBeforeTrailingComments: 1