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: I0d10afa582342818b9d90b168f6f39f71ce4e0f4
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
[AJ: regenerate using .clang-format from openbmc/docs@f44abd66eca8]
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/tests/test_Utils.cpp b/tests/test_Utils.cpp
index 2be1027..8a52699 100644
--- a/tests/test_Utils.cpp
+++ b/tests/test_Utils.cpp
@@ -49,8 +49,8 @@
void createPECIDir()
{
peciDir = fs::path(testDir) / "peci";
- auto peci0 =
- peciDir / "peci-0/device/0-30/peci-cputemp.0/hwmon/hwmon25";
+ auto peci0 = peciDir /
+ "peci-0/device/0-30/peci-cputemp.0/hwmon/hwmon25";
fs::create_directories(peci0);
{
std::ofstream temp0Input{peci0 / "temp0_input"};
@@ -108,9 +108,9 @@
TEST_F(TestUtils, findFiles_in_peci_no_match)
{
std::vector<fs::path> foundPaths;
- auto ret =
- findFiles(peciDir, R"(peci-\d+/\d+-.+/peci-.+/hwmon/hwmon\d+/aaa$)",
- foundPaths, 6);
+ auto ret = findFiles(peciDir,
+ R"(peci-\d+/\d+-.+/peci-.+/hwmon/hwmon\d+/aaa$)",
+ foundPaths, 6);
EXPECT_TRUE(ret);
EXPECT_TRUE(foundPaths.empty());
@@ -119,9 +119,9 @@
TEST_F(TestUtils, findFiles_in_peci_match)
{
std::vector<fs::path> foundPaths;
- auto ret =
- findFiles(peciDir, R"(peci-\d+/\d+-.+/peci-.+/hwmon/hwmon\d+/name$)",
- foundPaths, 6);
+ auto ret = findFiles(peciDir,
+ R"(peci-\d+/\d+-.+/peci-.+/hwmon/hwmon\d+/name$)",
+ foundPaths, 6);
EXPECT_TRUE(ret);
EXPECT_EQ(foundPaths.size(), 1U);
@@ -159,9 +159,9 @@
TEST_F(TestUtils, findFiles_in_sub_peci_match)
{
std::vector<fs::path> foundPaths;
- auto ret =
- findFiles(peciDir / "peci-0", R"(\d+-.+/peci-.+/hwmon/hwmon\d+/name$)",
- foundPaths, 5);
+ auto ret = findFiles(peciDir / "peci-0",
+ R"(\d+-.+/peci-.+/hwmon/hwmon\d+/name$)", foundPaths,
+ 5);
EXPECT_TRUE(ret);
EXPECT_EQ(foundPaths.size(), 1U);