From 936edd0d7288ce268addb4a7f1c3fc7f0d5c97bb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Jun 2026 19:24:49 +0200 Subject: update .clang-format --- .clang-format | 3 +++ src/convert.cpp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index cc61b8a..25d1caf 100644 --- a/.clang-format +++ b/.clang-format @@ -5,14 +5,17 @@ BasedOnStyle: Chromium IndentWidth: 4 AccessModifierOffset: -4 +AlignAfterOpenBracket: BlockIndent AlignConsecutiveMacros: AcrossComments AllowShortFunctionsOnASingleLine: Empty BinPackArguments: false +BinPackParameters: OnePerLine BreakConstructorInitializers: BeforeComma BreakInheritanceList: BeforeComma BreakStringLiterals: false ColumnLimit: 100 IncludeBlocks: Regroup +PenaltyReturnTypeOnItsOwnLine: 1000 SpacesBeforeTrailingComments: 1 WrapNamespaceBodyWithEmptyLines: Always diff --git a/src/convert.cpp b/src/convert.cpp index 475fd8c..458bed1 100644 --- a/src/convert.cpp +++ b/src/convert.cpp @@ -76,7 +76,8 @@ void verify_output(const std::vector& expected, int32_t _actual_size) { if (!int_to_size_t(_actual_size, actual_size) || expected.size() != actual_size) throw std::runtime_error{ - std::format("Expected output length {}, got {}", expected.size(), _actual_size)}; + std::format("Expected output length {}, got {}", expected.size(), _actual_size) + }; } } // namespace -- cgit v1.3