From 6ff5cb8219ac309769bf76211ecc090546665c0e Mon Sep 17 00:00:00 2001 From: Rong Ou Date: Wed, 10 Nov 2021 10:50:31 -0800 Subject: [PATCH] suppress spurious clang-tidy warnings in debug macros --- include/rmm/detail/error.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/rmm/detail/error.hpp b/include/rmm/detail/error.hpp index 89cbcd916..1e3605861 100644 --- a/include/rmm/detail/error.hpp +++ b/include/rmm/detail/error.hpp @@ -240,6 +240,7 @@ class out_of_range : public std::out_of_range { std::cerr << "CUDA Error detected. " << cudaGetErrorName(status__) << " " \ << cudaGetErrorString(status__) << std::endl; \ } \ + /* NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-array-to-pointer-decay) */ \ assert(status__ == cudaSuccess); \ } while (0) #endif @@ -257,6 +258,7 @@ class out_of_range : public std::out_of_range { RMM_LOG_CRITICAL( \ "[" __FILE__ ":" RMM_STRINGIFY(__LINE__) "] Assertion " RMM_STRINGIFY(_expr) " failed."); \ rmm::logger().flush(); \ + /* NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-array-to-pointer-decay) */ \ assert(success); \ } \ } while (0)