From f19cbe8a3738c14e6cb9ac4ada62ded03c06a290 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 12 Dec 2024 20:02:36 -0300 Subject: [PATCH] [clang-format] Set AllowShortCaseLabelsOnASingleLine=true Allows "case value: stmt; break;" in one line if it's short enough. --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index b8759eac9..dd31f8c92 100644 --- a/.clang-format +++ b/.clang-format @@ -60,7 +60,7 @@ AllowAllParametersOfDeclarationOnNextLine: false AllowBreakBeforeNoexceptSpecifier: Never AllowShortBlocksOnASingleLine: Never AllowShortCaseExpressionOnASingleLine: true -AllowShortCaseLabelsOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: true AllowShortCompoundRequirementOnASingleLine: true AllowShortEnumsOnASingleLine: true AllowShortFunctionsOnASingleLine: InlineOnly