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: I0d10afa582342818b9d90b168f6f39f71ce4e0f4
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
[AJ: regenerate using .clang-format from openbmc/docs@f44abd66eca8]
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/src/IntelCPUSensor.cpp b/src/IntelCPUSensor.cpp
index fa26332..2bebcd8 100644
--- a/src/IntelCPUSensor.cpp
+++ b/src/IntelCPUSensor.cpp
@@ -66,8 +66,8 @@
}
else
{
- interfacePath =
- "/xyz/openbmc_project/sensors/temperature/" + name;
+ interfacePath = "/xyz/openbmc_project/sensors/temperature/" +
+ name;
units = sensor_paths::unitDegreesC;
minValue = -128;
maxValue = 127;
@@ -192,8 +192,8 @@
{
const auto& [suffix, oldValue, dbusName] = vectorItem;
auto attrPath = boost::replace_all_copy(path, fileItem, suffix);
- if (auto newVal =
- readFile(attrPath, IntelCPUSensor::sensorScaleFactor))
+ if (auto newVal = readFile(attrPath,
+ IntelCPUSensor::sensorScaleFactor))
{
updateProperty(sensorInterface, oldValue, *newVal,
dbusName);
@@ -258,7 +258,6 @@
if (rdLen > 0)
{
-
try
{
rawValue = std::stod(response);