]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb, gdbsupport: use `using` in enum flags code
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 30 May 2024 20:28:20 +0000 (16:28 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 12 Aug 2024 14:58:49 +0000 (10:58 -0400)
commitb050b744be4c35cb6743e2e4d55935fdff56a01b
treebe5e000e6b3ede9e27fd132e5dfa23c73dde9f54
parent66673ad2e4574db3a65e25b307ad41bbcb165dc2
gdb, gdbsupport: use `using` in enum flags code

I think that `using` is easier to read than `typedef`, and it's the
modern C++ thing anyway.

Change-Id: Iccb62dc3869cddfb6a684ef3023dcd5b799f3ab2
gdb/unittests/enum-flags-selftests.c
gdbsupport/enum-flags.h