clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: Ic2bc1d98d8ad469a3477f9059ec890fc8339907d
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/trigger_actions.cpp b/src/trigger_actions.cpp
index 9466b77..5b57abb 100644
--- a/src/trigger_actions.cpp
+++ b/src/trigger_actions.cpp
@@ -44,11 +44,10 @@
throw std::runtime_error("Invalid value");
}
-void LogToJournal::commit(const std::string& triggerId,
- const ThresholdName thresholdNameInIn,
- const std::string& sensorName,
- const Milliseconds timestamp,
- const TriggerValue triggerValue)
+void LogToJournal::commit(
+ const std::string& triggerId, const ThresholdName thresholdNameInIn,
+ const std::string& sensorName, const Milliseconds timestamp,
+ const TriggerValue triggerValue)
{
double value = std::get<double>(triggerValue);
std::string thresholdName = ::numeric::typeToString(type);
@@ -101,11 +100,10 @@
throw std::runtime_error("Invalid type");
}
-void LogToRedfishEventLog::commit(const std::string& triggerId,
- const ThresholdName thresholdNameInIn,
- const std::string& sensorName,
- const Milliseconds timestamp,
- const TriggerValue triggerValue)
+void LogToRedfishEventLog::commit(
+ const std::string& triggerId, const ThresholdName thresholdNameInIn,
+ const std::string& sensorName, const Milliseconds timestamp,
+ const TriggerValue triggerValue)
{
double value = std::get<double>(triggerValue);
auto messageId = getRedfishMessageId(value);
@@ -168,11 +166,10 @@
namespace discrete
{
-void LogToJournal::commit(const std::string& triggerId,
- const ThresholdName thresholdNameIn,
- const std::string& sensorName,
- const Milliseconds timestamp,
- const TriggerValue triggerValue)
+void LogToJournal::commit(
+ const std::string& triggerId, const ThresholdName thresholdNameIn,
+ const std::string& sensorName, const Milliseconds timestamp,
+ const TriggerValue triggerValue)
{
auto value = std::get<std::string>(triggerValue);
@@ -186,11 +183,10 @@
phosphor::logging::log<phosphor::logging::level::INFO>(msg.c_str());
}
-void LogToRedfishEventLog::commit(const std::string& triggerId,
- const ThresholdName thresholdNameIn,
- const std::string& sensorName,
- const Milliseconds timestamp,
- const TriggerValue triggerValue)
+void LogToRedfishEventLog::commit(
+ const std::string& triggerId, const ThresholdName thresholdNameIn,
+ const std::string& sensorName, const Milliseconds timestamp,
+ const TriggerValue triggerValue)
{
auto value = std::get<std::string>(triggerValue);
@@ -239,26 +235,24 @@
namespace onChange
{
-void LogToJournal::commit(const std::string& triggerId,
- const ThresholdName thresholdNameIn,
- const std::string& sensorName,
- const Milliseconds timestamp,
- const TriggerValue triggerValue)
+void LogToJournal::commit(
+ const std::string& triggerId, const ThresholdName thresholdNameIn,
+ const std::string& sensorName, const Milliseconds timestamp,
+ const TriggerValue triggerValue)
{
auto value = triggerValueToString(triggerValue);
- std::string msg = "Discrete condition 'OnChange' of trigger '" + triggerId +
- "' is met on sensor: " + sensorName +
- ", recorded value: " + value +
- ", timestamp: " + timestampToString(timestamp);
+ std::string msg =
+ "Discrete condition 'OnChange' of trigger '" + triggerId +
+ "' is met on sensor: " + sensorName + ", recorded value: " + value +
+ ", timestamp: " + timestampToString(timestamp);
phosphor::logging::log<phosphor::logging::level::INFO>(msg.c_str());
}
-void LogToRedfishEventLog::commit(const std::string& triggerId,
- const ThresholdName thresholdNameIn,
- const std::string& sensorName,
- const Milliseconds timestamp,
- const TriggerValue triggerValue)
+void LogToRedfishEventLog::commit(
+ const std::string& triggerId, const ThresholdName thresholdNameIn,
+ const std::string& sensorName, const Milliseconds timestamp,
+ const TriggerValue triggerValue)
{
auto value = triggerValueToString(triggerValue);
@@ -305,11 +299,10 @@
} // namespace onChange
} // namespace discrete
-void UpdateReport::commit(const std::string& triggerId,
- const ThresholdName thresholdNameIn,
- const std::string& sensorName,
- const Milliseconds timestamp,
- const TriggerValue triggerValue)
+void UpdateReport::commit(
+ const std::string& triggerId, const ThresholdName thresholdNameIn,
+ const std::string& sensorName, const Milliseconds timestamp,
+ const TriggerValue triggerValue)
{
if (reportIds->empty())
{