]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/value.c
Use C++17 [[fallthrough]] attribute
authorTom Tromey <tom@tromey.com>
Sun, 15 Oct 2023 17:09:07 +0000 (11:09 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 29 Nov 2023 21:29:43 +0000 (14:29 -0700)
commitd182e39881061b11d1eb85426d9a6953e3171bf5
treec292f0615eee648207c86ae7035479cb518ea81a
parenta0dc1f9a12a4394463b9dbf5927166f2ab8518a6
Use C++17 [[fallthrough]] attribute

This changes gdb to use the C++17 [[fallthrough]] attribute rather
than special comments.

This was mostly done by script, but I neglected a few spellings and so
also fixed it up by hand.

I suspect this fixes the bug mentioned below, by switching to a
standard approach that, presumably, clang supports.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=23159
Approved-By: John Baldwin <jhb@FreeBSD.org>
Approved-By: Luis Machado <luis.machado@arm.com>
Approved-By: Pedro Alves <pedro@palves.net>
60 files changed:
gdb/aarch64-tdep.c
gdb/ada-exp.y
gdb/ada-lang.c
gdb/ada-valprint.c
gdb/amd64-windows-tdep.c
gdb/arch/arm.c
gdb/arm-tdep.c
gdb/c-exp.y
gdb/cli/cli-setshow.c
gdb/coffread.c
gdb/compile/compile-c-support.c
gdb/compile/compile-c-symbols.c
gdb/compile/compile-cplus-symbols.c
gdb/cp-name-parser.y
gdb/cp-support.c
gdb/ctfread.c
gdb/d-exp.y
gdb/d-valprint.c
gdb/dbxread.c
gdb/disasm-selftests.c
gdb/dwarf2/macro.c
gdb/dwarf2/read.c
gdb/eval.c
gdb/f-exp.y
gdb/fbsd-nat.c
gdb/gdbtypes.c
gdb/go-exp.y
gdb/go-valprint.c
gdb/i386-tdep.c
gdb/m2-typeprint.c
gdb/m2-valprint.c
gdb/machoread.c
gdb/mdebugread.c
gdb/mi/mi-cmd-stack.c
gdb/minsyms.c
gdb/mips-tdep.c
gdb/msp430-tdep.c
gdb/nat/linux-btrace.c
gdb/nat/windows-nat.c
gdb/nat/x86-dregs.c
gdb/p-exp.y
gdb/p-valprint.c
gdb/printcmd.c
gdb/record-btrace.c
gdb/remote.c
gdb/riscv-tdep.c
gdb/rs6000-tdep.c
gdb/rust-parse.c
gdb/s390-tdep.c
gdb/stabsread.c
gdb/symfile.c
gdb/utils.c
gdb/valops.c
gdb/value.c
gdb/windows-nat.c
gdb/xcoffread.c
gdb/z80-tdep.c
gdbserver/netbsd-low.cc
gdbsupport/btrace-common.cc
gdbsupport/format.cc