mmc: clang-tidy: Add override keyword
Marked virtual functions with the `override` keyword to ensure
they correctly override base class functions. This resolves
-Winconsistent-missing-override warnings and improves code safety
and readability by explicitly indicating overridden functions.
```
Error while processing /var/jenkins-openbmc/workspace/ci-repository/openbmc/openpower-pnor-code-mgmt/mmc/item_updater_mmc.hpp.
/var/jenkins-openbmc/workspace/ci-repository/openbmc/openpower-pnor-code-mgmt/mmc/item_updater_mmc.hpp:94:10: error: 'validateImage' overrides a member function but is not marked 'override' [clang-diagnostic-inconsistent-missing-override]
94 | bool validateImage(const std::string& path);
| ^
../item_updater.hpp:199:18: note: overridden virtual function is here
199 | virtual bool validateImage(const std::string& path) = 0;
| ^
```
Tested: CI runs with no errors.
Change-Id: I24e5cae09e2cdeacf0155d5de70a6ecbae5e00e0
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/mmc/item_updater_mmc.hpp b/mmc/item_updater_mmc.hpp
index fc2b6a4..db80dbf 100644
--- a/mmc/item_updater_mmc.hpp
+++ b/mmc/item_updater_mmc.hpp
@@ -91,7 +91,7 @@
const std::string& filePath) override;
/** @brief Validate if image is valid or not */
- bool validateImage(const std::string& path);
+ bool validateImage(const std::string& path) override;
/** @brief Host factory reset - clears PNOR partitions for each
* Activation D-Bus object */