From d1eac88d18ae7dd11033dba87b6aebb220da9064 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Thu, 29 Mar 2018 10:34:05 -0400 Subject: Enable clang-format Fix up errors and enable clang-format during CI builds. Change-Id: I4176b81f8b85a287af9354165e09ff66aeb9fb29 Signed-off-by: Brad Bishop --- src/resolve_errors.hpp | 78 ++++++++++++++++++++++++-------------------------- 1 file changed, 38 insertions(+), 40 deletions(-) (limited to 'src/resolve_errors.hpp') 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 -- cgit v1.2.1