summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}