# SPDX-License-Identifier: BSD-0-Clause
# Imbus style C: https://git.silversoft.se/Imbus/imbus-style-c
BasedOnStyle: LLVM
IndentWidth: 4
TabWidth: 4
UseTab: Never
ColumnLimit: 120
AllowShortLoopsOnASingleLine: true
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
BreakConstructorInitializers: BeforeComma
AlignConsecutiveDeclarations:
    Enabled: true
    AcrossEmptyLines: false
    AcrossComments: false
    AlignCompound: false
    AlignFunctionPointers: false
    PadOperators: false
AlignConsecutiveMacros: true
SeparateDefinitionBlocks: Always
BinPackArguments: false
AlignTrailingComments: true
# Don't break braces in nested initializers
BraceWrapping:
    AfterStruct: false
    AfterEnum: false
    AfterCaseLabel: false
    AfterClass: false
    SplitEmptyRecord: false
    AfterControlStatement: true
    SplitEmptyFunction: false
    IndentBraces: false
IndentCaseLabels: true
# Some C++ stuff:
AlwaysBreakTemplateDeclarations: true
BreakBinaryOperations: OnePerLine
