summaryrefslogtreecommitdiffstats
path: root/src/resolve_errors.hpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2018-03-29 10:34:05 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-03-29 10:34:46 -0400
commitd1eac88d18ae7dd11033dba87b6aebb220da9064 (patch)
tree9744e38138ff853c53868d847f86e9ad58e9ac66 /src/resolve_errors.hpp
parent1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96 (diff)
downloadphosphor-dbus-monitor-d1eac88d18ae7dd11033dba87b6aebb220da9064.tar.gz
phosphor-dbus-monitor-d1eac88d18ae7dd11033dba87b6aebb220da9064.zip
Enable clang-format
Fix up errors and enable clang-format during CI builds. Change-Id: I4176b81f8b85a287af9354165e09ff66aeb9fb29 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'src/resolve_errors.hpp')
-rw-r--r--src/resolve_errors.hpp78
1 files changed, 38 insertions, 40 deletions
diff --git a/src/resolve_errors.hpp b/src/resolve_errors.hpp
index cae4bbc..c58dc7d 100644
--- a/src/resolve_errors.hpp
+++ b/src/resolve_errors.hpp
@@ -17,48 +17,46 @@ namespace monitoring
*/
class ResolveCallout : public Callback
{
- public:
-
- ResolveCallout() = delete;
- ~ResolveCallout() = default;
- ResolveCallout(const ResolveCallout&) = delete;
- ResolveCallout& operator=(const ResolveCallout&) = delete;
- ResolveCallout(ResolveCallout&&) = default;
- ResolveCallout& operator=(ResolveCallout&&) = default;
-
- /**
- * @brief constructor
- *
- * @param[in] callout - The callout whose errors need to be resolved.
- * Normally an inventory path.
- */
- explicit ResolveCallout(const std::string& callout) :
- callout(callout) {}
-
- /**
- * @brief Callback interface to resolve errors
- *
- * Resolves all error log entries that are associated
- * with the callout.
- */
- void operator()(Context ctx) override;
-
- private:
-
- /**
- * @brief Resolves a single error log entry
- *
- * param[in] entry - the object path of the error log entry
- */
- void resolve(const std::string& entry);
-
- /**
- * @brief The object path of the callout, typically an inventory path
- */
- std::string callout;
+ public:
+ ResolveCallout() = delete;
+ ~ResolveCallout() = default;
+ ResolveCallout(const ResolveCallout&) = delete;
+ ResolveCallout& operator=(const ResolveCallout&) = delete;
+ ResolveCallout(ResolveCallout&&) = default;
+ ResolveCallout& operator=(ResolveCallout&&) = default;
+
+ /**
+ * @brief constructor
+ *
+ * @param[in] callout - The callout whose errors need to be resolved.
+ * Normally an inventory path.
+ */
+ explicit ResolveCallout(const std::string& callout) : callout(callout)
+ {
+ }
+
+ /**
+ * @brief Callback interface to resolve errors
+ *
+ * Resolves all error log entries that are associated
+ * with the callout.
+ */
+ void operator()(Context ctx) override;
+
+ private:
+ /**
+ * @brief Resolves a single error log entry
+ *
+ * param[in] entry - the object path of the error log entry
+ */
+ void resolve(const std::string& entry);
+
+ /**
+ * @brief The object path of the callout, typically an inventory path
+ */
+ std::string callout;
};
-
} // namespace monitoring
} // namespace dbus
} // namespace phosphor
OpenPOWER on IntegriCloud