[libc++][NFC] Increase consistency for namespace closing comments

This commit is contained in:
Louis Dionne
2024-09-05 12:39:05 -04:00
parent 2ed510dc97
commit 953af0e7f1
23 changed files with 30 additions and 30 deletions

View File

@@ -449,7 +449,7 @@ struct __make_dextents< _IndexType, 0, extents<_IndexType, _ExtentsPack...>> {
using type = extents<_IndexType, _ExtentsPack...>;
};
} // end namespace __mdspan_detail
} // namespace __mdspan_detail
// [mdspan.extents.dextents], alias template
template <class _IndexType, size_t _Rank>

View File

@@ -225,7 +225,7 @@ private:
ErrorHandler& operator=(ErrorHandler const&) = delete;
};
} // end namespace detail
} // namespace detail
_LIBCPP_END_NAMESPACE_FILESYSTEM

View File

@@ -284,7 +284,7 @@ inline file_status FileDescriptor::refresh_status(error_code& ec) {
return m_status;
}
} // end namespace detail
} // namespace detail
_LIBCPP_END_NAMESPACE_FILESYSTEM

View File

@@ -70,7 +70,7 @@ inline _LIBCPP_ATTRIBUTE_FORMAT(__printf__, 1, 2) string format_string(const cha
return ret;
}
} // end namespace detail
} // namespace detail
_LIBCPP_END_NAMESPACE_FILESYSTEM

View File

@@ -254,7 +254,7 @@ bool copy_file_impl(FileDescriptor& read_fd, FileDescriptor& write_fd, error_cod
#endif // copy_file_impl implementation
} // end anonymous namespace
} // end namespace detail
} // namespace detail
bool __copy_file(const path& from, const path& to, copy_options options, error_code* ec) {
using detail::FileDescriptor;
@@ -732,7 +732,7 @@ uintmax_t remove_all_impl(path const& p, error_code& ec) {
return count;
}
} // end namespace
} // namespace
uintmax_t __remove_all(const path& p, error_code* ec) {
ErrorHandler<uintmax_t> err("remove_all", ec, &p);
@@ -827,7 +827,7 @@ uintmax_t remove_all_impl(int parent_directory, const path& p, error_code& ec) {
return 0;
}
} // end namespace
} // namespace
uintmax_t __remove_all(const path& p, error_code* ec) {
ErrorHandler<uintmax_t> err("remove_all", ec, &p);

View File

@@ -490,7 +490,7 @@ using SSizeT = ::ssize_t;
#endif
} // end namespace detail
} // namespace detail
_LIBCPP_END_NAMESPACE_FILESYSTEM

View File

@@ -344,7 +344,7 @@ inline file_time_type __extract_last_write_time(const path& p, const StatT& st,
#endif // !_LIBCPP_HAS_NO_FILESYSTEM
} // end namespace detail
} // namespace detail
_LIBCPP_END_NAMESPACE_FILESYSTEM

View File

@@ -125,7 +125,7 @@ __libcpp_atomic_compare_exchange(_ValueType* __val, _ValueType* __expected, _Val
#endif // _LIBCPP_HAS_NO_THREADS
} // end namespace
} // namespace
_LIBCPP_END_NAMESPACE_STD

View File

@@ -82,7 +82,7 @@ union ResourceInitHelper {
// attribute with a value that's reserved for the implementation (we're the implementation).
#include "memory_resource_init_helper.h"
} // end namespace
} // namespace
memory_resource* new_delete_resource() noexcept { return &res_init.resources.new_delete_res; }

View File

@@ -110,7 +110,7 @@ string make_error_str(const error_code& ec) {
}
return string();
}
} // end namespace
} // namespace
string __do_message::message(int ev) const {
#if defined(_LIBCPP_HAS_NO_THREADS)

View File

@@ -223,6 +223,6 @@ static void BM_Compare_different_containers(benchmark::State& st, Container, Gen
}
}
} // end namespace ContainerBenchmarks
} // namespace ContainerBenchmarks
#endif // BENCHMARK_CONTAINER_BENCHMARKS_H

View File

@@ -50,6 +50,6 @@ static void BM_Visit(benchmark::State& state) {
}
}
} // end namespace VariantBenchmarks
} // namespace VariantBenchmarks
#endif // BENCHMARK_VARIANT_BENCHMARKS_H

View File

@@ -300,7 +300,7 @@ static const bool SupportsMinRoundTrip = [] {
return min_val == file_time_type::min();
}();
} // end namespace
} // namespace
static bool CompareTime(TimeSpec t1, TimeSpec t2) {
if (SupportsNanosecondRoundTrip)

View File

@@ -61,7 +61,7 @@ struct AmbiguousSwap {};
template <class T>
void swap(T&, T&) {}
} // end namespace MyNS2
} // namespace MyNS2
int main(int, char**)
{

View File

@@ -247,7 +247,7 @@ namespace ReturnTypeTest {
using InvokeResult = decltype(std::apply(fn, t));
static_assert(std::is_same<InvokeResult, Expect>::value, "");
}
} // end namespace ReturnTypeTest
} // namespace ReturnTypeTest
void test_return_type()
{

View File

@@ -328,7 +328,7 @@ constexpr bool operator!=(Tp const& L, Tp const& R) noexcept {
return L.value != R.value;
}
} // end namespace ConstexprTestTypes
} // namespace ConstexprTestTypes
//============================================================================//
@@ -351,7 +351,7 @@ constexpr bool operator!=(Tp const& L, Tp const& R) noexcept {
return L.value != R.value;
}
} // end namespace ExplicitConstexprTestTypes
} // namespace ExplicitConstexprTestTypes
//============================================================================//
@@ -373,7 +373,7 @@ constexpr bool operator!=(Tp const& L, Tp const& R) noexcept {
return L.value != R.value;
}
} // end namespace TrivialTestTypes
} // namespace TrivialTestTypes
//============================================================================//
//
@@ -395,7 +395,7 @@ constexpr bool operator!=(Tp const& L, Tp const& R) noexcept {
return L.value != R.value;
}
} // end namespace ExplicitTrivialTestTypes
} // namespace ExplicitTrivialTestTypes
#endif // TEST_STD_VER >= 11

View File

@@ -349,7 +349,7 @@ typedef std::allocator_traits<A2> A2T;
static_assert(std::is_same<A1T::rebind_traits<float>, A2T>::value, "");
static_assert(std::is_same<A2T::rebind_traits<int>, A1T>::value, "");
} // end namespace test_detail
} // namespace test_detail
//===----------------------------------------------------------------------===//
// 'CopyInsertable', 'MoveInsertable' and 'EmplaceConstructible' test types
@@ -491,6 +491,6 @@ template <class Value = CopyInsertable<1> >
using multiset =
std::multiset<Value, std::less<Value>, ContainerTestAllocator<Value, Value> >;
} // end namespace TCT
} // namespace TCT
#endif // SUPPORT_CONTAINER_TEST_TYPES_H

View File

@@ -146,7 +146,7 @@ namespace utils {
struct ::stat tmp;
return ::stat(path.c_str(), &tmp) == 0;
}
} // end namespace utils
} // namespace utils
struct scoped_test_env
{

View File

@@ -46,6 +46,6 @@ TEST_AVAILABILITY_SYNC std::jthread make_test_jthread(F&& f, Args&&... args) {
}
#endif
} // end namespace support
} // namespace support
#endif // TEST_SUPPORT_MAKE_TEST_THREAD_H

View File

@@ -62,7 +62,7 @@ struct parse_integer_impl<unsigned long long> {
return std::stoull(str);
}
};
} // end namespace detail
} // namespace detail
template <class T, class CharT>
T parse_integer(std::basic_string<CharT> const& str) {

View File

@@ -120,7 +120,7 @@ using IdentityT = typename Identity<T>::type;
template <bool Value>
using EnableIfB = typename std::enable_if<Value, bool>::type;
} // end namespace detail
} // namespace detail
using detail::EnableIfB;

View File

@@ -676,8 +676,8 @@ static_assert(CurrentImplementation != Implementation::Futex || PlatformSupports
using SelectedImplementation = SelectImplementation<CurrentImplementation>::type;
} // end namespace
} // end namespace __cxxabiv1
} // namespace
} // namespace __cxxabiv1
#if defined(__clang__)
# pragma clang diagnostic pop

View File

@@ -167,7 +167,7 @@ uintptr_t readPointerHelper(const uint8_t*& p) {
return static_cast<uintptr_t>(value);
}
} // end namespace
} // namespace
extern "C"
{