mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
refactor: Enable remaining clang-tidy cppcoreguidelines checks (#6538)
This commit is contained in:
@@ -830,6 +830,7 @@ struct MultiApiJson_test : beast::unit_test::suite
|
||||
|
||||
// Rvalue MultivarJson visitor only binds to regular reference
|
||||
static_assert([](auto&& v) {
|
||||
// NOLINTNEXTLINE(cppcoreguidelines-rvalue-reference-param-not-moved)
|
||||
return !requires { std::forward<decltype(v)>(v).visit(1, [](Json::Value&&) {}); };
|
||||
}(std::move(s1)));
|
||||
static_assert([](auto&& v) {
|
||||
@@ -846,6 +847,7 @@ struct MultiApiJson_test : beast::unit_test::suite
|
||||
};
|
||||
}(std::move(s1)));
|
||||
static_assert([](auto&& v) {
|
||||
// NOLINTNEXTLINE(cppcoreguidelines-rvalue-reference-param-not-moved)
|
||||
return !requires { std::forward<decltype(v)>(v).visit()(1, [](Json::Value&&) {}); };
|
||||
}(std::move(s1)));
|
||||
static_assert([](auto&& v) {
|
||||
|
||||
@@ -17,7 +17,7 @@ public:
|
||||
{
|
||||
struct Table
|
||||
{
|
||||
int val[256];
|
||||
int val[256]{};
|
||||
Table()
|
||||
{
|
||||
std::fill(val, val + 256, 0);
|
||||
|
||||
Reference in New Issue
Block a user