diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2018-09-14 14:50:03 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-10-18 16:43:22 -0400 |
commit | 94df8c9015798764d40665bb363bdbf27510f285 (patch) | |
tree | ce26611a482f2f03a582838faec29eeb065a6c47 /occ_presence.hpp | |
parent | 7db89e36d7c5649b826b607cb2d90e38bb02ab86 (diff) | |
download | openpower-occ-control-94df8c9015798764d40665bb363bdbf27510f285.tar.gz openpower-occ-control-94df8c9015798764d40665bb363bdbf27510f285.zip |
clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0.
This .clang-format matches the example one in
https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting
Change-Id: Id6760866dedbaeafd83ea8ef2e0303e30b8955aa
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'occ_presence.hpp')
-rw-r--r-- | occ_presence.hpp | 58 |
1 files changed, 28 insertions, 30 deletions
diff --git a/occ_presence.hpp b/occ_presence.hpp index e0bd3ad..9e66acc 100644 --- a/occ_presence.hpp +++ b/occ_presence.hpp @@ -13,39 +13,37 @@ class Manager; */ class Presence : public Error { - public: - Presence() = delete; - Presence(const Presence&) = delete; - Presence& operator=(const Presence&) = delete; - Presence(Presence&&) = default; - Presence& operator=(Presence&&) = default; + public: + Presence() = delete; + Presence(const Presence&) = delete; + Presence& operator=(const Presence&) = delete; + Presence(Presence&&) = default; + Presence& operator=(Presence&&) = default; - /** @brief Constructs the Presence object - * - * @param[in] event - Reference to sd_event unique_ptr - * @param[in] file - File used by driver to communicate errors - * @param[in] mgr - OCC manager instance - * @param[in] callBack - Optional function callback on error condition - */ - Presence(EventPtr& event, - const fs::path& file, - const Manager& mgr, - std::function<void(bool)> callBack = nullptr) : - Error(event, file, callBack), - manager(mgr) - { - // Nothing to do here. - } + /** @brief Constructs the Presence object + * + * @param[in] event - Reference to sd_event unique_ptr + * @param[in] file - File used by driver to communicate errors + * @param[in] mgr - OCC manager instance + * @param[in] callBack - Optional function callback on error condition + */ + Presence(EventPtr& event, const fs::path& file, const Manager& mgr, + std::function<void(bool)> callBack = nullptr) : + Error(event, file, callBack), + manager(mgr) + { + // Nothing to do here. + } - private: - /** Store the manager instance to enable getting number of OCCs */ - const Manager& manager; + private: + /** Store the manager instance to enable getting number of OCCs */ + const Manager& manager; - /** @brief When the error event is received, analyzes it - * and makes a callback to error handler if the - * content denotes an error condition - */ - void analyzeEvent() override; + /** @brief When the error event is received, analyzes it + * and makes a callback to error handler if the + * content denotes an error condition + */ + void analyzeEvent() override; }; } // namespace occ |