# See https://www.apertis.org/policies/coding_conventions/#code-formatting
BasedOnStyle: GNU
IndentWidth: 4
#AlwaysBreakAfterDefinitionReturnType: None #All
BreakBeforeBinaryOperators: None
#AlwaysBreakAfterReturnType: None
#   AllDefinitions(所有的定义，不包括声明), TopLevelDefinitions(所有的顶级函数的定义)
AlwaysBreakAfterReturnType: None
# 总是在定义返回类型后换行(deprecated)，尽管它不被推荐使用，但依旧应该设置为None
AlwaysBreakAfterDefinitionReturnType: None
BinPackParameters: false
SpaceAfterCStyleCast: true
PointerAlignment: Right
# 对齐声明
AlignConsecutiveDeclarations: true
# Our column limit is actually 80, but setting that results in clang-format
# making a lot of dubious hanging-indent choices; disable it and assume the
# developer will line wrap appropriately. clang-format will still check
# existing hanging indents.
ColumnLimit: 0
BreakBeforeBraces: Custom #Allman #
BraceWrapping:
  # IndentBraces花括号自身缩进
  #  IndentBraces: false
  AfterFunction: true
  # "Never", "MultiLine", "Always"
  AfterControlStatement: Always
