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>
34 lines
826 B
C++
34 lines
826 B
C++
/*
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/command_stream/linear_stream.h"
|
|
#include "shared/test/common/mocks/mock_graphics_allocation.h"
|
|
#include "shared/test/common/test_macros/test.h"
|
|
|
|
#include <cstdint>
|
|
|
|
namespace NEO {
|
|
|
|
struct LinearStreamFixture {
|
|
LinearStreamFixture(void)
|
|
: gfxAllocation(static_cast<void *>(pCmdBuffer), sizeof(pCmdBuffer)), linearStream(&gfxAllocation) {
|
|
}
|
|
|
|
virtual void SetUp(void) { // NOLINT(readability-identifier-naming)
|
|
}
|
|
|
|
virtual void TearDown(void) { // NOLINT(readability-identifier-naming)
|
|
}
|
|
MockGraphicsAllocation gfxAllocation;
|
|
LinearStream linearStream;
|
|
uint32_t pCmdBuffer[1024]{};
|
|
};
|
|
|
|
typedef Test<LinearStreamFixture> LinearStreamTest;
|
|
} // namespace NEO
|