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/numeric_threshold.cpp b/src/numeric_threshold.cpp
index 2a02a92..9a141f6 100644
--- a/src/numeric_threshold.cpp
+++ b/src/numeric_threshold.cpp
@@ -29,8 +29,8 @@
ThresholdOperations::updateSensors(this, std::move(newSensors));
}
-NumericThreshold::ThresholdDetail&
- NumericThreshold::getDetails(const interfaces::Sensor& sensor)
+NumericThreshold::ThresholdDetail& NumericThreshold::getDetails(
+ const interfaces::Sensor& sensor)
{
return ThresholdOperations::getDetails(this, sensor);
}
@@ -56,10 +56,10 @@
return;
}
- bool crossedDecreasing = thresholdValue < prevValue &&
- thresholdValue > value;
- bool crossedIncreasing = thresholdValue > prevValue &&
- thresholdValue < value;
+ bool crossedDecreasing =
+ thresholdValue < prevValue && thresholdValue > value;
+ bool crossedIncreasing =
+ thresholdValue > prevValue && thresholdValue < value;
if (!crossedDecreasing && !crossedIncreasing && thresholdValue == prevValue)
{