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: Ib8dfa202f1d59add43fc0d55ab2bf388c8e7c877
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/libpldmresponder/platform.cpp b/libpldmresponder/platform.cpp
index ad8948c..5f71252 100644
--- a/libpldmresponder/platform.cpp
+++ b/libpldmresponder/platform.cpp
@@ -75,26 +75,26 @@
// generate the PDR structures. This function iterates through the map to
// invoke all lambdas, so that all PDR types can be created.
- const std::map<Type, generatePDR>
- generateHandlers = {{PLDM_STATE_EFFECTER_PDR,
- [this](const DBusHandler& dBusIntf,
- const auto& json, RepoInterface& repo) {
+ const std::map<Type, generatePDR> generateHandlers = {
+ {PLDM_STATE_EFFECTER_PDR,
+ [this](const DBusHandler& dBusIntf, const auto& json,
+ RepoInterface& repo) {
pdr_state_effecter::generateStateEffecterPDR<pldm::utils::DBusHandler,
Handler>(dBusIntf, json,
*this, repo);
- }},
- {PLDM_NUMERIC_EFFECTER_PDR,
- [this](const DBusHandler& dBusIntf,
- const auto& json, RepoInterface& repo) {
+ }},
+ {PLDM_NUMERIC_EFFECTER_PDR,
+ [this](const DBusHandler& dBusIntf, const auto& json,
+ RepoInterface& repo) {
pdr_numeric_effecter::generateNumericEffecterPDR<
pldm::utils::DBusHandler, Handler>(dBusIntf, json, *this, repo);
- }},
+ }},
{PLDM_STATE_SENSOR_PDR, [this](const DBusHandler& dBusIntf,
const auto& json, RepoInterface& repo) {
- pdr_state_sensor::generateStateSensorPDR<pldm::utils::DBusHandler,
- Handler>(dBusIntf, json,
- *this, repo);
- }}};
+ pdr_state_sensor::generateStateSensorPDR<pldm::utils::DBusHandler,
+ Handler>(dBusIntf, json, *this,
+ repo);
+ }}};
Type pdrType{};
for (const auto& dirEntry : fs::directory_iterator(dir))