]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb] Convert typedef on separate line
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)
Convert "typedef struct foo { ... } bar" into "using bar = struct foo { ... }".

Variant where typedef is on its own line.

Generated by a script written by Claude Code.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/cris-tdep.c

index 507f06e0aac46779cfd8954f69a6ebe374bf5632..593c4f1e528733805b177c4260b88f7e403cf78e 100644 (file)
@@ -470,8 +470,7 @@ crisv32_single_step_through_delay (struct gdbarch *gdbarch,
 
 /* The instruction environment needed to find single-step breakpoints.  */
 
-typedef
-struct instruction_environment
+using inst_env_type = struct instruction_environment
 {
   unsigned long reg[NUM_GENREGS];
   unsigned long preg[NUM_SPECREGS];
@@ -486,7 +485,7 @@ struct instruction_environment
   int   xflag_found;
   int   disable_interrupt;
   enum bfd_endian byte_order;
-} inst_env_type;
+};
 
 /* Machine-dependencies in CRIS for opcodes.  */