[PATCH v2 4/5] clang-format: Fix empty curly braces

From: Mickaël Salaün
Date: Fri May 06 2022 - 12:00:06 EST


SplitEmptyFunction [1] should be false to not add a new line in an empty
function body. This follows the current kernel coding style.

Link: https://clang.llvm.org/docs/ClangFormatStyleOptions.html [1]
Cc: Miguel Ojeda <ojeda@xxxxxxxxxx>
Cc: Tom Rix <trix@xxxxxxxxxx>
Signed-off-by: Mickaël Salaün <mic@xxxxxxxxxxx>
Link: https://lore.kernel.org/r/20220506160106.522341-5-mic@xxxxxxxxxxx
---
.clang-format | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.clang-format b/.clang-format
index 30f68219c09e..235f7bb8f84a 100644
--- a/.clang-format
+++ b/.clang-format
@@ -41,7 +41,7 @@ BraceWrapping:
BeforeCatch: false
BeforeElse: false
IndentBraces: false
- SplitEmptyFunction: true
+ SplitEmptyFunction: false
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
--
2.35.1