]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb, gdbserver, gdbsupport: fix some namespace comment formatting
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 28 Feb 2025 02:29:39 +0000 (21:29 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 28 Feb 2025 02:35:38 +0000 (21:35 -0500)
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

24 files changed:
gdb/aarch64-linux-tdep.c
gdb/aarch64-tdep.c
gdb/addrmap.c
gdb/arm-tdep.c
gdb/break-cond-parse.c
gdb/complaints.c
gdb/cp-support.c
gdb/disasm-selftests.c
gdb/dwarf2/frame.c
gdb/dwarf2/read-gdb-index.c
gdb/extract-store-integer.c
gdb/gdbarch-selftests.c
gdb/python/python.c
gdb/regcache.c
gdb/remote.c
gdb/scoped-mock-context.h
gdb/selftest-arch.c
gdb/test-target.h
gdb/testsuite/gdb.linespec/cp-replace-typedefs-ns-template.cc
gdb/testsuite/gdb.python/py-xmethods.cc
gdb/unittests/lookup_name_info-selftests.c
gdbserver/server.cc
gdbsupport/selftest.cc
gdbsupport/unordered_dense.h

index 2d156ad659e4b9a7af9e01851938bec1e8b1b433..5e59941ee4857cf842ad4813023db0a06847865b 100644 (file)
@@ -2972,7 +2972,7 @@ aarch64_linux_ltag_tests (void)
     }
 }
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 void _initialize_aarch64_linux_tdep ();
index 6e712b12b8691c97654217f5e3af2654f47443b9..f8c9fafb229d7c31c730b34b462dce62c8741a38 100644 (file)
@@ -949,7 +949,7 @@ aarch64_analyze_prologue_test (void)
        }
     }
 }
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 /* Implement the "skip_prologue" gdbarch method.  */
@@ -5946,7 +5946,7 @@ aarch64_process_record_test (void)
   deallocate_reg_mem (&aarch64_record);
 }
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 /* Parse the current instruction and record the values of the registers and
index bd5601b063e455560ee25f65403ff3eb668a05a8..9eb330b6e1159b52bab7e945d11dc06f63b32d94 100644 (file)
@@ -480,7 +480,7 @@ test_addrmap ()
   CHECK_ADDRMAP_FIND (map, array, 14, 19, nullptr);
 }
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 void _initialize_addrmap ();
index 0c15215b30c6896d3eba9eb5bb7992d4871b22c5..bdad0779ca7c5a5b68036b4f989244ef8fc361b9 100644 (file)
@@ -14846,7 +14846,7 @@ arm_analyze_prologue_test ()
     }
 }
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 /* Cleans up local record registers and memory allocations.  */
index 0428cdfa732e142e5115cd49ea827d62cd90b2dc..65615af352622e073f692a018c9daf399e9cae59 100644 (file)
@@ -684,7 +684,7 @@ create_breakpoint_parse_arg_string_tests ()
   test_error ("task 1xxx", "Junk 'xxx' after task keyword.");
 }
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 void _initialize_break_cond_parse ();
index 07c0f7e52e501e7adc5fc7fcfd4fbb0de1409750..b50bea846790cf83fe09ae04c83c2f786f34311b 100644 (file)
@@ -185,7 +185,7 @@ test_complaints ()
 }
 
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 void _initialize_complaints ();
index 3621d685a56c175a1348767d8a9bcd56e8aaf0e4..6dd364df1c4dc60a42c20482f195ee3f2350b5ca 100644 (file)
@@ -2267,7 +2267,7 @@ test_cp_remove_params ()
 #undef CHECK_INCOMPL
 }
 
-} // namespace selftests
+} /* namespace selftests */
 
 #endif /* GDB_SELF_CHECK */
 
index 221b94f085135837510fa9062082702c76c5c802..ffacf8b02afd88fa798f3ef37338c8ca5629dccb 100644 (file)
@@ -329,7 +329,7 @@ memory_error_test (struct gdbarch *gdbarch)
   SELF_CHECK (saw_memory_error);
 }
 
-} // namespace selftests
+} /* namespace selftests */
 
 void _initialize_disasm_selftests ();
 void
index c11e45bc2bfea8687d86b0aafaac8cde52701178..67dc5344ceecb3b29ecba5d562025c5cb81cad44 100644 (file)
@@ -574,7 +574,7 @@ execute_cfa_program_test (struct gdbarch *gdbarch)
   SELF_CHECK (fs.regs.prev == NULL);
 }
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 \f
index 80b2931cd606c0759986180e11cde6eac0bf838d..baa5493865313f91209fcaedf9ec82ea7fb1cbca 100644 (file)
@@ -985,7 +985,7 @@ run_test ()
   test_dw2_expand_symtabs_matching_symbol ();
 }
 
-}} // namespace selftests::dw2_expand_symtabs_matching
+}} /* namespace selftests::dw2_expand_symtabs_matching */
 
 #endif /* GDB_SELF_TEST */
 
index 644273c96392c926b3f8f42f5a112bc0efb85368..8987cf54652abbd61d84b403577d74b14d2641ce 100644 (file)
@@ -333,7 +333,7 @@ extract_integer_test ()
   do_extract_tests<int8_t> (0x00, 0x00, 0x00);
 }
 
-} // namespace selftests
+} /* namespace selftests */
 
 #endif
 
index dbb93412eea6b461c18efac99a64168365dc2508..56ecc381505b4368c20609f597e008b12f0e2f24 100644 (file)
@@ -179,7 +179,7 @@ check_stack_growth (struct gdbarch *gdbarch)
   SELF_CHECK (stack_grows_up != stack_grows_down);
 }
 
-} // namespace selftests
+} /* namespace selftests */
 
 void _initialize_gdbarch_selftests ();
 void
index 94b1fc939aeae9f615c899a76475ef58dc6e3286..3fb5fbc742aa8ae0647dd4c4edddf4eac5a46a53 100644 (file)
@@ -2634,7 +2634,7 @@ test_python ()
 
 #undef CHECK_OUTPUT
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 #endif /* HAVE_PYTHON */
index c980b6feb34a0f3b299fdc78722de205008266e7..65e69d25578aa5e7c06a63484ed370bfc4acc955 100644 (file)
@@ -2228,7 +2228,7 @@ regcache_thread_ptid_changed ()
   gdb_assert (regcaches.empty ());
 }
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 void _initialize_regcache ();
index 87946490a9e99e9760717af2aae09b8adab1f033..173f4c9407519de2e002836be8004e4697c8e878 100644 (file)
@@ -16159,7 +16159,7 @@ test_packet_check_result ()
 
   SELF_CHECK (packet_check_result ("").status () == PACKET_UNKNOWN);
 }
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 void _initialize_remote ();
index 6fd83da46799a501bcf30b981001ce85835b315b..9173ecb9efa18aa022cea7fc473c65482e6bf179 100644 (file)
@@ -75,7 +75,7 @@ struct scoped_mock_context
   }
 };
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 #endif /* GDB_SCOPED_MOCK_CONTEXT_H */
index a337f76083abc446f581fb3486c6febf313f4134..17eeba843e97e66cb392a78d487f131759c61d88 100644 (file)
@@ -108,5 +108,5 @@ reset ()
   registers_changed ();
   reinit_frame_cache ();
 }
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
index b88c154da8ff40d0ab0b5d616cab96d6e9146b1d..e29d659725fd63720ce91216514ab56caf035ea7 100644 (file)
@@ -59,7 +59,7 @@ public:
   }
 };
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 #endif /* GDB_TEST_TARGET_H */
index 2ec402bae401ac349a6a70798fd6e8870c657cd8..af2e583bfa812ea16002f90d967984fb5f4de55b 100644 (file)
@@ -70,9 +70,9 @@ int_Templ1_t_func (int_Templ1_t *)
 {
 }
 
-} // namespace NS2
+} /* namespace NS2 */
 
-} // namespace NS1
+} /* namespace NS1 */
 
 /* These typedefs have the same name as some of the components within
    NS1 that they alias to, on purpose, to try to confuse GDB and cause
index 52fa2ff6e598b8d53b7fa397797dcc21a992cf57..99753dc8976cbd174a5f8100156e012bbdf520a1 100644 (file)
@@ -137,7 +137,7 @@ G<T>::mul (const T1 t1)
   return t1 * t;
 }
 
-}  // namespace dop
+}  /* namespace dop */
 
 using namespace dop;
 
index fe87bedac7655136d5dedf4b3c11e37200aa08a2..a6b50851cc96d5e0143f64a7d901a2a8e08f1eba 100644 (file)
@@ -100,7 +100,7 @@ run_tests ()
 #undef CHECK_INCOMPL
 }
 
-}} // namespace selftests::lookup_name
+}} /* namespace selftests::lookup_name */
 
 void _initialize_lookup_name_info_selftests ();
 void
index 879ea78779dc36efd15fd2a2820b7e9d5493f830..3d452f91686d5c1089de3dc7f8bb31cb72cc1856 100644 (file)
@@ -4071,7 +4071,7 @@ test_memory_tagging_functions (void)
              && tags.size () == 5);
 }
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
 /* Main function.  This is called by the real "main" function,
@@ -5121,5 +5121,5 @@ void
 reset ()
 {}
 
-} // namespace selftests
+} /* namespace selftests */
 #endif /* GDB_SELF_TEST */
index d3bed68038a9de7eab560a2df46b820a7cce1660..174c45b70325f5306fe94278a1f961d0081e1a72 100644 (file)
@@ -138,4 +138,4 @@ all_selftests ()
   return selftests_range (tests.cbegin (), tests.cend ());
 }
 
-} // namespace selftests
+} /* namespace selftests */
index 2aaacd617a6f704d3c3011520b5c10be9c144678..73dc9ace732ae437472ff409062860e96ea13e5c 100644 (file)
@@ -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