@@ -124,7 +124,7 @@ struct conditional<false, T, F> {
124
124
};
125
125
126
126
template <bool , typename , bool , typename , typename >
127
- struct conditional3 {};
127
+ struct conditional3 {}; // NOLINT(readability-identifier-naming)
128
128
template <typename T, typename FT, typename FF>
129
129
struct conditional3 <true , T, false , FT, FF> {
130
130
using type = T;
@@ -139,7 +139,7 @@ struct conditional3<false, T, false, FT, FF> {
139
139
};
140
140
141
141
template <bool , typename U, U, U>
142
- struct conditional_v {};
142
+ struct conditional_v {}; // NOLINT(readability-identifier-naming)
143
143
template <typename U, U t, U f>
144
144
struct conditional_v <true , U, t, f> {
145
145
static constexpr U value = t;
@@ -252,7 +252,7 @@ inline void array_set(T *arr, const U &val, size_t size) {
252
252
253
253
namespace product_impl {
254
254
template <size_t >
255
- struct int2type {};
255
+ struct int2type {}; // NOLINT(readability-identifier-naming)
256
256
257
257
template <typename T>
258
258
constexpr int product_impl (const T *arr, int2type<0 >) {
@@ -479,11 +479,10 @@ T pick_by_prop_kind(prop_kind_t prop_kind, const T &val_fwd, const T &val_bwd_d,
479
479
}
480
480
481
481
template <typename Telem, size_t Tdims>
482
- struct array_offset_calculator {
482
+ struct array_offset_calculator { // NOLINT(readability-identifier-naming)
483
483
template <typename ... Targs>
484
- array_offset_calculator (Telem *base, Targs... Fargs) : _dims {Fargs...} {
485
- _base_ptr = base;
486
- }
484
+ array_offset_calculator (Telem *base, Targs... Fargs)
485
+ : _dims {Fargs...}, _base_ptr(base) {}
487
486
488
487
template <typename ... Targs>
489
488
array_offset_calculator (std::nullptr_t , Targs... Fargs) = delete ;
@@ -824,16 +823,10 @@ using maybe_unique_ptr = std::unique_ptr<T, nop_deleter_t>;
824
823
struct nibble2_t {
825
824
826
825
// constructs a nibble pair from a pair of uint8_t values
827
- nibble2_t (uint8_t low_, uint8_t high_) {
828
- low = low_;
829
- high = high_;
830
- }
826
+ nibble2_t (uint8_t low_, uint8_t high_) : low(low_), high(high_) {}
831
827
832
828
// constructs a nibble pairs from an uin8_t, taking its low and high part
833
- nibble2_t (uint8_t pack_) {
834
- low = pack_ & 0xf ;
835
- high = (pack_ >> 4 ) & 0xf ;
836
- }
829
+ nibble2_t (uint8_t pack_) : low(pack_ & 0xf ), high((pack_ >> 4 ) & 0xf ) {}
837
830
838
831
// sets low (idx=0) or high (idx=1) nibble.
839
832
inline void set (uint8_t val, int idx) {
@@ -869,7 +862,7 @@ static_assert(sizeof(nibble2_t) == 1, "nibble2_t must be 1 byte");
869
862
// / printf("%d\t", idx);
870
863
// / }
871
864
// / output: 0 2 3
872
- class mask_iterator {
865
+ class mask_iterator { // NOLINT(readability-identifier-naming)
873
866
int mask_;
874
867
int index_;
875
868
0 commit comments