From: Hex052 Date: Mon, 5 Jul 2021 02:28:21 +0000 (-0800) Subject: Add AfterCaseLabel to .clang-format X-Git-Tag: json-c-0.16-20220414~37^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F714%2Fhead;p=thirdparty%2Fjson-c.git Add AfterCaseLabel to .clang-format This is to fix the behavior that might've changed between older versions of clang-format, I'm not sure. Version 10 tries to put the bracket on the same line as case without this. --- diff --git a/.clang-format b/.clang-format index d6972be0..365efb27 100644 --- a/.clang-format +++ b/.clang-format @@ -23,6 +23,8 @@ AllowShortFunctionsOnASingleLine: Empty BreakBeforeBraces: Custom # Control of individual brace wrapping cases. BraceWrapping: + # Wrap brackets inside of a case + AfterCaseLabel: true # Wrap class definition. AfterClass: true # Wrap control statements