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: I44441096113929ce96eb1439e2932e6ff3c87f27
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/dcmihandler.cpp b/dcmihandler.cpp
index f06441b..e525f8e 100644
--- a/dcmihandler.cpp
+++ b/dcmihandler.cpp
@@ -4,19 +4,20 @@
#include "user_channel/channel_layer.hpp"
-#include <bitset>
-#include <cmath>
-#include <fstream>
#include <ipmid/api.hpp>
#include <ipmid/utils.hpp>
#include <nlohmann/json.hpp>
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/log.hpp>
#include <sdbusplus/bus.hpp>
-#include <variant>
#include <xyz/openbmc_project/Common/error.hpp>
#include <xyz/openbmc_project/Network/EthernetInterface/server.hpp>
+#include <bitset>
+#include <cmath>
+#include <fstream>
+#include <variant>
+
using namespace phosphor::logging;
using sdbusplus::xyz::openbmc_project::Network::server::EthernetInterface;
@@ -253,8 +254,8 @@
sdbusplus::bus_t bus{ipmid_get_sd_bus_connection()};
auto ethdevice = ipmi::getChannelName(ethernetDefaultChannelNum);
- auto ethernetObj =
- ipmi::getDbusObject(bus, ethernetIntf, networkRoot, ethdevice);
+ auto ethernetObj = ipmi::getDbusObject(bus, ethernetIntf, networkRoot,
+ ethdevice);
auto service = ipmi::getService(bus, ethernetIntf, ethernetObj.first);
auto value = ipmi::getDbusProperty(bus, service, ethernetObj.first,
ethernetIntf, "DHCPEnabled");
@@ -690,7 +691,6 @@
ipmi_response_t response,
ipmi_data_len_t data_len, ipmi_context_t)
{
-
std::ifstream dcmiCapFile(dcmi::gDCMICapabilitiesConfig);
if (!dcmiCapFile.is_open())
{
@@ -776,8 +776,8 @@
sdbusplus::bus_t bus{ipmid_get_sd_bus_connection()};
auto result = ipmi::getAllDbusProperties(
bus, dbusService, dbusPath, "xyz.openbmc_project.Sensor.Value");
- auto temperature =
- std::visit(ipmi::VariantToDoubleVisitor(), result.at("Value"));
+ auto temperature = std::visit(ipmi::VariantToDoubleVisitor(),
+ result.at("Value"));
double absTemp = std::abs(temperature);
auto findFactor = result.find("Scale");
@@ -828,8 +828,8 @@
std::string service;
try
{
- service =
- ipmi::getService(bus, "xyz.openbmc_project.Sensor.Value", path);
+ service = ipmi::getService(bus, "xyz.openbmc_project.Sensor.Value",
+ path);
}
catch (const std::exception& e)
{
@@ -1102,7 +1102,6 @@
ipmi_response_t response, ipmi_data_len_t data_len,
ipmi_context_t)
{
-
auto requestData =
reinterpret_cast<const dcmi::GetConfParamsRequest*>(request);
auto responseData =