Fix clang-tidy issue

Fix clang-tidy issues about adding override keyword for MockClasses

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
This commit is contained in:
Joshua Santosh Ranjan
2022-01-10 05:00:09 +00:00
committed by Compute-Runtime-Automation
parent 3c1ee0aaa5
commit 54d377d025

View File

@@ -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 <PRODUCT_FAMILY gfxProduct>
class MockHwInfoConfigHw : public HwInfoConfigHw<gfxProduct> {
public:
bool getUuid(Device *device, std::array<uint8_t, HwInfoConfig::uuidSize> &uuid) const {
bool getUuid(Device *device, std::array<uint8_t, HwInfoConfig::uuidSize> &uuid) const override {
return false;
}
};