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: I17e98a098b8983f5f20f563f85656cfb0beb0d4b
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/include/host_error_event_monitor.hpp b/include/host_error_event_monitor.hpp
index 86c8776..5f6242d 100644
--- a/include/host_error_event_monitor.hpp
+++ b/include/host_error_event_monitor.hpp
@@ -66,8 +66,8 @@
}
std::string eventName = objectPath.substr(objectPath.find_last_of('/') + 1,
objectPath.length());
- std::string message =
- (assert) ? eventName + " Asserted" : eventName + " De-Asserted";
+ std::string message = (assert) ? eventName + " Asserted"
+ : eventName + " De-Asserted";
uint8_t selType = (msgInterface.ends_with("ThermalTrip")) ? 0x01 : 0x00;
std::vector<uint8_t> selData{selType, 0xff, 0xff};
@@ -87,7 +87,7 @@
"HostErrorMonitor.Processor." +
iter->first + "'",
[conn, iter](sdbusplus::message_t& msg) {
- hostErrorEventMonitor(msg);
+ hostErrorEventMonitor(msg);
});
}
}
diff --git a/include/pulse_event_monitor.hpp b/include/pulse_event_monitor.hpp
index 54fdd56..3d53720 100644
--- a/include/pulse_event_monitor.hpp
+++ b/include/pulse_event_monitor.hpp
@@ -74,4 +74,4 @@
std::move(pulseEventMatcherCallback));
return pulseEventMatcher;
-}
\ No newline at end of file
+}
diff --git a/include/sel_logger.hpp b/include/sel_logger.hpp
index 35f8b95..6e20acc 100644
--- a/include/sel_logger.hpp
+++ b/include/sel_logger.hpp
@@ -17,14 +17,14 @@
#pragma once
#include <filesystem>
-static constexpr char const* ipmiSelObject = "xyz.openbmc_project.Logging.IPMI";
-static constexpr char const* ipmiSelPath = "/xyz/openbmc_project/Logging/IPMI";
-static constexpr char const* ipmiSelAddInterface =
+static constexpr const char* ipmiSelObject = "xyz.openbmc_project.Logging.IPMI";
+static constexpr const char* ipmiSelPath = "/xyz/openbmc_project/Logging/IPMI";
+static constexpr const char* ipmiSelAddInterface =
"xyz.openbmc_project.Logging.IPMI";
// ID string generated using journalctl to include in the MESSAGE_ID field for
// SEL entries. Helps with filtering SEL entries in the journal.
-static constexpr char const* selMessageId = "b370836ccf2f4850ac5bee185b77893a";
+static constexpr const char* selMessageId = "b370836ccf2f4850ac5bee185b77893a";
static constexpr int selPriority = 5; // notice
static constexpr uint8_t selSystemType = 0x02;
static constexpr uint16_t selBMCGenID = 0x0020;
diff --git a/include/sensorutils.hpp b/include/sensorutils.hpp
index d7fee6d..af979b0 100644
--- a/include/sensorutils.hpp
+++ b/include/sensorutils.hpp
@@ -336,8 +336,8 @@
int8_t bExp = 0;
bool bSigned = false;
- bool result =
- getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned);
+ bool result = getSensorAttributes(max, min, mValue, rExp, bValue, bExp,
+ bSigned);
if (!result)
{
throw std::runtime_error("Illegal sensor attributes");
diff --git a/include/threshold_alarm_event_monitor.hpp b/include/threshold_alarm_event_monitor.hpp
index 0de281d..bdfd3a9 100644
--- a/include/threshold_alarm_event_monitor.hpp
+++ b/include/threshold_alarm_event_monitor.hpp
@@ -209,8 +209,8 @@
<< "\n";
return;
}
- double thresholdVal =
- std::visit(ipmi::VariantToDoubleVisitor(), thresholdValue);
+ double thresholdVal = std::visit(ipmi::VariantToDoubleVisitor(),
+ thresholdValue);
double scale = 0;
auto findScale = sensorValue.find("Scale");
@@ -254,7 +254,7 @@
static_cast<sdbusplus::bus_t&>(*conn),
"type='signal',member=" + iter->first,
[conn, iter](sdbusplus::message_t& msg) {
- generateEvent(iter->first, conn, msg);
+ generateEvent(iter->first, conn, msg);
});
}
}
diff --git a/include/threshold_event_monitor.hpp b/include/threshold_event_monitor.hpp
index 6943d28..61e4690 100644
--- a/include/threshold_event_monitor.hpp
+++ b/include/threshold_event_monitor.hpp
@@ -179,15 +179,15 @@
<< msg.get_path() << "\n";
return;
}
- double thresholdVal =
- std::visit(ipmi::VariantToDoubleVisitor(), thresholdValue);
+ double thresholdVal = std::visit(ipmi::VariantToDoubleVisitor(),
+ thresholdValue);
double scale = 0;
auto findScale = sensorValue.find("Scale");
if (findScale != sensorValue.end())
{
- scale =
- std::visit(ipmi::VariantToDoubleVisitor(), findScale->second);
+ scale = std::visit(ipmi::VariantToDoubleVisitor(),
+ findScale->second);
thresholdVal *= std::pow(10, scale);
}
try
@@ -202,8 +202,8 @@
std::string threshold;
std::string direction;
- std::string redfishMessageID =
- "OpenBMC." + openBMCMessageRegistryVersion;
+ std::string redfishMessageID = "OpenBMC." +
+ openBMCMessageRegistryVersion;
enum EventType
{
eventNone,