tests: reduce excessive whitespace
I know that clang-format is happy to align the macro trailing
backslashes, but enough is enough. Also, having a source file "correctly
formatted" by a tool is not a good thing if the text starts at column
105.
Also, clang changed the AlignEscapedNewlinesLeft to an enum
AlignEscapedNewlines, and IMHO this new option is what makes most sense.
Still, it would try to rewrap some stuff for me, but I think this is a
good step.
Change-Id: Id03e489ada2b51ba4698ce263f0a915cebf27ef6
diff --git a/tests/sysrepo-helpers/notifications.cpp b/tests/sysrepo-helpers/notifications.cpp
index 756943e..bcd8582 100644
--- a/tests/sysrepo-helpers/notifications.cpp
+++ b/tests/sysrepo-helpers/notifications.cpp
@@ -9,20 +9,21 @@
#include "sysrepo-helpers/common.h"
NotificationWatcher::NotificationWatcher(sysrepo::Session& session, const std::string& xpath)
- : m_sub{session.onNotification(moduleFromXpath(xpath),
- [this, xpath](sysrepo::Session, uint32_t, const sysrepo::NotificationType type, const std::optional<libyang::DataNode> tree, const sysrepo::NotificationTimeStamp) {
- if (type != sysrepo::NotificationType::Realtime) {
- return;
- }
- Values data;
- for (const auto& it : tree->findPath(xpath)->childrenDfs()) {
- if (!it.isTerm()) {
- continue;
- }
- data[it.path().substr(xpath.size() + 1 /* trailing slash */)] = std::visit(libyang::ValuePrinter{}, it.asTerm().value());
- }
- notified(data);
- },
- xpath)}
+ : m_sub{session.onNotification(
+ moduleFromXpath(xpath),
+ [this, xpath](sysrepo::Session, uint32_t, const sysrepo::NotificationType type, const std::optional<libyang::DataNode> tree, const sysrepo::NotificationTimeStamp) {
+ if (type != sysrepo::NotificationType::Realtime) {
+ return;
+ }
+ Values data;
+ for (const auto& it : tree->findPath(xpath)->childrenDfs()) {
+ if (!it.isTerm()) {
+ continue;
+ }
+ data[it.path().substr(xpath.size() + 1 /* trailing slash */)] = std::visit(libyang::ValuePrinter{}, it.asTerm().value());
+ }
+ notified(data);
+ },
+ xpath)}
{
}