Clean up ill-advised or unusual header guards
commit9c0928045ce4b97fc59cb285b7a4b559d21e5da0
authorMarkus Armbruster <armbru@redhat.com>
Fri, 6 May 2022 13:49:09 +0000 (6 15:49 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 11 May 2022 14:50:01 +0000 (11 16:50 +0200)
treef1e14f58bc1cb1f57ecfe5e891aa5fb06b0e0ea4
parent52581c718c5cd55595ca032a56f1e194c5716456
Clean up ill-advised or unusual header guards

Leading underscores are ill-advised because such identifiers are
reserved.  Trailing underscores are merely ugly.  Strip both.

Our header guards commonly end in _H.  Normalize the exceptions.

Macros should be ALL_CAPS.  Normalize the exception.

Done with scripts/clean-header-guards.pl.

include/hw/xen/interface/ and tools/virtiofsd/ left alone, because
these were imported from Xen and libfuse respectively.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220506134911.2856099-3-armbru@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
72 files changed:
block/copy-on-read.h
bsd-user/arm/target_arch.h
bsd-user/arm/target_arch_cpu.h
bsd-user/arm/target_arch_elf.h
bsd-user/arm/target_arch_reg.h
bsd-user/arm/target_arch_signal.h
bsd-user/arm/target_arch_sigtramp.h
bsd-user/arm/target_arch_sysarch.h
bsd-user/arm/target_arch_thread.h
bsd-user/arm/target_arch_vmparam.h
bsd-user/bsd-file.h
bsd-user/errno_defs.h
bsd-user/freebsd/host-os.h
bsd-user/freebsd/target_os_elf.h
bsd-user/freebsd/target_os_siginfo.h
bsd-user/freebsd/target_os_signal.h
bsd-user/freebsd/target_os_stack.h
bsd-user/freebsd/target_os_thread.h
bsd-user/freebsd/target_os_user.h
bsd-user/freebsd/target_os_vmparam.h
bsd-user/i386/target_arch.h
bsd-user/i386/target_arch_cpu.h
bsd-user/i386/target_arch_elf.h
bsd-user/i386/target_arch_reg.h
bsd-user/i386/target_arch_sigtramp.h
bsd-user/i386/target_arch_thread.h
bsd-user/i386/target_arch_vmparam.h
bsd-user/netbsd/host-os.h
bsd-user/netbsd/target_os_elf.h
bsd-user/netbsd/target_os_siginfo.h
bsd-user/netbsd/target_os_signal.h
bsd-user/netbsd/target_os_stack.h
bsd-user/netbsd/target_os_thread.h
bsd-user/openbsd/host-os.h
bsd-user/openbsd/target_os_elf.h
bsd-user/openbsd/target_os_siginfo.h
bsd-user/openbsd/target_os_signal.h
bsd-user/openbsd/target_os_stack.h
bsd-user/openbsd/target_os_thread.h
bsd-user/syscall_defs.h
bsd-user/x86_64/target_arch.h
bsd-user/x86_64/target_arch_cpu.h
bsd-user/x86_64/target_arch_elf.h
bsd-user/x86_64/target_arch_reg.h
bsd-user/x86_64/target_arch_signal.h
bsd-user/x86_64/target_arch_sigtramp.h
bsd-user/x86_64/target_arch_thread.h
bsd-user/x86_64/target_arch_vmparam.h
crypto/ivgen-plain.h
include/chardev/char-socket.h
include/hw/i2c/i2c_mux_pca954x.h
include/hw/input/lm832x.h
include/hw/intc/exynos4210_combiner.h
include/hw/intc/nios2_vic.h
include/hw/ppc/pnv_pnor.h
include/hw/s390x/s390-pci-clp.h
include/hw/tricore/tc27x_soc.h
include/hw/virtio/vhost-user-fs.h
include/hw/virtio/vhost-user-i2c.h
include/hw/virtio/vhost-user-rng.h
include/hw/virtio/vhost-user-vsock.h
include/hw/virtio/vhost-vsock-common.h
include/qemu/cpu-float.h
include/qemu/crc-ccitt.h
include/qemu/keyval.h
include/ui/dbus-display.h
include/ui/dbus-module.h
target/ppc/power8-pmu.h
target/riscv/sbi_ecall_interface.h
tests/qtest/libqmp.h
tests/qtest/migration-helpers.h
ui/dbus.h