diff options
| -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 |
