Skip to content

Commit

Permalink
src: Fix recent clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stotko committed Mar 3, 2023
1 parent ed6ea81 commit f669d75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ hicpp-*,\
-hicpp-vararg,\
-hicpp-use-auto,\
misc-*,\
-misc-const-correctness,\
modernize-*,\
-modernize-avoid-c-arrays,\
-modernize-use-auto,\
Expand Down
6 changes: 3 additions & 3 deletions src/stdgpu/iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ using host_ptr = thrust::pointer<T, thrust::host_system_tag>;
} // namespace stdgpu

//! @cond Doxygen_Suppress
namespace std
namespace std // NOLINT(cert-dcl58-cpp)
{

template <typename T>
struct iterator_traits<stdgpu::device_ptr<T>>
struct iterator_traits<stdgpu::device_ptr<T>> // NOLINT(cert-dcl58-cpp)
{
using difference_type = typename std::iterator_traits<T*>::difference_type;
using value_type = typename std::iterator_traits<T*>::value_type;
Expand All @@ -68,7 +68,7 @@ struct iterator_traits<stdgpu::device_ptr<T>>
};

template <typename T>
struct iterator_traits<stdgpu::host_ptr<T>>
struct iterator_traits<stdgpu::host_ptr<T>> // NOLINT(cert-dcl58-cpp)
{
using difference_type = typename std::iterator_traits<T*>::difference_type;
using value_type = typename std::iterator_traits<T*>::value_type;
Expand Down

0 comments on commit f669d75

Please sign in to comment.