mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00

Define single .clang-tidy configuration with all used checks and use NOLINT to selectively silence tool. That way cleanup should be easier. third_part/ has its own configuration that disables clang-tidy for this folder. Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
33 lines
997 B
C++
33 lines
997 B
C++
/*
|
|
* Copyright (C) 2020-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/test/common/mocks/mock_device.h"
|
|
|
|
#include "opencl/test/unit_test/mocks/mock_cl_device.h"
|
|
|
|
namespace NEO {
|
|
struct HardwareInfo;
|
|
|
|
struct ClDeviceFixture {
|
|
void SetUp(); // NOLINT(readability-identifier-naming)
|
|
void SetUpImpl(const NEO::HardwareInfo *hardwareInfo); // NOLINT(readability-identifier-naming)
|
|
void TearDown(); // NOLINT(readability-identifier-naming)
|
|
|
|
MockDevice *createWithUsDeviceId(unsigned short usDeviceId);
|
|
|
|
MockDevice *pDevice = nullptr;
|
|
MockClDevice *pClDevice = nullptr;
|
|
volatile uint32_t *pTagMemory = nullptr;
|
|
HardwareInfo hardwareInfo = {};
|
|
PLATFORM platformHelper = {};
|
|
OsContext *osContext = nullptr;
|
|
const uint32_t rootDeviceIndex = 0u;
|
|
MockClExecutionEnvironment *pClExecutionEnvironment = nullptr;
|
|
};
|
|
} // namespace NEO
|