mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +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>
28 lines
553 B
C++
28 lines
553 B
C++
/*
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "opencl/source/command_queue/command_queue.h"
|
|
|
|
#include <cstdint>
|
|
|
|
namespace NEO {
|
|
|
|
struct CommandStreamFixture {
|
|
void SetUp(CommandQueue *pCmdQ) { // NOLINT(readability-identifier-naming)
|
|
pCS = &pCmdQ->getCS(1024);
|
|
pCmdBuffer = pCS->getCpuBase();
|
|
}
|
|
|
|
virtual void TearDown() { // NOLINT(readability-identifier-naming)
|
|
}
|
|
|
|
LinearStream *pCS = nullptr;
|
|
void *pCmdBuffer = nullptr;
|
|
};
|
|
} // namespace NEO
|