diff --git a/dbcc/.clang-format b/dbcc/.clang-format index 9712045..3da5070 100644 --- a/dbcc/.clang-format +++ b/dbcc/.clang-format @@ -49,6 +49,8 @@ BinPackParameters: true # Allman(总是在大括号前换行), GNU(总是在大括号前换行, 并对于控制语句的大括号增加额外的缩进), WebKit(在函数前换行), Custom # 注:这里认为语句块也属于函数 BreakBeforeBraces: Custom +# Extern block +IndentExternBlock: NoIndent # 大括号换行, 只有当BreakBeforeBraces设置为Custom时才有效 BraceWrapping: # 命名空间定义后面