clang-format: copy latest and re-format
clang-format-17 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: Idc09d9211b70f7afc008f32e8cb66485ebe0510c
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/estoraged.cpp b/src/estoraged.cpp
index 95f3057..b604a7c 100644
--- a/src/estoraged.cpp
+++ b/src/estoraged.cpp
@@ -58,28 +58,26 @@
volumeInterface->register_method(
"FormatLuks", [this](const std::vector<uint8_t>& password,
Volume::FilesystemType type) {
- this->formatLuks(password, type);
- });
- volumeInterface->register_method("Erase",
- [this](Volume::EraseMethod eraseType) {
- this->erase(eraseType);
+ this->formatLuks(password, type);
});
+ volumeInterface->register_method(
+ "Erase",
+ [this](Volume::EraseMethod eraseType) { this->erase(eraseType); });
volumeInterface->register_method("Lock", [this]() { this->lock(); });
- volumeInterface->register_method("Unlock",
- [this](std::vector<uint8_t>& password) {
- this->unlock(password);
- });
+ volumeInterface->register_method(
+ "Unlock",
+ [this](std::vector<uint8_t>& password) { this->unlock(password); });
volumeInterface->register_method(
"ChangePassword", [this](const std::vector<uint8_t>& oldPassword,
const std::vector<uint8_t>& newPassword) {
- this->changePassword(oldPassword, newPassword);
- });
+ this->changePassword(oldPassword, newPassword);
+ });
volumeInterface->register_property_r(
"Locked", lockedProperty, sdbusplus::vtable::property_::emits_change,
[this](bool& value) {
value = this->isLocked();
return value;
- });
+ });
/* Add Drive interface. */
driveInterface = objectServer.add_interface(
@@ -94,7 +92,7 @@
[this](bool& value) {
value = this->isLocked();
return value;
- });
+ });
driveInterface->register_property_r(
"EncryptionStatus", encryptionStatus,
@@ -102,7 +100,7 @@
[this](Drive::DriveEncryptionState& value) {
value = this->findEncryptionStatus();
return value;
- });
+ });
embeddedLocationInterface = objectServer.add_interface(
objectPath, "xyz.openbmc_project.Inventory.Connector.Embedded");