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/test/test_item_updater.cpp b/test/test_item_updater.cpp
index db1db8e..c231654 100644
--- a/test/test_item_updater.cpp
+++ b/test/test_item_updater.cpp
@@ -22,6 +22,11 @@
using Properties = ItemUpdater::Properties;
using PropertyType = utils::UtilsInterface::PropertyType;
+ TestItemUpdater(const TestItemUpdater&) = delete;
+ TestItemUpdater& operator=(const TestItemUpdater&) = delete;
+ TestItemUpdater(TestItemUpdater&&) = delete;
+ TestItemUpdater& operator=(TestItemUpdater&&) = delete;
+
TestItemUpdater() :
mockedUtils(
reinterpret_cast<const utils::MockedUtils&>(utils::getUtils()))