diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/unittests/vec-utils-selftests.c | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/unittests/vec-utils-selftests.c')
-rw-r--r-- | gdb/unittests/vec-utils-selftests.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/gdb/unittests/vec-utils-selftests.c b/gdb/unittests/vec-utils-selftests.c index 246631f..061d60a 100644 --- a/gdb/unittests/vec-utils-selftests.c +++ b/gdb/unittests/vec-utils-selftests.c @@ -22,8 +22,10 @@ #include "gdbsupport/gdb_vecs.h" -namespace selftests { -namespace vector_utils_tests { +namespace selftests +{ +namespace vector_utils_tests +{ static void unordered_remove_tests () @@ -38,19 +40,16 @@ unordered_remove_tests () { std::vector<void *> var; - obj() = default; + obj () = default; /* gcc complains if we provide an assignment operator but no copy constructor, so provide one even if don't really care for this test. */ - obj(const obj &other) - { - this->var = other.var; - } + obj (const obj &other) { this->var = other.var; } obj &operator= (const obj &other) { if (this == &other) - error (_("detected self move assign")); + error (_ ("detected self move assign")); this->var = other.var; return *this; } @@ -64,13 +63,13 @@ unordered_remove_tests () } } /* namespace vector_utils_tests */ -} /* amespace selftests */ +} // namespace selftests void _initialize_vec_utils_selftests (); + void _initialize_vec_utils_selftests () { - selftests::register_test - ("unordered_remove", - selftests::vector_utils_tests::unordered_remove_tests); + selftests::register_test ( + "unordered_remove", selftests::vector_utils_tests::unordered_remove_tests); } |