diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 19:24:49 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 19:24:49 +0200 |
| commit | 936edd0d7288ce268addb4a7f1c3fc7f0d5c97bb (patch) | |
| tree | 0e1b1cd4add0b2fe574e515d2c8f29caef92dc9a | |
| parent | cmake: move main library code to src/ (diff) | |
| download | winapi-utf8-936edd0d7288ce268addb4a7f1c3fc7f0d5c97bb.tar.gz winapi-utf8-936edd0d7288ce268addb4a7f1c3fc7f0d5c97bb.zip | |
update .clang-format
Diffstat (limited to '')
| -rw-r--r-- | .clang-format | 3 | ||||
| -rw-r--r-- | src/convert.cpp | 3 |
2 files changed, 5 insertions, 1 deletions
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<CharT>& 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 |
