Skip to content

Commit e4712d9

Browse files
committed
Disable and handle more tidy
1 parent c794879 commit e4712d9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.tidy/make/make_tidy_03_flags.gmk

+3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ C_INCLUDES :=$(addprefix -I,$(C_INCLUDES))
4141

4242

4343
TIDY_CHECKS = "*, \
44+
-cppcoreguidelines-rvalue-reference-param-not-moved, \
45+
-cppcoreguidelines-avoid-do-while, \
4446
-modernize-type-traits, \
4547
-modernize-use-constraints, \
48+
-misc-header-include-cycle, \
4649
-misc-include-cleaner, \
4750
-misc-const-correctness, \
4851
-readability-identifier-length, \

math/wide_integer/uintwide_t.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@
16501650
typename LimbType,
16511651
typename AllocatorType,
16521652
const bool IsSigned>
1653-
WIDE_INTEGER_NUM_LIMITS_CLASS_TYPE numeric_limits<::math::wide_integer::uintwide_t<Width2, LimbType, AllocatorType, IsSigned>>;
1653+
WIDE_INTEGER_NUM_LIMITS_CLASS_TYPE numeric_limits<::math::wide_integer::uintwide_t<Width2, LimbType, AllocatorType, IsSigned>>; // NOLINT(cert-dcl58-cpp)
16541654
#endif
16551655
} // namespace std
16561656

@@ -5396,7 +5396,7 @@
53965396
{
53975397
++(*it);
53985398
}
5399-
while((*it++ == static_cast<limb_type>(UINT8_C(0))) && (it != values.end())); // NOLINT(altera-id-dependent-backward-branch)
5399+
while((*it++ == static_cast<limb_type>(UINT8_C(0))) && (it != values.end())); // NOLINT(altera-id-dependent-backward-branch,bugprone-inc-dec-in-conditions)
54005400
}
54015401

54025402
constexpr auto predecrement() -> void
@@ -5409,7 +5409,7 @@
54095409
{
54105410
--(*it);
54115411
}
5412-
while((*it++ == (std::numeric_limits<limb_type>::max)()) && (it != values.end())); // NOLINT(altera-id-dependent-backward-branch)
5412+
while((*it++ == (std::numeric_limits<limb_type>::max)()) && (it != values.end())); // NOLINT(altera-id-dependent-backward-branch,bugprone-inc-dec-in-conditions)
54135413
}
54145414
};
54155415

@@ -5553,7 +5553,7 @@
55535553
typename LimbType,
55545554
typename AllocatorType,
55555555
const bool IsSigned>
5556-
WIDE_INTEGER_NUM_LIMITS_CLASS_TYPE numeric_limits<::math::wide_integer::uintwide_t<Width2, LimbType, AllocatorType, IsSigned>>
5556+
WIDE_INTEGER_NUM_LIMITS_CLASS_TYPE numeric_limits<::math::wide_integer::uintwide_t<Width2, LimbType, AllocatorType, IsSigned>> // NOLINT(cert-dcl58-cpp)
55575557
: public ::math::wide_integer::numeric_limits_uintwide_t_base<Width2, LimbType, AllocatorType, IsSigned> { };
55585558
#endif
55595559
} // namespace std

0 commit comments

Comments
 (0)