From a44af421ee6f3d5025859c135ff6a0a1df50c1ee Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 17 Oct 2020 02:59:44 +0300 Subject: clang: don't break long string literals --- .clang-format | 1 + test/unit_tests/error.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.clang-format b/.clang-format index 6a78f23..4e77355 100644 --- a/.clang-format +++ b/.clang-format @@ -4,6 +4,7 @@ BasedOnStyle: Chromium AccessModifierOffset: -4 BinPackArguments: false +BreakStringLiterals: false ColumnLimit: 100 IncludeBlocks: Regroup IndentWidth: 4 diff --git a/test/unit_tests/error.cpp b/test/unit_tests/error.cpp index f70d95d..86d2eb6 100644 --- a/test/unit_tests/error.cpp +++ b/test/unit_tests/error.cpp @@ -15,9 +15,9 @@ BOOST_AUTO_TEST_SUITE(error_tests) BOOST_AUTO_TEST_CASE(file_not_found) { const std::string actual{winapi::error::windows(ERROR_FILE_NOT_FOUND, "CreateFileW").what()}; - BOOST_TEST(actual == - "Function CreateFileW failed with error code 2: The system cannot find the file " - "specified."); + const auto expected = + "Function CreateFileW failed with error code 2: The system cannot find the file specified."; + BOOST_TEST(actual == expected); } BOOST_AUTO_TEST_SUITE_END() -- cgit v1.2.3