1
0
DDNet_Server/.clang-format
Your Name ff5da79d57 init
2023-04-14 23:38:34 +08:00

54 lines
1.3 KiB
YAML
Executable File

---
Language: Cpp
AccessModifierOffset: -8
AlignAfterOpenBracket: DontAlign
AlignEscapedNewlines: DontAlign
AlignTrailingComments: false
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AlwaysBreakTemplateDeclarations: true
BasedOnStyle: LLVM
BreakBeforeBraces: Custom
BreakBeforeTernaryOperators: false
BreakConstructorInitializers: AfterColon
BreakStringLiterals: true
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterExternBlock: false
AfterFunction: true
AfterNamespace: false
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyNamespace: true
SplitEmptyRecord: true
#ColumnLimit: 100
ColumnLimit: 0
CommentPragmas: ''
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
IncludeCategories:
- Regex: '^"'
Priority: 1
- Regex: '^<(engine|game|mastersrv|versionsrv>'
Priority: 2
- Regex: '.*'
Priority: 3
IncludeIsMainRegex: '$'
IndentWidth: 8
KeepEmptyLinesAtTheStartOfBlocks: false
PointerAlignment: Right
ReflowComments: true
SpaceBeforeParens: Never
SpaceAfterTemplateKeyword: false
TabWidth: 8
UseTab: ForContinuationAndIndentation
...