binutils-gdb/gdb/cli
Tom de Vries bc7e910e10 [gdb] Use using instead of typedef some more (part 2)
Result of:
...
$ find gdb* -type f -name "*.[ch]" -o -name "*.cc" \
    | egrep -v /testsuite/ \
    | xargs sed -i \
        '/WINAPI/b l;s/^\([ \t]*\)typedef \([a-zA-Z_0-9:<>,.()\* ]*\) \([a-zA-Z_0-9]*\) \((.*)\);/\1using \3 = \2 \4;/;:l'
$ find gdb* -type f -name "*.[ch]" -o -name "*.cc" \
    | egrep -v /testsuite/ \
    | xargs sed -i \
        '/WINAPI/b l;s/^\([ \t]*\)typedef \([a-zA-Z_0-9:<>,.()\* ]*\) (\([a-zA-Z_0-9]*\)) \((.*)\);/\1using \3 = \2 \4;/;:l'
$ find gdb* -type f -name "*.[ch]" -o -name "*.cc" \
    | egrep -v /testsuite/ \
    | xargs sed -i \
        '/WINAPI/b l;s/^\([ \t]*\)typedef \([a-zA-Z_0-9:<>,.()\* ]*\) (\([a-zA-Z_0-9]*\))\((.*)\);/\1using \3 = \2 \4;/;:l'
$ find gdb* -type f -name "*.[ch]" -o -name "*.cc" \
    | egrep -v /testsuite/ \
    | xargs sed -i \
        '/WINAPI/b l;s/^\([ \t]*\)typedef \([a-zA-Z_0-9:<>,.()\* ]*\) (\*\([a-zA-Z_0-9]*\)) \((.*)\);/\1using \3 = \2 (*) \4;/;:l'
...
and fixing up this incorrect rewrite:
...
-typedef int td_key_iter_f (thread_key_t, void (*) (void *), void *);
+using void = int td_key_iter_f (thread_key_t, (*) (void *), void *);
...

Approved-By: Tom Tromey <tom@tromey.com>
2026-07-13 15:06:35 +02:00
..
cli-cmds.c Windows: Normalize backslashes to forward slashes 2026-07-06 22:13:07 +01:00
cli-cmds.h Update copyright dates to include 2026 2026-01-05 13:16:46 -07:00
cli-decode.c gdb, gdbserver, gdbsupport: replace many uses of strcmp with streq 2026-03-16 13:24:00 -04:00
cli-decode.h Do not use ENUM_BITFIELD 2026-05-29 14:39:55 -06:00
cli-dump.c [gdb] Add gdb_bfd_check_format and gdb_bfd_check_format_matches 2026-05-28 22:16:46 +02:00
cli-interp.c Rewrite output redirection and logging 2026-02-09 08:15:44 -07:00
cli-interp.h Rewrite output redirection and logging 2026-02-09 08:15:44 -07:00
cli-logging.c Change two ui_file subclasses to templates 2026-03-23 12:51:57 -06:00
cli-option.c gdb, gdbserver, gdbsupport: replace many uses of strcmp with streq 2026-03-16 13:24:00 -04:00
cli-option.h [gdb] Use using instead of typedef some more (part 2) 2026-07-13 15:06:35 +02:00
cli-script.c Print command trace to gdb_stdlog 2026-06-18 10:48:53 -06:00
cli-script.h [gdb] Use using instead of typedef 2026-06-11 08:54:34 +02:00
cli-setshow.c Remove extraneous 'return' 2026-01-15 10:35:19 -07:00
cli-setshow.h Update copyright dates to include 2026 2026-01-05 13:16:46 -07:00
cli-style.c [gdb] Add missing i18n support to warning strings (part 5) 2026-06-09 22:14:07 +02:00
cli-style.h Update copyright dates to include 2026 2026-01-05 13:16:46 -07:00
cli-utils.c Add variable styling to error messages 2026-04-08 19:12:45 -06:00
cli-utils.h Apply [noreturn] in more places 2026-01-15 12:52:43 -07:00