From 3cba709128fc153533e029226b3f09b1ae7ac18e Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Mon, 2 Nov 2026 11:05:18 +0800 Subject: [libbase] Rename public namespace and unreachable symbols --- libbase/include/core/adt/STLFunctionalExtras.h | 4 ++-- libbase/include/core/adt/SmallVector.h | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'libbase/include/core/adt') diff --git a/libbase/include/core/adt/STLFunctionalExtras.h b/libbase/include/core/adt/STLFunctionalExtras.h index 231dc5b..8c88905 100644 --- a/libbase/include/core/adt/STLFunctionalExtras.h +++ b/libbase/include/core/adt/STLFunctionalExtras.h @@ -43,7 +43,7 @@ #include #include -namespace rcc +namespace libbase { //===----------------------------------------------------------------------===// @@ -107,6 +107,6 @@ public: } }; -} // end namespace rcc +} // end namespace libbase #endif // LIBBASE_ADT_STLFUNCTIONALEXTRAS_H diff --git a/libbase/include/core/adt/SmallVector.h b/libbase/include/core/adt/SmallVector.h index 52cb6ca..f8de25e 100644 --- a/libbase/include/core/adt/SmallVector.h +++ b/libbase/include/core/adt/SmallVector.h @@ -52,7 +52,7 @@ #include #include -namespace rcc +namespace libbase { template class ArrayRef; @@ -1879,20 +1879,20 @@ to_vector_of (R &&Range) } // Explicit instantiations -extern template class rcc::SmallVectorBase; +extern template class libbase::SmallVectorBase; #if SIZE_MAX > UINT32_MAX -extern template class rcc::SmallVectorBase; +extern template class libbase::SmallVectorBase; #endif -} // end namespace rcc +} // end namespace libbase namespace std { -template struct hash> +template struct hash> { size_t - operator() (const rcc::SmallVector &Value) const + operator() (const libbase::SmallVector &Value) const { size_t Seed = 0; for (const T &Element : Value) @@ -1908,7 +1908,7 @@ template struct hash> /// Implement std::swap in terms of SmallVector swap. template inline void -swap (rcc::SmallVectorImpl &LHS, rcc::SmallVectorImpl &RHS) +swap (libbase::SmallVectorImpl &LHS, libbase::SmallVectorImpl &RHS) { LHS.swap (RHS); } @@ -1916,7 +1916,7 @@ swap (rcc::SmallVectorImpl &LHS, rcc::SmallVectorImpl &RHS) /// Implement std::swap in terms of SmallVector swap. template inline void -swap (rcc::SmallVector &LHS, rcc::SmallVector &RHS) +swap (libbase::SmallVector &LHS, libbase::SmallVector &RHS) { LHS.swap (RHS); } -- cgit v1.2.3