# Repo C style, matched to the existing sources (4-space indent, K&R braces,
# pointer stars on the name). Whitespace and line breaks only. Run
# tools/format.sh.
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 4
TabWidth: 4
UseTab: Never
ColumnLimit: 100
BreakBeforeBraces: Linux
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
PointerAlignment: Right
DerivePointerAlignment: false
SpaceAfterCStyleCast: false
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignTrailingComments: true
AlignAfterOpenBracket: Align
BinPackArguments: true
BinPackParameters: true
ReflowComments: false
SortIncludes: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
IndentCaseLabels: false
BreakBeforeBinaryOperators: None
ContinuationIndentWidth: 4
AlignOperands: Align
SpacesBeforeTrailingComments: 1
SeparateDefinitionBlocks: Always
# assert stringifies its argument into a .rodata literal that must match the
# ROM's bytes, so never reflow inside an assert invocation.
WhitespaceSensitiveMacros: [assert]
# never split a string literal: the literals reproduce ROM bytes, some in EUC-JP
BreakStringLiterals: false
