mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
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
This commit is contained in:
@@ -2972,7 +2972,7 @@ aarch64_linux_ltag_tests (void)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
#endif /* GDB_SELF_TEST */
|
||||
|
||||
void _initialize_aarch64_linux_tdep ();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
@@ -14846,7 +14846,7 @@ arm_analyze_prologue_test ()
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
#endif /* GDB_SELF_TEST */
|
||||
|
||||
/* Cleans up local record registers and memory allocations. */
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
@@ -185,7 +185,7 @@ test_complaints ()
|
||||
}
|
||||
|
||||
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
#endif /* GDB_SELF_TEST */
|
||||
|
||||
void _initialize_complaints ();
|
||||
|
||||
@@ -2267,7 +2267,7 @@ test_cp_remove_params ()
|
||||
#undef CHECK_INCOMPL
|
||||
}
|
||||
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
|
||||
#endif /* GDB_SELF_CHECK */
|
||||
|
||||
|
||||
@@ -329,7 +329,7 @@ memory_error_test (struct gdbarch *gdbarch)
|
||||
SELF_CHECK (saw_memory_error);
|
||||
}
|
||||
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
|
||||
void _initialize_disasm_selftests ();
|
||||
void
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -333,7 +333,7 @@ extract_integer_test ()
|
||||
do_extract_tests<int8_t> (0x00, 0x00, 0x00);
|
||||
}
|
||||
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -2634,7 +2634,7 @@ test_python ()
|
||||
|
||||
#undef CHECK_OUTPUT
|
||||
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
#endif /* GDB_SELF_TEST */
|
||||
|
||||
#endif /* HAVE_PYTHON */
|
||||
|
||||
@@ -2228,7 +2228,7 @@ regcache_thread_ptid_changed ()
|
||||
gdb_assert (regcaches.empty ());
|
||||
}
|
||||
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
#endif /* GDB_SELF_TEST */
|
||||
|
||||
void _initialize_regcache ();
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
@@ -75,7 +75,7 @@ struct scoped_mock_context
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
#endif /* GDB_SELF_TEST */
|
||||
|
||||
#endif /* GDB_SCOPED_MOCK_CONTEXT_H */
|
||||
|
||||
@@ -108,5 +108,5 @@ reset ()
|
||||
registers_changed ();
|
||||
reinit_frame_cache ();
|
||||
}
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
#endif /* GDB_SELF_TEST */
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
#endif /* GDB_SELF_TEST */
|
||||
|
||||
#endif /* GDB_TEST_TARGET_H */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -137,7 +137,7 @@ G<T>::mul (const T1 t1)
|
||||
return t1 * t;
|
||||
}
|
||||
|
||||
} // namespace dop
|
||||
} /* namespace dop */
|
||||
|
||||
using namespace dop;
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ run_tests ()
|
||||
#undef CHECK_INCOMPL
|
||||
}
|
||||
|
||||
}} // namespace selftests::lookup_name
|
||||
}} /* namespace selftests::lookup_name */
|
||||
|
||||
void _initialize_lookup_name_info_selftests ();
|
||||
void
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -138,4 +138,4 @@ all_selftests ()
|
||||
return selftests_range (tests.cbegin (), tests.cend ());
|
||||
}
|
||||
|
||||
} // namespace selftests
|
||||
} /* namespace selftests */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user