From 25e693cc46324b4ec588530de542bba8af6f47c6 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 21:11:11 +0100 Subject: style: add vertical compression rules to clang-format - Enabled AllowShortFunctionsOnASingleLine: All - Enabled AllowShortBlocksOnASingleLine: Always - Enabled AllowShortIfStatementsOnASingleLine: Always - Enabled AllowShortLoopsOnASingleLine: true - Set MaxEmptyLinesToKeep: 1 - Applied formatting to all source files. --- .clang-format | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index b9e86d8..cb492a9 100644 --- a/.clang-format +++ b/.clang-format @@ -4,7 +4,16 @@ BasedOnStyle: LLVM IndentWidth: 2 UseTab: Never ColumnLimit: 80 -AllowShortFunctionsOnASingleLine: None +AllowShortBlocksOnASingleLine: Always +AllowShortCaseLabelsOnASingleLine: true +AllowShortEnumsOnASingleLine: true +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: Always +AllowShortLambdasOnASingleLine: All +AllowShortLoopsOnASingleLine: true +AllowShortNamespacesOnASingleLine: true +MaxEmptyLinesToKeep: 1 +KeepEmptyLinesAtTheStartOfBlocks: false AlwaysBreakBeforeMultilineStrings: true FixNamespaceComments: false ... -- cgit v1.2.3