]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Add AfterCaseLabel to .clang-format 714/head
authorHex052 <elijahiff@gmail.com>
Mon, 5 Jul 2021 02:28:21 +0000 (18:28 -0800)
committerGitHub <noreply@github.com>
Mon, 5 Jul 2021 02:28:21 +0000 (18:28 -0800)
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.

.clang-format

index d6972be06b11403bf3f101057a76310b5096f194..365efb2752739b8f11fb1ff9d72476e45ca441db 100644 (file)
@@ -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