mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 10:04:46 -07:00
* style: Add braces to all control flow statements Standardize code style by adding explicit braces to all single-statement control flow blocks (if, else, for, while) across the entire codebase. Also documents the InsertBraces clang-format option (requires v15+) for future automated enforcement. * InsertBraces-check-enabled
36 lines
839 B
YAML
36 lines
839 B
YAML
IndentWidth: 4
|
|
AccessModifierOffset: -4
|
|
ColumnLimit: 120
|
|
---
|
|
Language: Cpp
|
|
BreakBeforeBraces: Custom
|
|
BraceWrapping:
|
|
AfterClass: true
|
|
AfterControlStatement: false
|
|
AfterEnum: true
|
|
AfterFunction: true
|
|
AfterNamespace: true
|
|
AfterStruct: true
|
|
AfterUnion: true
|
|
BeforeCatch: false
|
|
BeforeElse: false
|
|
IndentBraces: false
|
|
SplitEmptyFunction: true
|
|
SplitEmptyRecord: true
|
|
SplitEmptyNamespace: true
|
|
AllowShortFunctionsOnASingleLine: None
|
|
BinPackParameters: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
IndentCaseLabels: true
|
|
PointerAlignment: Right
|
|
SortIncludes: true
|
|
IncludeBlocks: Regroup
|
|
StatementAttributeLikeMacros: [emit]
|
|
# requires clang-format 15
|
|
InsertBraces: true
|
|
# requires clang-format 16
|
|
# RemoveSemicolon: true
|
|
---
|
|
Language: Proto
|
|
AllowShortFunctionsOnASingleLine: None
|
|
SpacesInContainerLiterals: false
|