From 711393654b2849b4ab532528f735fe7e63140e1c Mon Sep 17 00:00:00 2001 From: "petro.zarytskyi" Date: Tue, 6 Feb 2024 22:29:08 +0200 Subject: [PATCH] Silence the clang-tidy warning about memory owning. --- include/clad/Differentiator/Array.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/clad/Differentiator/Array.h b/include/clad/Differentiator/Array.h index 26d5451c1..48c02f776 100644 --- a/include/clad/Differentiator/Array.h +++ b/include/clad/Differentiator/Array.h @@ -83,6 +83,7 @@ template class array { CUDA_HOST_DEVICE array& operator=(const array& arr) { if (m_size < arr.m_size) { delete[] m_arr; + // NOLINTNEXTLINE(cppcoreguidelines-owning-memory) m_arr = new T[arr.m_size]; m_size = arr.m_size; }