Skip to content

Commit b550fdd

Browse files
committed
fixup! modernize-use-equals-default
1 parent e35c7dd commit b550fdd

7 files changed

Lines changed: 13 additions & 13 deletions

File tree

c2h/include/c2h/checked_allocator.cuh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public:
160160
using other = checked_cuda_allocator<U>;
161161
};
162162

163-
_CCCL_HOST_DEVICE checked_cuda_allocator() = default;
163+
checked_cuda_allocator() = default;
164164

165165
_CCCL_HOST_DEVICE checked_cuda_allocator(const checked_cuda_allocator& other)
166166
: base(other)
@@ -173,7 +173,7 @@ public:
173173

174174
checked_cuda_allocator& operator=(const checked_cuda_allocator&) = default;
175175

176-
_CCCL_HOST_DEVICE ~checked_cuda_allocator() = default;
176+
~checked_cuda_allocator() = default;
177177
};
178178

179179
struct checked_host_memory_resource final : public THRUST_NS_QUALIFIER::mr::new_delete_resource_base

cub/cub/thread/thread_operators.cuh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ struct ScanBySegmentOp
167167
ScanOpT op;
168168

169169
/// Constructor
170-
_CCCL_HOST_DEVICE _CCCL_FORCEINLINE ScanBySegmentOp() = default;
170+
_CCCL_FORCEINLINE ScanBySegmentOp() = default;
171171

172172
/// Constructor
173173
_CCCL_HOST_DEVICE _CCCL_FORCEINLINE ScanBySegmentOp(ScanOpT op)
@@ -301,7 +301,7 @@ struct ReduceBySegmentOp
301301
ReductionOpT op;
302302

303303
/// Constructor
304-
_CCCL_HOST_DEVICE _CCCL_FORCEINLINE ReduceBySegmentOp() = default;
304+
_CCCL_FORCEINLINE ReduceBySegmentOp() = default;
305305

306306
/// Constructor
307307
_CCCL_HOST_DEVICE _CCCL_FORCEINLINE ReduceBySegmentOp(ReductionOpT op)
@@ -362,7 +362,7 @@ struct ReduceByKeyOp
362362
ReductionOpT op;
363363

364364
/// Constructor
365-
_CCCL_HOST_DEVICE _CCCL_FORCEINLINE ReduceByKeyOp() = default;
365+
_CCCL_FORCEINLINE ReduceByKeyOp() = default;
366366

367367
/// Constructor
368368
_CCCL_HOST_DEVICE _CCCL_FORCEINLINE ReduceByKeyOp(ReductionOpT op)

libcudacxx/include/cuda/std/__tuple_dir/tuple_leaf.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class __tuple_leaf<_Ip, _Hp, __tuple_leaf_specialization::__default>
106106

107107
public:
108108
_CCCL_EXEC_CHECK_DISABLE
109-
_CCCL_API constexpr __tuple_leaf() noexcept(is_nothrow_default_constructible_v<_Hp>) = default;
109+
_CCCL_HIDE_FROM_ABI constexpr __tuple_leaf() noexcept(is_nothrow_default_constructible_v<_Hp>) = default;
110110

111111
_CCCL_EXEC_CHECK_DISABLE
112112
_CCCL_API constexpr __tuple_leaf(__tuple_leaf_default_constructor_tag) noexcept(
@@ -271,7 +271,7 @@ class __tuple_leaf<_Ip, _Hp, __tuple_leaf_specialization::__empty_non_final> : p
271271
{
272272
public:
273273
_CCCL_EXEC_CHECK_DISABLE
274-
_CCCL_API constexpr __tuple_leaf() noexcept(is_nothrow_default_constructible_v<_Hp>) = default;
274+
_CCCL_HIDE_FROM_ABI constexpr __tuple_leaf() noexcept(is_nothrow_default_constructible_v<_Hp>) = default;
275275

276276
_CCCL_EXEC_CHECK_DISABLE
277277
_CCCL_API constexpr __tuple_leaf(__tuple_leaf_default_constructor_tag) noexcept(
@@ -371,7 +371,7 @@ struct _CCCL_DECLSPEC_EMPTY_BASES __tuple_impl<__tuple_indices<_Indx...>, _Tp...
371371
{
372372
using _Constraints = __tuple_constraints<_Tp...>;
373373

374-
_CCCL_API constexpr __tuple_impl() noexcept(_Constraints::__nothrow_default_constructible) = default;
374+
_CCCL_HIDE_FROM_ABI constexpr __tuple_impl() noexcept(_Constraints::__nothrow_default_constructible) = default;
375375

376376
// Handle non-allocator, full initialization
377377
// Old MSVC cannot handle the noexept specifier outside of template arguments

thrust/thrust/device_allocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class device_allocator
120120
};
121121

122122
/*! Default constructor has no effect. */
123-
_CCCL_HOST_DEVICE device_allocator() = default;
123+
device_allocator() = default;
124124

125125
/*! Copy constructor has no effect. */
126126
_CCCL_HOST_DEVICE device_allocator(const device_allocator& other)
@@ -136,7 +136,7 @@ class device_allocator
136136
device_allocator& operator=(const device_allocator&) = default;
137137

138138
/*! Destructor has no effect. */
139-
_CCCL_HOST_DEVICE ~device_allocator() = default;
139+
~device_allocator() = default;
140140
};
141141

142142
/*! \} // allocators

thrust/thrust/mr/allocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class stateless_resource_allocator : public thrust::mr::allocator<T, Upstream>
206206
stateless_resource_allocator& operator=(const stateless_resource_allocator&) = default;
207207

208208
/*! Destructor. */
209-
_CCCL_HOST_DEVICE ~stateless_resource_allocator() = default;
209+
~stateless_resource_allocator() = default;
210210
};
211211

212212
/*! \} // allocators

thrust/thrust/system/cuda/detail/core/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ struct AgentPlan
227227
, grid_size(grid_size_)
228228
{}
229229

230-
THRUST_RUNTIME_FUNCTION AgentPlan(AgentPlan const& plan) = default;
230+
AgentPlan(AgentPlan const& plan) = default;
231231

232232
template <class PtxPlan>
233233
THRUST_RUNTIME_FUNCTION

thrust/thrust/system/cuda/detail/reduce.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ struct ReduceAgent
163163
{
164164
cub::GridMappingStrategy grid_mapping;
165165

166-
THRUST_RUNTIME_FUNCTION Plan() = default;
166+
Plan() = default;
167167

168168
template <class P>
169169
THRUST_RUNTIME_FUNCTION Plan(P)

0 commit comments

Comments
 (0)