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: I50e60f2b1a9db9039cb5450ae509064eaeaa9d2e
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/image_manager.cpp b/image_manager.cpp
index f998871..baa0571 100644
--- a/image_manager.cpp
+++ b/image_manager.cpp
@@ -45,8 +45,7 @@
{
fs::path path;
- explicit RemovablePath(const fs::path& path) : path(path)
- {}
+ explicit RemovablePath(const fs::path& path) : path(path) {}
~RemovablePath()
{
if (!path.empty())
@@ -143,8 +142,8 @@
}
// Get machine name for image to be upgraded
- std::string machineStr =
- Version::getValue(manifestPath.string(), "MachineName");
+ std::string machineStr = Version::getValue(manifestPath.string(),
+ "MachineName");
if (!machineStr.empty())
{
if (machineStr != currMachine)
@@ -189,8 +188,8 @@
auto purpose = convertedPurpose.value_or(Version::VersionPurpose::Unknown);
// Get ExtendedVersion
- std::string extendedVersion =
- Version::getValue(manifestPath.string(), "ExtendedVersion");
+ std::string extendedVersion = Version::getValue(manifestPath.string(),
+ "ExtendedVersion");
// Get CompatibleNames
std::vector<std::string> compatibleNames =
@@ -209,8 +208,8 @@
// active versions on D-Bus that is not managed by this service.
// So check D-Bus if there is an existing version.
auto allSoftwareObjs = getSoftwareObjects(bus);
- auto it =
- std::find(allSoftwareObjs.begin(), allSoftwareObjs.end(), objPath);
+ auto it = std::find(allSoftwareObjs.begin(), allSoftwareObjs.end(),
+ objPath);
if (versions.find(id) == versions.end() && it == allSoftwareObjs.end())
{
// Rename the temp dir to image dir