mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
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:
committed by
Compute-Runtime-Automation
parent
910871a706
commit
e9be9b64c6
@@ -146,7 +146,7 @@ void ProgramDataTestBase::buildAndDecodeProgramPatchList() {
|
||||
programBinaryHeader.PatchListSize = programPatchListSize;
|
||||
|
||||
char *pProgramData = new char[headerSize + programBinaryHeader.PatchListSize];
|
||||
ASSERT_NE(nullptr, pProgramData);
|
||||
ASSERT_NE(nullptr, pProgramData); // NOLINT(clang-analyzer-cplusplus.NewDeleteLeaks)
|
||||
|
||||
pCurPtr = pProgramData;
|
||||
|
||||
|
||||
@@ -2233,7 +2233,7 @@ TEST_F(ProgramTests, givenProgramCreatedFromILWhenCompileIsCalledThenReuseTheILI
|
||||
const uint32_t spirv[16] = {0x03022307};
|
||||
cl_int errCode = 0;
|
||||
auto pProgram = Program::createFromIL<MockProgram>(pContext, reinterpret_cast<const void *>(spirv), sizeof(spirv), errCode);
|
||||
ASSERT_NE(nullptr, pProgram);
|
||||
ASSERT_NE(nullptr, pProgram); // NOLINT(clang-analyzer-cplusplus.NewDeleteLeaks)
|
||||
auto debugVars = NEO::getIgcDebugVars();
|
||||
debugVars.forceBuildFailure = true;
|
||||
gEnvironment->fclPushDebugVars(debugVars);
|
||||
@@ -2336,15 +2336,15 @@ TEST_F(ProgramTests, WhenLinkingTwoValidSpirvProgramsThenValidProgramIsReturned)
|
||||
cl_int errCode = CL_SUCCESS;
|
||||
|
||||
auto node1 = Program::createFromIL<CreateProgramFromBinaryMock<CL_SUCCESS, false>>(pContext, reinterpret_cast<const void *>(spirv), sizeof(spirv), errCode);
|
||||
ASSERT_NE(nullptr, node1);
|
||||
ASSERT_NE(nullptr, node1); // NOLINT(clang-analyzer-cplusplus.NewDeleteLeaks)
|
||||
EXPECT_EQ(CL_SUCCESS, errCode);
|
||||
|
||||
auto node2 = Program::createFromIL<CreateProgramFromBinaryMock<CL_SUCCESS>>(pContext, reinterpret_cast<const void *>(spirv), sizeof(spirv), errCode);
|
||||
ASSERT_NE(nullptr, node2);
|
||||
ASSERT_NE(nullptr, node2); // NOLINT(clang-analyzer-cplusplus.NewDeleteLeaks)
|
||||
EXPECT_EQ(CL_SUCCESS, errCode);
|
||||
|
||||
auto prog = Program::createFromIL<CreateProgramFromBinaryMock<CL_SUCCESS>>(pContext, reinterpret_cast<const void *>(spirv), sizeof(spirv), errCode);
|
||||
ASSERT_NE(nullptr, prog);
|
||||
ASSERT_NE(nullptr, prog); // NOLINT(clang-analyzer-cplusplus.NewDeleteLeaks)
|
||||
EXPECT_EQ(CL_SUCCESS, errCode);
|
||||
|
||||
cl_program linkNodes[] = {node1, node2};
|
||||
|
||||
@@ -24,5 +24,5 @@ class ProgramWithZebinFixture : public ProgramTests {
|
||||
void TearDown() override;
|
||||
void addEmptyZebin(MockProgram *program);
|
||||
void populateProgramWithSegments(MockProgram *program);
|
||||
~ProgramWithZebinFixture() = default;
|
||||
};
|
||||
~ProgramWithZebinFixture() override = default;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user