diff --git a/.clang-format b/.clang-format index 4d395a36..5074bd3d 100644 --- a/.clang-format +++ b/.clang-format @@ -56,6 +56,12 @@ ColumnLimit: 120 Cpp11BracedListStyle: false # 命名空间后的注释会修正为: // namespace_name FixNamespaceComments: true + +#switch case的缩进 +IndentCaseLabels: true +#允许单行case +AllowShortCaseLabelsOnASingleLine: true + # clang-format >= 13 required, lambda 函数内部缩进级别和外部一致, 默认会增加一级缩进 # LambdaBodyIndentation: OuterScope # 命名空间不缩进