clang-format: copy latest and re-format
clang-format-16 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: I267a17e007b99caed10aef060e7dd9a0bcc5fc2e
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/sensor.cpp b/sensor.cpp
index 1d031f4..e53b01c 100644
--- a/sensor.cpp
+++ b/sensor.cpp
@@ -10,16 +10,17 @@
#include <fmt/format.h>
+#include <phosphor-logging/elog-errors.hpp>
+#include <xyz/openbmc_project/Common/error.hpp>
+#include <xyz/openbmc_project/Sensor/Device/error.hpp>
+
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstring>
#include <filesystem>
#include <future>
-#include <phosphor-logging/elog-errors.hpp>
#include <thread>
-#include <xyz/openbmc_project/Common/error.hpp>
-#include <xyz/openbmc_project/Sensor/Device/error.hpp>
namespace sensor
{
@@ -221,8 +222,8 @@
std::string entry = hwmon::entry::fault;
bool functional = true;
- auto sysfsFullPath =
- sysfs::make_sysfs_path(_ioAccess->path(), faultName, faultID, entry);
+ auto sysfsFullPath = sysfs::make_sysfs_path(_ioAccess->path(), faultName,
+ faultID, entry);
if (fs::exists(sysfsFullPath))
{
_hasFaultFile = true;
@@ -313,9 +314,9 @@
if (asyncIter == timedoutMap.end())
{
// If sensor not found in timedoutMap, spawn an async thread
- asyncThread =
- std::async(std::launch::async, &hwmonio::HwmonIOInterface::read,
- ioAccess, type, id, sensor, retries, delay);
+ asyncThread = std::async(std::launch::async,
+ &hwmonio::HwmonIOInterface::read, ioAccess,
+ type, id, sensor, retries, delay);
valueIsValid = true;
}
else