From 54d377d025e15efa13c82d7d6066007de4085b96 Mon Sep 17 00:00:00 2001 From: Joshua Santosh Ranjan Date: Mon, 10 Jan 2022 05:00:09 +0000 Subject: [PATCH] Fix clang-tidy issue Fix clang-tidy issues about adding override keyword for MockClasses Signed-off-by: Joshua Santosh Ranjan --- shared/test/unit_test/os_interface/device_uuid_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/test/unit_test/os_interface/device_uuid_tests.cpp b/shared/test/unit_test/os_interface/device_uuid_tests.cpp index 30d21385e1..d0dc6eef4b 100644 --- a/shared/test/unit_test/os_interface/device_uuid_tests.cpp +++ b/shared/test/unit_test/os_interface/device_uuid_tests.cpp @@ -20,7 +20,7 @@ class MockMemoryManagerOsAgnosticContext : public MockMemoryManager { public: MockMemoryManagerOsAgnosticContext(ExecutionEnvironment &executionEnvironment) : MockMemoryManager(executionEnvironment) {} OsContext *createAndRegisterOsContext(CommandStreamReceiver *commandStreamReceiver, - const EngineDescriptor &engineDescriptor) { + const EngineDescriptor &engineDescriptor) override { auto osContext = new OsContext(0, engineDescriptor); osContext->incRefInternal(); registeredEngines.emplace_back(commandStreamReceiver, osContext); @@ -42,7 +42,7 @@ struct MockDriverModel : NEO::DriverModel { template class MockHwInfoConfigHw : public HwInfoConfigHw { public: - bool getUuid(Device *device, std::array &uuid) const { + bool getUuid(Device *device, std::array &uuid) const override { return false; } };