mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Should not be followed for C files, to avoid mucking `blame`s, but will be applied during the gradual C++ rollout, since that will likely touch most lines in the codebase anyway.
100 lines
2.7 KiB
YAML
100 lines
2.7 KiB
YAML
AccessModifierOffset: -4
|
|
AlignAfterOpenBracket: Align
|
|
AlignArrayOfStructures: Left
|
|
AlignConsecutiveAssignments: None
|
|
AlignConsecutiveBitFields: Consecutive
|
|
AlignConsecutiveDeclarations: None
|
|
AlignConsecutiveMacros: Consecutive
|
|
AlignEscapedNewlines: Left
|
|
AlignOperands: Align
|
|
AlignTrailingComments: false
|
|
AllowShortBlocksOnASingleLine: Empty
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
AllowShortEnumsOnASingleLine: true
|
|
AllowShortFunctionsOnASingleLine: InlineOnly
|
|
AllowShortIfStatementsOnASingleLine: Never
|
|
AllowShortLambdasOnASingleLine: All
|
|
AllowShortLoopsOnASingleLine: false
|
|
AlwaysBreakAfterReturnType: None
|
|
AlwaysBreakBeforeMultilineStrings: false
|
|
AlwaysBreakTemplateDeclarations: Yes
|
|
AttributeMacros:
|
|
- format_
|
|
- attr_
|
|
BinPackArguments: true
|
|
BinPackParameters: true
|
|
BitFieldColonSpacing: Both
|
|
BreakBeforeBinaryOperators: NonAssignment
|
|
BreakBeforeBraces: Attach
|
|
BreakBeforeConceptDeclarations: true
|
|
BreakBeforeTernaryOperators: true
|
|
BreakConstructorInitializers: BeforeColon
|
|
BreakInheritanceList: AfterComma
|
|
BreakStringLiterals: true
|
|
ColumnLimit: 100
|
|
CompactNamespaces: false
|
|
ContinuationIndentWidth: 4
|
|
Cpp11BracedListStyle: true
|
|
DeriveLineEnding: true
|
|
DerivePointerAlignment: false
|
|
EmptyLineBeforeAccessModifier: Leave
|
|
FixNamespaceComments: false
|
|
IncludeBlocks: Regroup
|
|
IncludeCategories:
|
|
- Regex: '^<sys/'
|
|
Priority: 0
|
|
- Regex: '^<'
|
|
Priority: 1
|
|
- Regex: '^"extern/'
|
|
Priority: 2
|
|
- Regex: '^"(asm|link|fix|gfx)/'
|
|
Priority: 3
|
|
- Regex: '^"'
|
|
Priority: 2
|
|
IndentAccessModifiers: false
|
|
IndentCaseBlocks: false
|
|
IndentCaseLabels: false
|
|
IndentExternBlock: NoIndent
|
|
IndentGotoLabels: false
|
|
IndentPPDirectives: BeforeHash
|
|
IndentRequires: true
|
|
IndentWidth: 4
|
|
IndentWrappedFunctionNames: true
|
|
# Only support for Javascript as of clang-format 13...
|
|
# InsertTrailingCommas: true
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
LambdaBodyIndentation: Signature
|
|
Language: Cpp
|
|
MaxEmptyLinesToKeep: 1
|
|
NamespaceIndentation: None
|
|
PPIndentWidth: -1
|
|
PointerAlignment: Right
|
|
ReflowComments: true
|
|
SortIncludes: CaseSensitive
|
|
SortUsingDeclarations: true
|
|
SpaceAfterCStyleCast: false
|
|
SpaceAfterLogicalNot: false
|
|
SpaceAfterTemplateKeyword: false
|
|
SpaceAroundPointerQualifiers: Both
|
|
SpaceBeforeAssignmentOperators: true
|
|
SpaceBeforeCaseColon: false
|
|
SpaceBeforeCpp11BracedList: false
|
|
SpaceBeforeCtorInitializerColon: true
|
|
SpaceBeforeInheritanceColon: true
|
|
SpaceBeforeParens: ControlStatements
|
|
SpaceBeforeRangeBasedForLoopColon: true
|
|
SpaceBeforeSquareBrackets: false
|
|
SpaceInEmptyBlock: false
|
|
SpaceInEmptyParentheses: false
|
|
SpacesBeforeTrailingComments: 1
|
|
SpacesInAngles: false
|
|
SpacesInCStyleCastParentheses: false
|
|
SpacesInConditionalStatement: false
|
|
SpacesInContainerLiterals: false
|
|
SpacesInParentheses: false
|
|
SpacesInSquareBrackets: false
|
|
Standard: c++20
|
|
TabWidth: 4
|
|
UseCRLF: false
|
|
UseTab: AlignWithSpaces
|