]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb] Use using instead of typedef some more (part 1)
authorTom de Vries <tdevries@suse.de>
Mon, 13 Jul 2026 13:06:35 +0000 (15:06 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 13 Jul 2026 13:06:35 +0000 (15:06 +0200)
commit7e670147b63e4cae2bf78bca414610a1f2ae736d
tree8a1dff68b67397b685404ca3c7d17900469fa71a
parent5befd84f46c67ba4b5a7aefb3fae0423eb024935
[gdb] Use using instead of typedef some more (part 1)

Result of:
...
$ find gdb* -type f -name "*.[ch]" -o -name "*.cc" \
    | egrep -v /testsuite/ \
    | xargs sed -i \
        's/^\([ \t]*\)typedef \([a-zA-Z_0-9:<>,.() ]*\) \([a-zA-Z_0-9]*\)\(\[.*\]\);/\1using \3 = \2\4;/'
$ find gdb* -type f -name "*.[ch]" -o -name "*.cc" \
    | egrep -v /testsuite/ \
    | xargs sed -i \
        's/^\([ \t]*\)typedef \([a-zA-Z_0-9:<>,.()\* ]*\) \([a-zA-Z_0-9]*\);/\1using \3 = \2;/'
...
and manually reverting to changes in comments.

Approved-By: Tom Tromey <tom@tromey.com>
12 files changed:
gdb/cris-tdep.c
gdb/dwarf2/frame.c
gdb/frv-linux-tdep.c
gdb/mips-linux-tdep.h
gdb/mn10300-linux-tdep.c
gdb/ppc-linux-nat.c
gdb/remote.c
gdb/solib-dsbt.c
gdb/solib-frv.c
gdb/tui/tui-layout.h
gdb/tui/tui-winsource.h
gdbsupport/fileio.h