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/ADCSensorMain.cpp b/src/ADCSensorMain.cpp
index 4987f1f..af4e0c2 100644
--- a/src/ADCSensorMain.cpp
+++ b/src/ADCSensorMain.cpp
@@ -201,8 +201,8 @@
auto findCPU = baseConfiguration->second.find("CPURequired");
if (findCPU != baseConfiguration->second.end())
{
- size_t index =
- std::visit(VariantToIntVisitor(), findCPU->second);
+ size_t index = std::visit(VariantToIntVisitor(),
+ findCPU->second);
auto presenceFind = cpuPresence.find(index);
if (presenceFind == cpuPresence.end())
{
@@ -239,8 +239,8 @@
}
}
- float pollRate =
- getPollRate(baseConfiguration->second, pollRateDefault);
+ float pollRate = getPollRate(baseConfiguration->second,
+ pollRateDefault);
PowerState readState = getPowerState(baseConfiguration->second);
auto& sensor = sensors[sensorName];