25 lines
841 B
Diff
25 lines
841 B
Diff
From 9dde931a1c3aa4fd9ffc0be910ee03dceda156f8 Mon Sep 17 00:00:00 2001
|
|
From: Hex052 <elijahiff@gmail.com>
|
|
Date: Sun, 4 Jul 2021 18:28:21 -0800
|
|
Subject: [PATCH] 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.
|
|
---
|
|
.clang-format | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/.clang-format b/.clang-format
|
|
index d6972be06b..365efb2752 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
|