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: Ie13ec923211e361746c76425cc9b02ea1823387b
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/oemhandler.cpp b/oemhandler.cpp
index cd500ee..3f5a151 100644
--- a/oemhandler.cpp
+++ b/oemhandler.cpp
@@ -10,16 +10,17 @@
#include <string.h>
#include <systemd/sd-bus.h>
-#include <fstream>
-#include <functional>
#include <host-interface.hpp>
#include <ipmid-host/cmd.hpp>
-#include <memory>
#include <org/open_power/Host/error.hpp>
#include <org/open_power/OCC/Metrics/error.hpp>
#include <sdbusplus/bus.hpp>
#include <sdbusplus/exception.hpp>
+#include <fstream>
+#include <functional>
+#include <memory>
+
void register_netfn_ibm_oem_commands() __attribute__((constructor));
const char* g_esel_path = "/tmp/esel";
@@ -69,8 +70,8 @@
*/
auto found = std::find_if(invSensors.begin(), invSensors.end(),
[&sensor](const auto& iter) {
- return (iter.second.sensorID == sensor);
- });
+ return (iter.second.sensorID == sensor);
+ });
if (found != invSensors.end())
{
return found->first;