17 lines
386 B
YAML
17 lines
386 B
YAML
# .clang-format
|
|
|
|
# 风格格式化
|
|
BasedOnStyle: Google
|
|
# 4 空格缩进
|
|
IndentWidth: 4
|
|
# 连续对齐变量的声明
|
|
AlignConsecutiveDeclarations: true
|
|
# 指针左侧对齐
|
|
PointerAlignment: Left
|
|
# 访问说明符(public、private等)的偏移
|
|
AccessModifierOffset: -4
|
|
# 大括号
|
|
BreakBeforeBraces: Custom
|
|
BraceWrapping:
|
|
# 函数定义后面大括号在新行
|
|
AfterFunction: true |