From c7cc84afee9b6d8b196679bf784751c4052020a3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Dec 2020 13:13:56 +0100 Subject: Clean up includes --- src/event_to_string.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/event_to_string.cpp') diff --git a/src/event_to_string.cpp b/src/event_to_string.cpp index ef9d2c1..788f42e 100644 --- a/src/event_to_string.cpp +++ b/src/event_to_string.cpp @@ -16,8 +16,14 @@ #include "event_to_string.hpp" +#include "ClientID.hpp" +#include "ClientInfo.hpp" #include "ClientType.hpp" #include "Event.hpp" +#include "PortID.hpp" +#include "PortInfo.hpp" +#include "PortType.hpp" +#include "SignalDirection.hpp" #include "warnings.hpp" PATCHAGE_DISABLE_FMT_WARNINGS @@ -25,8 +31,10 @@ PATCHAGE_DISABLE_FMT_WARNINGS #include PATCHAGE_RESTORE_WARNINGS -#include -#include +#include +#include + +#include // IWYU pragma: keep #include namespace patchage { @@ -104,7 +112,7 @@ struct EventPrinter std::string operator()(const PortCreationEvent& event) { - auto result = fmt::format("Add{} {} {} port \"{}\" (\"{}\")", + auto result = fmt::format(R"(Add{} {} {} port "{}" ("{}"))", event.info.is_terminal ? " terminal" : "", (*this)(event.info.type), (*this)(event.info.direction), @@ -120,12 +128,12 @@ struct EventPrinter std::string operator()(const PortDestructionEvent& event) { - return fmt::format("Remove port \"{}\"", event.id); + return fmt::format(R"("Remove port "{}")", event.id); } std::string operator()(const ConnectionEvent& event) { - return fmt::format("Connect \"{}\" to \"{}\"", event.tail, event.head); + return fmt::format(R"(Connect "{}" to "{}")", event.tail, event.head); } std::string operator()(const DisconnectionEvent& event) -- cgit v1.2.1