clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I016cb74930cc475843c30bd604e739058effa504
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/sensor.cpp b/src/sensor.cpp
index efebc5d..048dc52 100644
--- a/src/sensor.cpp
+++ b/src/sensor.cpp
@@ -61,7 +61,7 @@
{
self->updateValue(newValue);
}
- });
+ });
}
void Sensor::registerForUpdates(
@@ -92,14 +92,13 @@
{
if (auto listener = weakListener.lock())
{
- listeners.erase(
- std::remove_if(
- listeners.begin(), listeners.end(),
- [listenerToUnregister = listener.get()](const auto& listener) {
+ listeners.erase(std::remove_if(listeners.begin(), listeners.end(),
+ [listenerToUnregister = listener.get()](
+ const auto& listener) {
return (listener.expired() ||
listener.lock().get() == listenerToUnregister);
- }),
- listeners.end());
+ }),
+ listeners.end());
}
}
@@ -138,7 +137,7 @@
*bus, param,
[weakSelf = weak_from_this()](sdbusplus::message_t& message) {
signalProc(weakSelf, message);
- });
+ });
}
void Sensor::signalProc(const std::weak_ptr<Sensor>& weakSelf,