summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHex052 <elijahiff@gmail.com>2021-07-04 18:28:21 -0800
committerGitHub <noreply@github.com>2021-07-04 18:28:21 -0800
commit9dde931a1c3aa4fd9ffc0be910ee03dceda156f8 (patch)
tree01453008de4921f61bbfd16a40cfba2ca6445d21
parent75bf657cc285c1b726492ed6af3645ea95fe17ac (diff)
downloadjson-c-9dde931a1c3aa4fd9ffc0be910ee03dceda156f8.tar.gz
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.
-rw-r--r--.clang-format2
1 files changed, 2 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
index d6972be..365efb2 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