31 lines
833 B
YAML
31 lines
833 B
YAML
# Matches the style already in game-from-scratch: Allman braces, four spaces,
|
|
# namespace bodies indented, pointers bound to the type, aliases aligned.
|
|
---
|
|
Language: Cpp
|
|
BasedOnStyle: Microsoft
|
|
|
|
ColumnLimit: 110
|
|
IndentWidth: 4
|
|
TabWidth: 4
|
|
UseTab: Never
|
|
|
|
BreakBeforeBraces: Allman
|
|
NamespaceIndentation: All
|
|
AccessModifierOffset: -4
|
|
|
|
PointerAlignment: Left
|
|
ReferenceAlignment: Left
|
|
|
|
# Your existing code writes `Ref<Window> window { nullptr }` — space before the
|
|
# brace, spaces inside it. Both are non-default and have to be asked for.
|
|
Cpp11BracedListStyle: false
|
|
SpaceBeforeCpp11BracedList: true
|
|
|
|
AlignConsecutiveAssignments: Consecutive
|
|
AlignAfterOpenBracket: Align
|
|
AllowShortFunctionsOnASingleLine: Inline
|
|
AllowShortIfStatementsOnASingleLine: Never
|
|
FixNamespaceComments: false
|
|
SortIncludes: CaseSensitive
|
|
IncludeBlocks: Preserve
|