clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I8c84201cb2343a8c8a5507a49de0721a1bee7063
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/host-bmc/dbus_to_host_effecters.hpp b/host-bmc/dbus_to_host_effecters.hpp
index c06e8b0..7591381 100644
--- a/host-bmc/dbus_to_host_effecters.hpp
+++ b/host-bmc/dbus_to_host_effecters.hpp
@@ -86,8 +86,8 @@
pldm::utils::DBusHandler* const dbusHandler,
const std::string& jsonPath,
pldm::requester::Handler<pldm::requester::Request>* handler) :
- instanceIdDb(instanceIdDb),
- sockFd(fd), pdrRepo(repo), dbusHandler(dbusHandler), handler(handler)
+ instanceIdDb(instanceIdDb), sockFd(fd), pdrRepo(repo),
+ dbusHandler(dbusHandler), handler(handler)
{
try
{
@@ -141,10 +141,9 @@
* @param[in] effecterId - host effecter id
* @return - PLDM status code
*/
- virtual int
- setHostStateEffecter(size_t effecterInfoIndex,
- std::vector<set_effecter_state_field>& stateField,
- uint16_t effecterId);
+ virtual int setHostStateEffecter(
+ size_t effecterInfoIndex,
+ std::vector<set_effecter_state_field>& stateField, uint16_t effecterId);
/* @brief Fetches the new state value and the index in stateField set which
* needs to be set with the new value in the setStateEffecter call
@@ -166,11 +165,9 @@
* @param[in] dbusInfoIndex - index of dbusInfo within effecterInfo
* @param[in] effecterId - host effecter id
*/
- virtual void createHostEffecterMatch(const std::string& objectPath,
- const std::string& interface,
- size_t effecterInfoIndex,
- size_t dbusInfoIndex,
- uint16_t effecterId);
+ virtual void createHostEffecterMatch(
+ const std::string& objectPath, const std::string& interface,
+ size_t effecterInfoIndex, size_t dbusInfoIndex, uint16_t effecterId);
protected:
pldm::InstanceIdDb* instanceIdDb; //!< Reference to the InstanceIdDb object