clang-tidy configuration cleanup

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>
This commit is contained in:
Artur Harasimiuk
2022-05-09 17:40:30 +00:00
committed by Compute-Runtime-Automation
parent 910871a706
commit e9be9b64c6
235 changed files with 920 additions and 1169 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -14,8 +14,8 @@ class Device;
class BuiltInFixture {
public:
void SetUp(NEO::Device *pDevice);
void TearDown();
void SetUp(NEO::Device *pDevice); // NOLINT(readability-identifier-naming)
void TearDown(); // NOLINT(readability-identifier-naming)
NEO::BuiltIns *pBuiltIns = nullptr;
};

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -14,9 +14,9 @@ namespace NEO {
struct HardwareInfo;
struct ClDeviceFixture {
void SetUp();
void SetUpImpl(const NEO::HardwareInfo *hardwareInfo);
void TearDown();
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);

View File

@ -13,8 +13,8 @@ class MockContext;
class ContextFixture {
protected:
void SetUp(cl_uint numDevices, cl_device_id *pDeviceList);
void TearDown();
void SetUp(cl_uint numDevices, cl_device_id *pDeviceList); // NOLINT(readability-identifier-naming)
void TearDown(); // NOLINT(readability-identifier-naming)
MockContext *pContext = nullptr;
};

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -14,7 +14,7 @@ class Device;
struct HardwareInfo;
struct DeviceInstrumentationFixture {
void SetUp(bool instrumentation);
void SetUp(bool instrumentation); // NOLINT(readability-identifier-naming)
std::unique_ptr<ClDevice> device = nullptr;
HardwareInfo *hwInfo = nullptr;

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2021 Intel Corporation
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -20,7 +20,7 @@ namespace NEO {
template <bool setupBlitter>
struct DispatchFlagsTestsBase : public ::testing::Test {
template <typename CsrType>
void SetUpImpl() {
void SetUpImpl() { // NOLINT(readability-identifier-naming)
HardwareInfo hwInfo = *defaultHwInfo;
if (setupBlitter) {
hwInfo.capabilityTable.blitterOperationsSupported = true;

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Intel Corporation
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -29,7 +29,7 @@ struct OneMipLevelImageFixture {
}
};
void SetUp() {
void SetUp() { // NOLINT(readability-identifier-naming)
REQUIRE_IMAGES_OR_SKIP(defaultHwInfo);
cl_image_desc imageDesc = Image3dDefaults::imageDesc;
@ -40,7 +40,7 @@ struct OneMipLevelImageFixture {
this->image.reset(createImage());
}
void TearDown() {
void TearDown() { // NOLINT(readability-identifier-naming)
}
Image *createImage() {

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -13,8 +13,8 @@ namespace NEO {
class PlatformFixture {
protected:
void SetUp();
void TearDown();
void SetUp(); // NOLINT(readability-identifier-naming)
void TearDown(); // NOLINT(readability-identifier-naming)
Platform *pPlatform = nullptr;

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -18,29 +18,29 @@ namespace NEO {
class ProgramFixture {
public:
void CreateProgramFromBinary(Context *pContext,
void CreateProgramFromBinary(Context *pContext, // NOLINT(readability-identifier-naming)
const ClDeviceVector &deviceVector,
const std::string &binaryFileName,
cl_int &retVal,
const std::string &options = "");
void CreateProgramFromBinary(Context *pContext,
void CreateProgramFromBinary(Context *pContext, // NOLINT(readability-identifier-naming)
const ClDeviceVector &deviceVector,
const std::string &binaryFileName,
const std::string &options = "");
void CreateProgramWithSource(Context *pContext,
void CreateProgramWithSource(Context *pContext, // NOLINT(readability-identifier-naming)
const std::string &sourceFileName);
protected:
virtual void SetUp() {
virtual void SetUp() { // NOLINT(readability-identifier-naming)
}
virtual void TearDown() {
virtual void TearDown() { // NOLINT(readability-identifier-naming)
Cleanup();
}
void Cleanup() {
void Cleanup() { // NOLINT(readability-identifier-naming)
if (pProgram != nullptr) {
pProgram->release();
}