From d3ac2962285d2c39c0b104e2119eed139b0a177c Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Fri, 5 Aug 2022 17:23:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4switch=20case=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .clang-format | 6 ++++++ 1 file changed, 6 insertions(+) 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 # 命名空间不缩进