BasedOnStyle: WebKit

AllowAllArgumentsOnNextLine: true
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
ReflowComments: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false

AccessModifierOffset: -2
AlignAfterOpenBracket: AlwaysBreak
AlignEscapedNewlinesLeft: true
AlignOperands: true
AlignTrailingComments: true
AlignConsecutiveDeclarations: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: false
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true

BraceWrapping:
  AfterClass:      true
  AfterControlStatement: true
  AfterEnum:       true
  AfterFunction:   true
  AfterNamespace:  true
  AfterStruct:     true
  AfterUnion:      true
  BeforeCatch:     true
  BeforeElse:      true
  IndentBraces:    false

BinPackArguments: false
BinPackParameters: false
ExperimentalAutoDetectBinPacking: false
AllowAllParametersOfDeclarationOnNextLine: false
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: true
ColumnLimit: 89
CommentPragmas: '^ IWYU pragma:'
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
IndentCaseLabels: true
IndentWidth: 2
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: true
Language: Cpp
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: true
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeCpp11BracedList: false
Standard: c++20
TabWidth: 2
UseTab: Never
CommentPragmas: '^ clang-format:'
StatementMacros: ['type_or_value_qualification', 'type_or_value_reflection', 'type_or_value_accessors', 'E_SIGNAL', 'PROPERTY', 'W_SIGNAL', 'W_PROPERTY', 'W_SLOT', 'halp__enum', 'halp__enum_combobox', 'halp_meta', 'halp_flag', 'halp_flags', 'gpp_attribute', 'gpp_compute', 'halp_lambda', 'halp_free_fun', 'halp_free_fun_t', 'halp_mem_fun', 'halp_mem_fun_t']
SortIncludes: true
IncludeBlocks: Regroup
IncludeCategories:
  - Regex:           '^"'
    Priority:        1
  - Regex:           '<([[:alnum:]_]+\/?)+.(h|hpp)>'
    Priority:        5
  - Regex:           '^<common/'
    Priority:        10
  - Regex:           '^<avnd/'
    Priority:        15
  - Regex:           '^<boost'
    Priority:        20
  - Regex:           '^<Q'
    Priority:        25
  - Regex:           '<[[:alnum:]]+>'
    Priority:        800

