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/user_channel/channelcommands.cpp b/user_channel/channelcommands.cpp
index 769f9ff..02a50ce 100644
--- a/user_channel/channelcommands.cpp
+++ b/user_channel/channelcommands.cpp
@@ -19,6 +19,7 @@
#include <ipmid/api.hpp>
#include <phosphor-logging/log.hpp>
+
#include <regex>
using namespace phosphor::logging;
@@ -255,8 +256,8 @@
return responseInvalidFieldRequest();
}
- uint8_t chNum =
- convertCurrentChannelNum(static_cast<uint8_t>(channel), ctx->channel);
+ uint8_t chNum = convertCurrentChannelNum(static_cast<uint8_t>(channel),
+ ctx->channel);
if (!isValidChannel(chNum))
{
log<level::DEBUG>("Get channel Info - No support on channel");
@@ -323,8 +324,8 @@
ipmiGetChannelPayloadSupport(Context::ptr ctx, uint4_t channel,
uint4_t reserved)
{
- uint8_t chNum =
- convertCurrentChannelNum(static_cast<uint8_t>(channel), ctx->channel);
+ uint8_t chNum = convertCurrentChannelNum(static_cast<uint8_t>(channel),
+ ctx->channel);
if (!doesDeviceExist(chNum) || !isValidChannel(chNum) || reserved)
{
@@ -367,8 +368,8 @@
ipmiGetChannelPayloadVersion(Context::ptr ctx, uint4_t chNum,
uint4_t reserved, uint8_t payloadTypeNum)
{
- uint8_t channel =
- convertCurrentChannelNum(static_cast<uint8_t>(chNum), ctx->channel);
+ uint8_t channel = convertCurrentChannelNum(static_cast<uint8_t>(chNum),
+ ctx->channel);
constexpr uint8_t payloadTypeNotSupported = 0x80;
if (reserved || !isValidChannel(channel))