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: I61b093f75011417cc9c7acf9605200f4fa429bac
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/common/flight_recorder.hpp b/common/flight_recorder.hpp
index 7cf3ae9..a2710f3 100644
--- a/common/flight_recorder.hpp
+++ b/common/flight_recorder.hpp
@@ -79,8 +79,8 @@
int currentIndex = index++;
tapeRecorder[currentIndex] = std::make_tuple(
pldm::utils::getCurrentSystemTime(), isRequest, buffer);
- index =
- (currentIndex == FLIGHT_RECORDER_MAX_ENTRIES - 1) ? 0 : index;
+ index = (currentIndex == FLIGHT_RECORDER_MAX_ENTRIES - 1) ? 0
+ : index;
}
}
diff --git a/common/utils.cpp b/common/utils.cpp
index 7d06fa8..fca6985 100644
--- a/common/utils.cpp
+++ b/common/utils.cpp
@@ -281,8 +281,8 @@
{
auto setDbusValue = [&dBusMap, this](const auto& variant) {
auto& bus = getBus();
- auto service =
- getService(dBusMap.objectPath.c_str(), dBusMap.interface.c_str());
+ auto service = getService(dBusMap.objectPath.c_str(),
+ dBusMap.interface.c_str());
auto method = bus.new_method_call(
service.c_str(), dBusMap.objectPath.c_str(), dbusProperties, "Set");
method.append(dBusMap.interface.c_str(), dBusMap.propertyName.c_str(),
@@ -351,8 +351,8 @@
{
auto& bus = DBusHandler::getBus();
auto service = getService(objPath, dbusInterface);
- auto method =
- bus.new_method_call(service.c_str(), objPath, dbusProperties, "Get");
+ auto method = bus.new_method_call(service.c_str(), objPath, dbusProperties,
+ "Get");
method.append(dbusInterface, dbusProp);
PropertyValue value{};
auto reply = bus.call(method);
@@ -502,8 +502,8 @@
{
return sensorPdr->sensor_id;
}
- possible_states_start +=
- possibleStateSize + sizeof(setId) + sizeof(possibleStateSize);
+ possible_states_start += possibleStateSize + sizeof(setId) +
+ sizeof(possibleStateSize);
}
}
return PLDM_INVALID_EFFECTER_ID;
diff --git a/common/utils.hpp b/common/utils.hpp
index 0efb89b..f1357db 100644
--- a/common/utils.hpp
+++ b/common/utils.hpp
@@ -41,8 +41,7 @@
CustomFD(CustomFD&&) = delete;
CustomFD& operator=(CustomFD&&) = delete;
- CustomFD(int fd) : fd(fd)
- {}
+ CustomFD(int fd) : fd(fd) {}
~CustomFD()
{
@@ -254,8 +253,8 @@
auto getDbusProperty(const char* objPath, const char* dbusProp,
const char* dbusInterface)
{
- auto VariantValue =
- getDbusPropertyVariant(objPath, dbusProp, dbusInterface);
+ auto VariantValue = getDbusPropertyVariant(objPath, dbusProp,
+ dbusInterface);
return std::get<Property>(VariantValue);
}