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.hpp b/monitor/tach_sensor.hpp
index 1468ab1..74eede6 100644
--- a/monitor/tach_sensor.hpp
+++ b/monitor/tach_sensor.hpp
@@ -125,10 +125,9 @@
* @param[out] value - the value to store the property value in
*/
template <typename T>
- static void readPropertyFromMessage(sdbusplus::message_t& msg,
- const std::string& interface,
- const std::string& propertyName,
- T& value)
+ static void readPropertyFromMessage(
+ sdbusplus::message_t& msg, const std::string& interface,
+ const std::string& propertyName, T& value)
{
std::string sensor;
std::map<std::string, std::variant<T>> data;
@@ -350,9 +349,8 @@
*
* @return pair - Min/Max(optional) range of speeds allowed
*/
- std::pair<uint64_t, std::optional<uint64_t>>
- getRange(const size_t lowerDeviation,
- const size_t upperDeviation) const;
+ std::pair<uint64_t, std::optional<uint64_t>> getRange(
+ const size_t lowerDeviation, const size_t upperDeviation) const;
/**
* @brief Processes the current state of the sensor