From 93dc9e45efa66e0c0b79b7dfdd5fd0498d18e4e5 Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Sun, 12 May 2024 22:04:13 +0200 Subject: [PATCH] apply clang-format Signed-off-by: Christian Parpart --- src/contour/Config.cpp | 7 +++---- src/vtbackend/Terminal.h | 7 ++++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/contour/Config.cpp b/src/contour/Config.cpp index 81d801eef0..b05e7a4072 100644 --- a/src/contour/Config.cpp +++ b/src/contour/Config.cpp @@ -1858,12 +1858,11 @@ std::string createString(Config const& c) auto wordDelimiters = c.extendedWordDelimiters.value(); wordDelimiters = std::regex_replace(wordDelimiters, std::regex("\\\\"), "\\$&"); /* \ -> \\ */ wordDelimiters = std::regex_replace(wordDelimiters, std::regex("\""), "\\$&"); /* " -> \" */ - doc.append( - fmt::format(fmt::runtime(writer.process(documentation::ExtendedWordDelimiters.value, wordDelimiters)), - fmt::arg("comment", "#"))); + doc.append(fmt::format( + fmt::runtime(writer.process(documentation::ExtendedWordDelimiters.value, wordDelimiters)), + fmt::arg("comment", "#"))); }; - if (c.platformPlugin.value() == "") { processWithDoc(documentation::PlatformPlugin, std::string { "auto" }); diff --git a/src/vtbackend/Terminal.h b/src/vtbackend/Terminal.h index e7a872c856..1b4bc37229 100644 --- a/src/vtbackend/Terminal.h +++ b/src/vtbackend/Terminal.h @@ -877,7 +877,8 @@ class Terminal // Tests if the grid cell at the given location does contain a word delimiter. [[nodiscard]] bool wordDelimited(CellLocation position) const noexcept; - [[nodiscard]] bool wordDelimited(CellLocation position, std::u32string_view wordDelimiters) const noexcept; + [[nodiscard]] bool wordDelimited(CellLocation position, + std::u32string_view wordDelimiters) const noexcept; [[nodiscard]] std::tuple extractWordUnderCursor( CellLocation position) const noexcept; @@ -1161,8 +1162,8 @@ class Terminal template <> struct fmt::formatter: fmt::formatter { - auto format(vtbackend::TraceHandler::PendingSequence const& pendingSequence, format_context& ctx) - -> format_context::iterator + auto format(vtbackend::TraceHandler::PendingSequence const& pendingSequence, + format_context& ctx) -> format_context::iterator { std::string value; if (auto const* p = std::get_if(&pendingSequence))