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: I86d194886a4dcd325364041d4c7745f4ea22fd65
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/test/helper.cpp b/test/helper.cpp
index 0a67458..bbb0410 100644
--- a/test/helper.cpp
+++ b/test/helper.cpp
@@ -1,6 +1,7 @@
#include "helper.hpp"
#include <ipmid/api-types.hpp>
+
#include <optional>
#include <span>
#include <tuple>
diff --git a/test/helper.hpp b/test/helper.hpp
index 8d33f5c..ac2c572 100644
--- a/test/helper.hpp
+++ b/test/helper.hpp
@@ -1,4 +1,5 @@
#include <ipmid/api-types.hpp>
+
#include <optional>
#include <span>
#include <tuple>
diff --git a/test/ipmi_validate_unittest.cpp b/test/ipmi_validate_unittest.cpp
index 6bf4200..af6cce9 100644
--- a/test/ipmi_validate_unittest.cpp
+++ b/test/ipmi_validate_unittest.cpp
@@ -10,7 +10,6 @@
TEST(IpmiValidateTest, VerifyCommandMinimumLengths)
{
-
struct TestCase
{
BlobOEMCommands cmd;
diff --git a/test/manager_mock.hpp b/test/manager_mock.hpp
index 5a94cf4..e43a856 100644
--- a/test/manager_mock.hpp
+++ b/test/manager_mock.hpp
@@ -3,6 +3,7 @@
#include "manager.hpp"
#include <blobs-ipmid/blobs.hpp>
+
#include <memory>
#include <string>
diff --git a/test/process_unittest.cpp b/test/process_unittest.cpp
index 1a0d6e4..9d0d06c 100644
--- a/test/process_unittest.cpp
+++ b/test/process_unittest.cpp
@@ -3,8 +3,9 @@
#include "manager_mock.hpp"
#include "process.hpp"
-#include <cstring>
#include <ipmiblob/test/crc_mock.hpp>
+
+#include <cstring>
#include <span>
#include <gtest/gtest.h>
@@ -212,8 +213,8 @@
std::vector<uint8_t> request(MAX_IPMI_BUFFER - 1);
uint32_t payloadLen = sizeof(uint16_t) + sizeof(uint8_t);
- IpmiBlobHandler h = [payloadLen](ManagerInterface*,
- std::span<const uint8_t>) {
+ IpmiBlobHandler h =
+ [payloadLen](ManagerInterface*, std::span<const uint8_t>) {
std::vector<uint8_t> output(payloadLen, 0);
output[2] = 0x56;
return ipmi::responseSuccess(output);
@@ -238,8 +239,8 @@
std::vector<uint8_t> request(MAX_IPMI_BUFFER - 1);
uint32_t payloadLen = sizeof(uint16_t) + sizeof(uint8_t);
- IpmiBlobHandler h = [payloadLen](ManagerInterface*,
- std::span<const uint8_t>) {
+ IpmiBlobHandler h =
+ [payloadLen](ManagerInterface*, std::span<const uint8_t>) {
std::vector<uint8_t> output(payloadLen, 0);
output[2] = 0x56;
return ipmi::responseSuccess(output);