aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2025-02-27 21:29:39 -0500
committerSimon Marchi <simon.marchi@efficios.com>2025-02-27 21:35:38 -0500
commitb6fb76ec6ef1e6643c87f29594d76c13aa94d876 (patch)
tree4b546e409f68ef5a786b44c38b0d140008affa01 /gdbsupport
parentf0e6467e1044384ab1f882d26c16dec38fdad950 (diff)
downloadbinutils-b6fb76ec6ef1e6643c87f29594d76c13aa94d876.zip
binutils-b6fb76ec6ef1e6643c87f29594d76c13aa94d876.tar.gz
binutils-b6fb76ec6ef1e6643c87f29594d76c13aa94d876.tar.bz2
gdb, gdbserver, gdbsupport: fix some namespace comment formatting
I noticed a // namespace selftests comment, which doesn't follow our comment formatting convention. I did a find & replace to fix all the offenders. Change-Id: Idf8fe9833caf1c3d99e15330db000e4bab4ec66c
Diffstat (limited to 'gdbsupport')
-rw-r--r--gdbsupport/selftest.cc2
-rw-r--r--gdbsupport/unordered_dense.h16
2 files changed, 9 insertions, 9 deletions
diff --git a/gdbsupport/selftest.cc b/gdbsupport/selftest.cc
index d3bed68..174c45b 100644
--- a/gdbsupport/selftest.cc
+++ b/gdbsupport/selftest.cc
@@ -138,4 +138,4 @@ all_selftests ()
return selftests_range (tests.cbegin (), tests.cend ());
}
-} // namespace selftests
+} /* namespace selftests */
diff --git a/gdbsupport/unordered_dense.h b/gdbsupport/unordered_dense.h
index 2aaacd6..73dc9ac 100644
--- a/gdbsupport/unordered_dense.h
+++ b/gdbsupport/unordered_dense.h
@@ -267,7 +267,7 @@ inline void mum(uint64_t* a, uint64_t* b) {
return detail::wyhash::mix(x, UINT64_C(0x9E3779B97F4A7C15));
}
-} // namespace detail::wyhash
+} /* namespace detail::wyhash */
ANKERL_UNORDERED_DENSE_EXPORT template <typename T, typename Enable = void>
struct hash {
@@ -431,7 +431,7 @@ ANKERL_UNORDERED_DENSE_PACK(struct big {
size_t m_value_idx; // index into the m_values vector.
});
-} // namespace bucket_type
+} /* namespace bucket_type */
namespace detail {
@@ -492,7 +492,7 @@ struct base_table_type_map {
// base type for set doesn't have mapped_type
struct base_table_type_set {};
-} // namespace detail
+} /* namespace detail */
// Very much like std::deque, but faster for indexing (in most cases). As of now this doesn't implement the full std::vector
// API, but merely what's necessary to work as an underlying container for ankerl::unordered_dense::{map, set}.
@@ -1918,7 +1918,7 @@ public:
}
};
-} // namespace detail
+} /* namespace detail */
ANKERL_UNORDERED_DENSE_EXPORT template <class Key,
class T,
@@ -1983,7 +1983,7 @@ ANKERL_UNORDERED_DENSE_EXPORT template <class Key,
using segmented_set =
detail::table<Key, void, Hash, KeyEqual, ANKERL_UNORDERED_DENSE_PMR::polymorphic_allocator<Key>, Bucket, true>;
-} // namespace pmr
+} /* namespace pmr */
# endif
@@ -1992,8 +1992,8 @@ using segmented_set =
// deduction guides for alias templates are only possible since C++20
// see https://en.cppreference.com/w/cpp/language/class_template_argument_deduction
-} // namespace ANKERL_UNORDERED_DENSE_NAMESPACE
-} // namespace ankerl::unordered_dense
+} /* namespace ANKERL_UNORDERED_DENSE_NAMESPACE */
+} /* namespace ankerl::unordered_dense */
// std extensions /////////////////////////////////////////////////////////////
@@ -2026,7 +2026,7 @@ auto erase_if(ankerl::unordered_dense::detail::table<Key, T, Hash, KeyEqual, All
return old_size - map.size();
}
-} // namespace std
+} /* namespace std */
#endif
#endif