Skip to content

Commit

Permalink
apply clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Parpart <christian@parpart.family>
  • Loading branch information
christianparpart committed May 12, 2024
1 parent 2983142 commit 93dc9e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/contour/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
Expand Down
7 changes: 4 additions & 3 deletions src/vtbackend/Terminal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::u32string, CellLocationRange> extractWordUnderCursor(
CellLocation position) const noexcept;
Expand Down Expand Up @@ -1161,8 +1162,8 @@ class Terminal
template <>
struct fmt::formatter<vtbackend::TraceHandler::PendingSequence>: fmt::formatter<std::string>
{
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<vtbackend::Sequence>(&pendingSequence))
Expand Down

0 comments on commit 93dc9e4

Please sign in to comment.