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: I152f141a5e8343b92b5ce81d3ca16eec77b5606b
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/presence/json_parser.cpp b/presence/json_parser.cpp
index dbdc54b..5de827d 100644
--- a/presence/json_parser.cpp
+++ b/presence/json_parser.cpp
@@ -52,8 +52,7 @@
const auto loggingPath = "/xyz/openbmc_project/logging";
const auto loggingCreateIface = "xyz.openbmc_project.Logging.Create";
-JsonConfig::JsonConfig(sdbusplus::bus_t& bus) : _bus(bus)
-{}
+JsonConfig::JsonConfig(sdbusplus::bus_t& bus) : _bus(bus) {}
void JsonConfig::start()
{
@@ -191,14 +190,14 @@
eeprom["bind_delay_ms"].get<size_t>());
}
- auto fan =
- std::make_tuple(member["name"], member["path"], timeUntilError);
+ auto fan = std::make_tuple(member["name"], member["path"],
+ timeUntilError);
// Create a fan object
fans.emplace_back(std::make_tuple(fan, std::move(sensors)));
// Add fan presence policy
- auto policy =
- getPolicy(member["rpolicy"], fans.back(), std::move(eepromDevice));
+ auto policy = getPolicy(member["rpolicy"], fans.back(),
+ std::move(eepromDevice));
if (policy)
{
policies.emplace_back(std::move(policy));
@@ -325,7 +324,6 @@
try
{
-
util::SDBusPlus::lookupAndCallMethod(
loggingPath, loggingCreateIface, "Create",
"xyz.openbmc_project.Fan.Presence.Error.GPIODeviceUnavailable",