clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: Ica590f8613f1fb89ab1ca676ac51c1cc7e38d67f
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/monitor/tach_sensor.cpp b/monitor/tach_sensor.cpp
index 1d92231..68c58a2 100644
--- a/monitor/tach_sensor.cpp
+++ b/monitor/tach_sensor.cpp
@@ -60,8 +60,8 @@
{
try
{
- value = util::SDBusPlus::getProperty<T>(bus, path, interface,
- propertyName);
+ value =
+ util::SDBusPlus::getProperty<T>(bus, path, interface, propertyName);
}
catch (const std::exception& e)
{
@@ -76,8 +76,7 @@
size_t method, size_t threshold, bool ignoreAboveMax,
size_t timeout, const std::optional<size_t>& errorDelay,
size_t countInterval, const sdeventplus::Event& event) :
- _bus(bus),
- _fan(fan), _name(FAN_SENSOR_PATH + id),
+ _bus(bus), _fan(fan), _name(FAN_SENSOR_PATH + id),
_invName(fs::path(fan.getName()) / id), _hasTarget(hasTarget),
_funcDelay(funcDelay), _interface(interface), _path(path), _factor(factor),
_offset(offset), _method(method), _threshold(threshold),
@@ -190,8 +189,8 @@
{
if (path)
{
- return sdbusplus::bus::match::rules::propertiesChanged(path.value(),
- interface);
+ return sdbusplus::bus::match::rules::propertiesChanged(
+ path.value(), interface);
}
return sdbusplus::bus::match::rules::propertiesChanged(_name, interface);
}
@@ -205,9 +204,8 @@
return _tachTarget;
}
-std::pair<uint64_t, std::optional<uint64_t>>
- TachSensor::getRange(const size_t lowerDeviation,
- const size_t upperDeviation) const
+std::pair<uint64_t, std::optional<uint64_t>> TachSensor::getRange(
+ const size_t lowerDeviation, const size_t upperDeviation) const
{
// Determine min/max range applying the deviation
uint64_t min = getTarget() * (100 - lowerDeviation) / 100;