clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: I95f756bab7f403af49a94011bbb1fe4e51f985ad
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/common/utils.hpp b/common/utils.hpp
index 37765ba..cd02f6c 100644
--- a/common/utils.hpp
+++ b/common/utils.hpp
@@ -208,24 +208,24 @@
virtual std::string getService(const char* path,
const char* interface) const = 0;
- virtual GetSubTreeResponse
- getSubtree(const std::string& path, int depth,
- const std::vector<std::string>& ifaceList) const = 0;
+ virtual GetSubTreeResponse getSubtree(
+ const std::string& path, int depth,
+ const std::vector<std::string>& ifaceList) const = 0;
- virtual GetSubTreePathsResponse
- getSubTreePaths(const std::string& objectPath, int depth,
- const std::vector<std::string>& ifaceList) const = 0;
+ virtual GetSubTreePathsResponse getSubTreePaths(
+ const std::string& objectPath, int depth,
+ const std::vector<std::string>& ifaceList) const = 0;
virtual void setDbusProperty(const DBusMapping& dBusMap,
const PropertyValue& value) const = 0;
- virtual PropertyValue
- getDbusPropertyVariant(const char* objPath, const char* dbusProp,
- const char* dbusInterface) const = 0;
+ virtual PropertyValue getDbusPropertyVariant(
+ const char* objPath, const char* dbusProp,
+ const char* dbusInterface) const = 0;
- virtual PropertyMap
- getDbusPropertiesVariant(const char* serviceName, const char* objPath,
- const char* dbusInterface) const = 0;
+ virtual PropertyMap getDbusPropertiesVariant(
+ const char* serviceName, const char* objPath,
+ const char* dbusInterface) const = 0;
};
/**
@@ -272,9 +272,9 @@
*
* @throw sdbusplus::exception_t when it fails
*/
- GetSubTreeResponse
- getSubtree(const std::string& path, int depth,
- const std::vector<std::string>& ifaceList) const override;
+ GetSubTreeResponse getSubtree(
+ const std::string& path, int depth,
+ const std::vector<std::string>& ifaceList) const override;
/** @brief Get Subtree path response from the mapper
*
@@ -299,9 +299,9 @@
*
* @throw sdbusplus::exception_t when it fails
*/
- PropertyValue
- getDbusPropertyVariant(const char* objPath, const char* dbusProp,
- const char* dbusInterface) const override;
+ PropertyValue getDbusPropertyVariant(
+ const char* objPath, const char* dbusProp,
+ const char* dbusInterface) const override;
/** @brief Get All properties(type: variant) from the requested dbus
*
@@ -313,9 +313,9 @@
*
* @throw sdbusplus::exception_t when it fails
*/
- PropertyMap
- getDbusPropertiesVariant(const char* serviceName, const char* objPath,
- const char* dbusInterface) const override;
+ PropertyMap getDbusPropertiesVariant(
+ const char* serviceName, const char* objPath,
+ const char* dbusInterface) const override;
/** @brief The template function to get property from the requested dbus
* path
@@ -576,8 +576,8 @@
*
* @return Fru string or nullopt.
*/
-std::optional<std::string>
- fruFieldValuestring(const uint8_t* value, const uint8_t& length);
+std::optional<std::string> fruFieldValuestring(const uint8_t* value,
+ const uint8_t& length);
/** @brief Convert the Fru Uint32 raw data from PLDM Fru to uint32_t
*