monitor: Clang format updates
Used `format-code.sh` build script to make changes to conform to clang
format.
Tested: Compiled
Change-Id: Ieead1449cfd4b61333a135740dce03789218f92b
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/monitor/nonzero_speed_trust.hpp b/monitor/nonzero_speed_trust.hpp
index c5b67fd..9001579 100644
--- a/monitor/nonzero_speed_trust.hpp
+++ b/monitor/nonzero_speed_trust.hpp
@@ -18,48 +18,41 @@
*/
class NonzeroSpeed : public Group
{
- public:
+ public:
+ NonzeroSpeed() = delete;
+ ~NonzeroSpeed() = default;
+ NonzeroSpeed(const NonzeroSpeed&) = delete;
+ NonzeroSpeed& operator=(const NonzeroSpeed&) = delete;
+ NonzeroSpeed(NonzeroSpeed&&) = default;
+ NonzeroSpeed& operator=(NonzeroSpeed&&) = default;
- NonzeroSpeed() = delete;
- ~NonzeroSpeed() = default;
- NonzeroSpeed(const NonzeroSpeed&) = delete;
- NonzeroSpeed& operator=(const NonzeroSpeed&) = delete;
- NonzeroSpeed(NonzeroSpeed&&) = default;
- NonzeroSpeed& operator=(NonzeroSpeed&&) = default;
+ /**
+ * Constructor
+ *
+ * @param[in] names - the names of the sensors and its inclusion in
+ * determining trust for the group
+ */
+ explicit NonzeroSpeed(const std::vector<GroupDefinition>& names) :
+ Group(names)
+ {}
- /**
- * Constructor
- *
- * @param[in] names - the names of the sensors and its inclusion in
- * determining trust for the group
- */
- explicit NonzeroSpeed(const std::vector<GroupDefinition>& names) :
- Group(names)
- {
- }
-
- private:
-
- /**
- * Determines if the group is trusted by checking
- * if any sensor included in the trust determination
- * has a nonzero speed. If all the speeds of these sensors
- * are zero, then no sensors in the group are trusted.
- *
- * @return bool - if group is trusted or not
- */
- bool checkGroupTrust() override
- {
- return std::any_of(
- _sensors.begin(),
- _sensors.end(),
- [](const auto& s)
- {
- return s.inTrust && s.sensor->getInput() != 0;
- });
- }
+ private:
+ /**
+ * Determines if the group is trusted by checking
+ * if any sensor included in the trust determination
+ * has a nonzero speed. If all the speeds of these sensors
+ * are zero, then no sensors in the group are trusted.
+ *
+ * @return bool - if group is trusted or not
+ */
+ bool checkGroupTrust() override
+ {
+ return std::any_of(_sensors.begin(), _sensors.end(), [](const auto& s) {
+ return s.inTrust && s.sensor->getInput() != 0;
+ });
+ }
};
-}
-}
-}
+} // namespace trust
+} // namespace fan
+} // namespace phosphor