clang-tidy: Enable modernize-use-override check
This check adds override (introduced in C++11) to overridden
virtual functions and removes virtual from those functions as it
is not required.
Change-Id: I156fc5796ed1cf451491e446c211172f62316ecc
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/host_condition_gpio/host_condition.hpp b/host_condition_gpio/host_condition.hpp
index 4a8e200..6e260b8 100644
--- a/host_condition_gpio/host_condition.hpp
+++ b/host_condition_gpio/host_condition.hpp
@@ -22,7 +22,7 @@
Host& operator=(const Host&) = delete;
Host(Host&&) = delete;
Host& operator=(Host&&) = delete;
- virtual ~Host() = default;
+ ~Host() override = default;
Host(sdbusplus::bus_t& bus, const std::string& path,
const std::string& hostId) :