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: I913685cddaf9a2256b3edcd3ced8e89a32386394
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/test/ldap_config_test.cpp b/test/ldap_config_test.cpp
index febe687..7685543 100644
--- a/test/ldap_config_test.cpp
+++ b/test/ldap_config_test.cpp
@@ -30,8 +30,7 @@
class TestLDAPConfig : public testing::Test
{
public:
- TestLDAPConfig() : bus(sdbusplus::bus::new_default())
- {}
+ TestLDAPConfig() : bus(sdbusplus::bus::new_default()) {}
void SetUp() override
{
using namespace phosphor::ldap;
@@ -569,8 +568,8 @@
// Permission of the persistent file should be 640
// Others should not be allowed to read.
- auto permission =
- fs::perms::owner_read | fs::perms::owner_write | fs::perms::group_read;
+ auto permission = fs::perms::owner_read | fs::perms::owner_write |
+ fs::perms::group_read;
auto persistFilepath = std::string(dir.c_str());
persistFilepath += adDbusObjectPath;
persistFilepath += "/config";
diff --git a/test/mock_user_mgr.hpp b/test/mock_user_mgr.hpp
index aa5409b..3440299 100644
--- a/test/mock_user_mgr.hpp
+++ b/test/mock_user_mgr.hpp
@@ -12,8 +12,7 @@
class MockManager : public UserMgr
{
public:
- MockManager(sdbusplus::bus_t& bus, const char* path) : UserMgr(bus, path)
- {}
+ MockManager(sdbusplus::bus_t& bus, const char* path) : UserMgr(bus, path) {}
MOCK_METHOD0(getPrivilegeMapperObject, DbusUserObj());
MOCK_METHOD1(userLockedForFailedAttempt, bool(const std::string& userName));
diff --git a/test/user_mgr_test.cpp b/test/user_mgr_test.cpp
index 3a07fda..e757803 100644
--- a/test/user_mgr_test.cpp
+++ b/test/user_mgr_test.cpp
@@ -881,7 +881,6 @@
UserMgrInTest,
CheckAndThrowForDisallowedGroupCreationThrowsIfGroupNameHasDisallowedCharacters)
{
-
EXPECT_THROW(
checkAndThrowForDisallowedGroupCreation("openbmc_rfp_?owerService"),
sdbusplus::xyz::openbmc_project::Common::Error::InvalidArgument);
@@ -894,7 +893,6 @@
UserMgrInTest,
CheckAndThrowForDisallowedGroupCreationThrowsIfGroupNameHasDisallowedPrefix)
{
-
EXPECT_THROW(
checkAndThrowForDisallowedGroupCreation("google_rfp_"),
sdbusplus::xyz::openbmc_project::Common::Error::InvalidArgument);