clang-tidy: Enable cppcoreguidelines-special-member-functions
The check finds classes where some but not all of the special member
functions are defined.
By default the compiler defines a copy constructor, copy assignment
operator, move constructor, move assignment operator and destructor.
The default can be suppressed by explicit user-definitions. The
relationship between which functions will be suppressed by
definitions of other functions is complicated and it is advised that
all five are defaulted or explicitly defined.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Icbfd448b2bf78ebf99ec07b55220871e093cb899
diff --git a/src/activation.hpp b/src/activation.hpp
index b7f9cbc..dc708e9 100644
--- a/src/activation.hpp
+++ b/src/activation.hpp
@@ -40,6 +40,14 @@
class ActivationBlocksTransition : public ActivationBlocksTransitionInherit
{
public:
+ ActivationBlocksTransition() = delete;
+ ActivationBlocksTransition(const ActivationBlocksTransition&) = delete;
+ ActivationBlocksTransition&
+ operator=(const ActivationBlocksTransition&) = delete;
+ ActivationBlocksTransition(ActivationBlocksTransition&&) = delete;
+ ActivationBlocksTransition&
+ operator=(ActivationBlocksTransition&&) = delete;
+
/** @brief Constructs ActivationBlocksTransition.
*
* @param[in] bus - The Dbus bus object