clang-tidy: Enable cppcoreguidelines-explicit-virtual-functions
This check enforces guidelines related to explicitly specifying
override or final when overriding virtual functions in C++
classes.
Change-Id: I5c7de19e9f7521f4b8a947a25540a44c400da104
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/.clang-tidy b/.clang-tidy
index 086b9aa..d1f674c 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -198,6 +198,7 @@
cppcoreguidelines-avoid-goto,
cppcoreguidelines-avoid-non-const-global-variables,
cppcoreguidelines-c-copy-assignment-signature,
+cppcoreguidelines-explicit-virtual-functions,
cppcoreguidelines-narrowing-conversions,
cppcoreguidelines-no-malloc,
cppcoreguidelines-prefer-member-initializer,