From abac2a37d62a002c02dc47e4a4c36cd99c6ffe66 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Tue, 19 Aug 2025 11:46:37 -0700 Subject: [PATCH] container: c++: run linter --- .../src/root/macro/web/internal/crypto.C | 24 +++++++++++-------- container/src/root/src/hash.hh | 9 +++---- container/src/root/src/internal/generic.hh | 9 +++---- container/src/root/src/random.hh | 3 +-- container/src/root/src/utility.hh | 12 ++++------ 5 files changed, 25 insertions(+), 32 deletions(-) diff --git a/container/src/root/macro/web/internal/crypto.C b/container/src/root/macro/web/internal/crypto.C index 4d4b0a4..1f7ef65 100644 --- a/container/src/root/macro/web/internal/crypto.C +++ b/container/src/root/macro/web/internal/crypto.C @@ -288,16 +288,20 @@ class Random final miles /= 24901; // TODO(unassigned): would be nice to have some RNG-related info - pt->AddText(std::string{"Fun facts"} - .c_str()); // TODO(unassigned): make this small text - pt->AddText(std::string{ - "There are " + std::to_string(is_odd) + " odd numbers and " - + std::to_string(data.y.size() - is_odd) + " even numbers"} - .c_str()); - pt->AddText(std::string{ - "If the total values generated were miles, you could circle the earth " - + std::to_string(miles) + " times!"} - .c_str()); + pt->AddText( + std::string{"Fun facts"} + .c_str()); // TODO(unassigned): make this small text + pt->AddText( + std::string{ + "There are " + std::to_string(is_odd) + " odd numbers and " + + std::to_string(data.y.size() - is_odd) + " even numbers"} + .c_str()); + pt->AddText( + std::string{ + "If the total values generated were miles, you could circle the " + "earth " + + std::to_string(miles) + " times!"} + .c_str()); pt->Draw(); } diff --git a/container/src/root/src/hash.hh b/container/src/root/src/hash.hh index 1dfca88..c191d8d 100644 --- a/container/src/root/src/hash.hh +++ b/container/src/root/src/hash.hh @@ -106,8 +106,7 @@ class Hash final : public t_impl //! \endcode template < typename t_hash, - template - typename t_container, + template typename t_container, typename... t_args, std::enable_if_t< type::is_signature_with_string>, @@ -132,8 +131,7 @@ class Hash final : public t_impl //! \endcode template < typename t_hash, - template - typename t_container, + template typename t_container, typename... t_args, std::enable_if_t< type::is_signature_with_value_type_allocator>, @@ -158,8 +156,7 @@ class Hash final : public t_impl //! \endcode template < typename t_hash, - template - typename t_container, + template typename t_container, typename... t_args, std::enable_if_t< type::is_signature_with_mapped_type_allocator>, diff --git a/container/src/root/src/internal/generic.hh b/container/src/root/src/internal/generic.hh index c3eaa9a..8199e67 100644 --- a/container/src/root/src/internal/generic.hh +++ b/container/src/root/src/internal/generic.hh @@ -151,8 +151,7 @@ class Transform : private ImplBase template < typename t_tag, typename t_encoded, - template - typename t_container, + template typename t_container, typename... t_args, std::enable_if_t< type::is_signature_with_string>, @@ -169,8 +168,7 @@ class Transform : private ImplBase template < typename t_tag, typename t_encoded, - template - typename t_container, + template typename t_container, typename... t_args, std::enable_if_t< type::is_signature_with_value_type_allocator>, @@ -222,8 +220,7 @@ class Transform : private ImplBase template < typename t_tag, typename t_encoded, - template - typename t_container, + template typename t_container, typename... t_args, std::enable_if_t< type::is_signature_with_mapped_type_allocator>, diff --git a/container/src/root/src/random.hh b/container/src/root/src/random.hh index b5feef5..3fa3b32 100644 --- a/container/src/root/src/random.hh +++ b/container/src/root/src/random.hh @@ -112,8 +112,7 @@ namespace libsodium //! \ingroup cpp_API //! \note For public consumption //! \since docker-finance 1.0.0 -using Random = - ::dfi::crypto::common::Random; +using Random = ::dfi::crypto::common::Random; } // namespace libsodium } // namespace crypto diff --git a/container/src/root/src/utility.hh b/container/src/root/src/utility.hh index e2a0088..e8a635e 100644 --- a/container/src/root/src/utility.hh +++ b/container/src/root/src/utility.hh @@ -141,8 +141,7 @@ class Byte final : public impl::Byte } template < - template - typename t_container, + template typename t_container, typename... t_args, std::enable_if_t< type::is_signature_with_value_type_allocator>, @@ -153,8 +152,7 @@ class Byte final : public impl::Byte } template < - template - typename t_container, + template typename t_container, typename... t_args, std::enable_if_t< type::is_signature_with_mapped_type_allocator>, @@ -172,8 +170,7 @@ class Byte final : public impl::Byte } template < - template - typename t_container, + template typename t_container, typename... t_args, std::enable_if_t< type::is_signature_with_value_type_allocator>, @@ -184,8 +181,7 @@ class Byte final : public impl::Byte } template < - template - typename t_container, + template typename t_container, typename... t_args, std::enable_if_t< type::is_signature_with_mapped_type_allocator>,