Skip to content

Commit

Permalink
Silence the clang-tidy warning about memory owning.
Browse files Browse the repository at this point in the history
  • Loading branch information
PetroZarytskyi committed Feb 6, 2024
1 parent 798df46 commit 7113936
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/clad/Differentiator/Array.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ template <typename T> class array {
CUDA_HOST_DEVICE array<T>& operator=(const array<T>& 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;
}
Expand Down

0 comments on commit 7113936

Please sign in to comment.