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/ExitAirTempSensor.cpp b/src/ExitAirTempSensor.cpp
index 9beae58..0797bf0 100644
--- a/src/ExitAirTempSensor.cpp
+++ b/src/ExitAirTempSensor.cpp
@@ -67,7 +67,6 @@
const std::string& type,
std::function<void(const double&, sdbusplus::message_t&)>&& callback)
{
-
std::function<void(sdbusplus::message_t & message)> eventHandler =
[callback{std::move(callback)}](sdbusplus::message_t& message) {
std::string objectName;
@@ -192,7 +191,6 @@
void CFMSensor::setupMatches()
{
-
std::weak_ptr<CFMSensor> weakRef = weak_from_this();
setupSensorMatch(
matches, *dbusConnection, "fan_tach",
@@ -226,7 +224,6 @@
uint64_t maxRpm = 100;
if (!ec)
{
-
const auto* cfm = std::get_if<double>(&cfmVariant);
if (cfm != nullptr && *cfm >= minSystemCfm)
{
@@ -404,7 +401,6 @@
double totalCFM = 0;
for (const std::string& tachName : tachs)
{
-
auto findReading = std::find_if(
tachReadings.begin(), tachReadings.end(),
[&](const auto& item) { return item.first.ends_with(tachName); });
@@ -619,8 +615,8 @@
{
return;
}
- double reading =
- std::visit(VariantToDoubleVisitor(), value);
+ double reading = std::visit(VariantToDoubleVisitor(),
+ value);
if constexpr (debug)
{
std::cerr << cbPath << "Reading " << reading << "\n";
@@ -639,7 +635,6 @@
void ExitAirTempSensor::updateReading(void)
{
-
double val = 0.0;
if (calculate(val))
{
@@ -930,7 +925,6 @@
int main()
{
-
boost::asio::io_context io;
auto systemBus = std::make_shared<sdbusplus::asio::connection>(io);
sdbusplus::asio::object_server objectServer(systemBus, true);