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/app/channel.cpp b/app/channel.cpp
index 7d51bfe..5da9739 100644
--- a/app/channel.cpp
+++ b/app/channel.cpp
@@ -5,14 +5,15 @@
#include <arpa/inet.h>
#include <boost/process/child.hpp>
-#include <fstream>
#include <ipmid/types.hpp>
#include <ipmid/utils.hpp>
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/log.hpp>
+#include <xyz/openbmc_project/Common/error.hpp>
+
+#include <fstream>
#include <set>
#include <string>
-#include <xyz/openbmc_project/Common/error.hpp>
using namespace phosphor::logging;
using namespace sdbusplus::xyz::openbmc_project::Common::Error;
@@ -139,8 +140,8 @@
{
try
{
- std::tie(cipherRecords, supportedAlgorithms) =
- cipher::getCipherRecords();
+ std::tie(cipherRecords,
+ supportedAlgorithms) = cipher::getCipherRecords();
recordInit = true;
}
catch (const std::exception& e)
@@ -149,8 +150,8 @@
}
}
- const std::vector<uint8_t>& records =
- algoSelectBit ? cipherRecords : supportedAlgorithms;
+ const std::vector<uint8_t>& records = algoSelectBit ? cipherRecords
+ : supportedAlgorithms;
static constexpr auto respSize = 16;
// Session support is available in active LAN channels.
@@ -166,8 +167,8 @@
// set of 16 and so on.
// Calculate the number of record data bytes to be returned.
- auto start =
- std::min(static_cast<size_t>(listIndex) * respSize, records.size());
+ auto start = std::min(static_cast<size_t>(listIndex) * respSize,
+ records.size());
auto end = std::min((static_cast<size_t>(listIndex) * respSize) + respSize,
records.size());
auto size = end - start;