summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-02-28 18:59:55 +0100
committerMitya Selivanov <automainint@guattari.tech>2024-02-28 18:59:55 +0100
commitc6474ea8adbbc21878eebaecbca748fa4f65f8ee (patch)
treef97b63e5f6f7eb338a87d0ebe254f19aa5370cde
parent6b66eeb568180591e263eb42766beb44c4d6448c (diff)
downloadkit-c6474ea8adbbc21878eebaecbca748fa4f65f8ee.zip
format config
-rw-r--r--.clang-format2
-rw-r--r--source/kit/test.h6
2 files changed, 3 insertions, 5 deletions
diff --git a/.clang-format b/.clang-format
index b4483b5..11fb6f9 100644
--- a/.clang-format
+++ b/.clang-format
@@ -45,7 +45,7 @@ AlignConsecutiveDeclarations: Consecutive
AlignEscapedNewlines: Left
AllowShortLambdasOnASingleLine: All
AllowShortFunctionsOnASingleLine: Empty
-AllowShortBlocksOnASingleLine: Never
+AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowAllArgumentsOnNextLine: true
diff --git a/source/kit/test.h b/source/kit/test.h
index efbce5f..ca2b7c0 100644
--- a/source/kit/test.h
+++ b/source/kit/test.h
@@ -505,8 +505,7 @@ int kit_run_tests(int argc, char **argv) {
for (;
s[k] != '\0' && kit_tests_list.v[j].test_file[k] != '\0' &&
s[k] == kit_tests_list.v[j].test_file[k];
- k++) {
- }
+ k++) { }
if (file_root == -1 || file_root > k)
file_root = k;
}
@@ -882,8 +881,7 @@ int kit_run_benchmarks(int argc, char **argv) {
int k = 0;
for (; s[k] != '\0' && bench->bench_file[k] != '\0' &&
s[k] == bench->bench_file[k];
- k++) {
- }
+ k++) { }
if (file_root == -1 || file_root > k)
file_root = k;
}