From dddb5dd6b0de9a8b8621b9ac695fd3fd980a33d6 Mon Sep 17 00:00:00 2001 From: Johann Fischer Date: Fri, 15 Jul 2022 12:23:06 +0200 Subject: [PATCH] clang-format: do not merge blocks/functions into single line Align clang-format a bit closer to established coding style of the project. Similar to commit 51f9f7ca3019 ("clang-format: do not put enums in single line")' Never merge blocks/case/functions/if/loops into a single line. Signed-off-by: Johann Fischer --- .clang-format | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.clang-format b/.clang-format index b2dc3def4a1..ddcb517cebf 100644 --- a/.clang-format +++ b/.clang-format @@ -12,7 +12,12 @@ --- BasedOnStyle: LLVM AlignConsecutiveMacros: AcrossComments +AllowShortBlocksOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false AllowShortEnumsOnASingleLine: false +AllowShortFunctionsOnASingleLine: None +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false AttributeMacros: - __aligned - __deprecated