From 77342a88d0e2d628f1f692f5b37cea140d238f2e Mon Sep 17 00:00:00 2001 From: SunBlack Date: Mon, 10 Mar 2025 23:06:31 +0100 Subject: [PATCH] Apply Clang-Tidy fixes for modernize-concat-nested-namespaces --- include/tsl/robin_growth_policy.h | 6 ++---- include/tsl/robin_hash.h | 8 ++------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/include/tsl/robin_growth_policy.h b/include/tsl/robin_growth_policy.h index 2dc9c40..5d82f60 100644 --- a/include/tsl/robin_growth_policy.h +++ b/include/tsl/robin_growth_policy.h @@ -81,8 +81,7 @@ #define TSL_RH_UNUSED(x) static_cast(x) -namespace tsl { -namespace rh { +namespace tsl::rh { /** * Grow the hash table by a factor of GrowthFactor keeping the bucket count to a @@ -409,7 +408,6 @@ class prime_growth_policy { "The type of m_iprime is not big enough."); }; -} // namespace rh -} // namespace tsl +} // namespace tsl::rh #endif diff --git a/include/tsl/robin_hash.h b/include/tsl/robin_hash.h index 163e0e2..acf9930 100644 --- a/include/tsl/robin_hash.h +++ b/include/tsl/robin_hash.h @@ -42,9 +42,7 @@ #include "robin_growth_policy.h" -namespace tsl { - -namespace detail_robin_hash { +namespace tsl::detail_robin_hash { template struct make_void { @@ -1582,8 +1580,6 @@ class robin_hash : private Hash, private KeyEqual, private GrowthPolicy { bool m_try_shrink_on_next_insert; }; -} // namespace detail_robin_hash - -} // namespace tsl +} // namespace tsl::detail_robin_hash #endif