From 9d013230eb1d397aaa8050b945f679e16a984981 Mon Sep 17 00:00:00 2001 From: KSKNico Date: Sat, 6 Sep 2025 23:28:22 +0200 Subject: [PATCH] tests: change header guards to pragma once --- tests/bench/timers/bench_timers_config.h | 6 ++---- tests/bench/timers/print_results.h | 7 ++----- tests/bench/timers/spin_random.h | 6 ++---- .../cpp_exclude/external_modules/module_exclude/module.hpp | 6 ++---- .../external_boards/native32/include/external_native.h | 6 ++---- .../external_module/include/external_module.h | 5 ++--- tests/build_system/kconfig/app.h | 6 ++---- .../external_module_1/include/external_module_1.h | 6 ++---- .../external_module_2/include/external_module_2.h | 6 ++---- .../external_pkgs/external_pkg_1/include/external_pkg_1.h | 6 ++---- .../external_pkgs/external_pkg_2/include/external_pkg_2.h | 6 ++---- tests/build_system/xfa/xfatest.h | 5 +---- tests/cpu/avr8_xmega_drivers/cpu_tests.h | 6 ++---- tests/drivers/at86rf215/init_dev.h | 5 ++--- tests/drivers/at86rf2xx/init_dev.h | 5 ++--- tests/drivers/bq2429x/_util.h | 7 ++----- tests/drivers/cc2420/init_dev.h | 5 ++--- tests/drivers/cc2538_rf/init_dev.h | 5 ++--- tests/drivers/dose/init_dev.h | 5 ++--- tests/drivers/enc28j60/init_dev.h | 5 ++--- tests/drivers/encx24j600/init_dev.h | 5 ++--- tests/drivers/epd_bw_spi/pictures.h | 6 ++---- tests/drivers/epd_bw_spi_disp_dev/pictures.h | 6 ++---- tests/drivers/esp_eth/init_dev.h | 5 ++--- tests/drivers/ethos/init_dev.h | 5 ++--- tests/drivers/kw2xrf/init_dev.h | 5 ++--- tests/drivers/mrf24j40/init_dev.h | 5 ++--- tests/drivers/nrf802154/init_dev.h | 5 ++--- tests/drivers/pn532/pn532_params.h | 6 ++---- tests/drivers/sam0_eth/init_dev.h | 5 ++--- tests/drivers/stm32_eth/init_dev.h | 5 ++--- tests/drivers/w5100/init_dev.h | 5 ++--- tests/drivers/w5500/init_dev.h | 5 ++--- tests/net/gnrc_ipv6_fwd_w_sub/common.h | 5 ++--- tests/net/gnrc_ipv6_nib/common.h | 5 ++--- tests/net/gnrc_ipv6_nib_6ln/common.h | 5 ++--- tests/net/gnrc_netif/common.h | 5 ++--- tests/net/gnrc_sixlowpan_frag_minfwd/common.h | 5 ++--- tests/net/gnrc_sixlowpan_frag_sfr/common.h | 5 ++--- tests/net/gnrc_sixlowpan_frag_sfr_congure/common.h | 5 ++--- tests/net/gnrc_sock_ip/constants.h | 6 ++---- tests/net/gnrc_sock_ip/stack.h | 6 ++---- tests/net/gnrc_sock_udp/constants.h | 6 ++---- tests/net/gnrc_sock_udp/stack.h | 6 ++---- tests/net/ieee802154_hal/test_common.h | 5 ++--- tests/net/l2util/common.h | 5 ++--- tests/net/nanocoap_cli/tinydtls_keys.h | 7 ++----- .../boards_modded/nrf52840dk_mod/include/periph_conf.h | 6 ++---- tests/periph/uart_locate_pins/include/soft_uart_params.h | 6 ++---- tests/pkg/cmsis-nn/parameter.h | 6 ++---- tests/pkg/cmsis-nn/weights.h | 6 ++---- tests/pkg/edhoc_c/edhoc_keys.h | 7 ++----- tests/pkg/emlearn/model.h | 5 ++--- tests/pkg/lwip/cli.h | 5 ++--- tests/pkg/lwip/utilities.h | 5 ++--- tests/pkg/lwip_sock_ip/constants.h | 6 ++---- tests/pkg/lwip_sock_ip/stack.h | 6 ++---- tests/pkg/lwip_sock_tcp/constants.h | 6 ++---- tests/pkg/lwip_sock_tcp/stack.h | 6 ++---- tests/pkg/lwip_sock_udp/constants.h | 6 ++---- tests/pkg/lwip_sock_udp/stack.h | 6 ++---- tests/pkg/mcufont/fonts/fonts.h | 5 +---- .../nimble_l2cap_server/include/nimble_l2cap_test_conf.h | 6 ++---- tests/pkg/openwsn_sock_udp/constants.h | 6 ++---- .../openwsn_scheduler_mock/include/scheduler_types.h | 7 ++----- tests/pkg/openwsn_sock_udp/stack.h | 6 ++---- tests/pkg/tinydtls_sock_async/tinydtls_common.h | 5 ++--- tests/pkg/tinydtls_sock_async/tinydtls_keys.h | 7 ++----- tests/pkg/tinyvcdiff/fakemtd.h | 5 ++--- tests/pkg/ucglib/logo.h | 7 ++----- tests/riot_logo.h | 5 +---- tests/sys/congure_abe/congure_impl.h | 5 ++--- tests/sys/congure_quic/congure_impl.h | 5 ++--- tests/sys/congure_reno/congure_impl.h | 5 ++--- tests/sys/congure_test/congure_impl.h | 5 ++--- tests/sys/cpp_ctors/tests-cpp_ctors.h | 5 ++--- tests/sys/crypto/tests-crypto.h | 5 ++--- tests/sys/crypto_aes_ccm/tests-crypto.h | 5 ++--- tests/sys/psa_crypto_cbor_encoder/tests_psa_cbor_enc_dec.h | 6 ++---- .../tests_psa_persistent_storage.h | 6 ++---- tests/sys/rng/test.h | 4 +--- tests/sys/suit_manifest/include/riotboot/flashwrite.h | 5 +---- tests/unittests/common/unittests-constants.h | 5 ++--- tests/unittests/map.h | 5 +---- tests/unittests/tests-analog_util/tests-analog_util.h | 6 +++--- tests/unittests/tests-base64/tests-base64.h | 6 +++--- tests/unittests/tests-bcd/tests-bcd.h | 5 ++--- tests/unittests/tests-bhp_event/tests-bhp_event.h | 5 ++--- tests/unittests/tests-bhp_msg/tests-bhp_msg.h | 5 ++--- tests/unittests/tests-bloom/tests-bloom-sets.h | 5 +---- tests/unittests/tests-bloom/tests-bloom.h | 5 ++--- tests/unittests/tests-bluetil/tests-bluetil.h | 5 ++--- tests/unittests/tests-checksum/tests-checksum.h | 5 ++--- tests/unittests/tests-clif/tests-clif.h | 6 +++--- tests/unittests/tests-coding/tests-coding.h | 5 ++--- tests/unittests/tests-color/tests-color.h | 5 ++--- tests/unittests/tests-core/tests-core-xfa.h | 6 ++---- tests/unittests/tests-core/tests-core.h | 5 ++--- tests/unittests/tests-credman/credentials.h | 7 ++----- tests/unittests/tests-credman/tests-credman.h | 5 ++--- tests/unittests/tests-div/tests-div.h | 6 +++--- tests/unittests/tests-dns_cache/tests-dns_cache.h | 5 ++--- tests/unittests/tests-dns_msg/tests-dns_msg.h | 5 ++--- tests/unittests/tests-fib/tests-fib.h | 6 +++--- tests/unittests/tests-fib_sr/tests-fib_sr.h | 6 +++--- tests/unittests/tests-fmt/tests-fmt.h | 5 ++--- tests/unittests/tests-frac/tests-frac.h | 6 +++--- tests/unittests/tests-gcoap/tests-gcoap.h | 5 ++--- tests/unittests/tests-gnrc_ipv6/tests-gnrc_ipv6.h | 5 ++--- tests/unittests/tests-gnrc_ipv6_hdr/tests-gnrc_ipv6_hdr.h | 5 ++--- tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib.h | 5 ++--- .../tests-gnrc_netif_pktq/tests-gnrc_netif_pktq.h | 5 ++--- .../tests-gnrc_sixlowpan_frag_vrb.h | 5 ++--- tests/unittests/tests-gnrc_udp/tests-gnrc_udp.h | 5 ++--- tests/unittests/tests-hashes/tests-hashes.h | 6 ++---- tests/unittests/tests-ieee802154/tests-ieee802154.h | 5 ++--- tests/unittests/tests-inet_csum/tests-inet_csum.h | 5 ++--- tests/unittests/tests-ipv4_addr/tests-ipv4_addr.h | 5 ++--- tests/unittests/tests-ipv6_addr/tests-ipv6_addr.h | 5 ++--- tests/unittests/tests-ipv6_hdr/tests-ipv6_hdr.h | 5 ++--- .../unittests/tests-kernel_defines/tests-kernel_defines.h | 5 ++--- tests/unittests/tests-libc/tests-libc.h | 5 ++--- tests/unittests/tests-luid/tests-luid.h | 5 ++--- tests/unittests/tests-matstat/tests-matstat.h | 5 ++--- tests/unittests/tests-mtd/tests-mtd.h | 5 ++--- tests/unittests/tests-nanocoap/tests-nanocoap.h | 5 ++--- .../unittests/tests-nanocoap_cache/tests-nanocoap_cache.h | 5 ++--- tests/unittests/tests-netopt/tests-netopt.h | 5 ++--- tests/unittests/tests-netreg/tests-netreg.h | 5 ++--- tests/unittests/tests-phydat/tests-phydat.h | 6 ++---- tests/unittests/tests-pkt/tests-pkt.h | 5 ++--- tests/unittests/tests-pktbuf/tests-pktbuf.h | 5 ++--- tests/unittests/tests-pktqueue/tests-pktqueue.h | 5 ++--- tests/unittests/tests-printf_float/tests-printf_float.h | 6 ++---- .../tests-priority_pktqueue/tests-priority_pktqueue.h | 5 ++--- tests/unittests/tests-rtc/tests-rtc.h | 5 ++--- tests/unittests/tests-rtt_rtc/tests-rtt_rtc.h | 5 ++--- tests/unittests/tests-saul_reg/tests-saul_reg.h | 6 ++---- tests/unittests/tests-scanf_float/tests-scanf_float.h | 6 +++--- tests/unittests/tests-seq/tests-seq.h | 5 ++--- tests/unittests/tests-sht1x/tests-sht1x.h | 5 ++--- tests/unittests/tests-sixlowpan/tests-sixlowpan.h | 5 ++--- tests/unittests/tests-sixlowpan_ctx/tests-sixlowpan_ctx.h | 5 ++--- tests/unittests/tests-sixlowpan_sfr/tests-sixlowpan_sfr.h | 5 ++--- tests/unittests/tests-sock_util/tests-sock_util.h | 5 ++--- tests/unittests/tests-timex/tests-timex.h | 5 ++--- tests/unittests/tests-tsrb/tests-tsrb.h | 5 ++--- tests/unittests/tests-uri_parser/tests-uri_parser.h | 5 ++--- tests/unittests/tests-ut_process/tests-ut_process.h | 5 ++--- tests/unittests/tests-uuid/tests-uuid.h | 5 ++--- tests/unittests/tests-vfs/tests-vfs.h | 5 ++--- tests/unittests/tests-zptr/tests-zptr.h | 5 ++--- tests/unittests/tests-ztimer/tests-ztimer.h | 5 ++--- tests/unittests/tests-ztimer64/tests-ztimer64.h | 5 ++--- 154 files changed, 309 insertions(+), 521 deletions(-) diff --git a/tests/bench/timers/bench_timers_config.h b/tests/bench/timers/bench_timers_config.h index 2706654794..3f91f72cc7 100644 --- a/tests/bench/timers/bench_timers_config.h +++ b/tests/bench/timers/bench_timers_config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -17,8 +19,6 @@ * * @} */ -#ifndef BENCH_TIMERS_CONFIG_H -#define BENCH_TIMERS_CONFIG_H #include @@ -250,5 +250,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* BENCH_TIMERS_CONFIG_H */ diff --git a/tests/bench/timers/print_results.h b/tests/bench/timers/print_results.h index a8a835124c..9123b9cfe0 100644 --- a/tests/bench/timers/print_results.h +++ b/tests/bench/timers/print_results.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -16,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef PRINT_RESULTS_H -#define PRINT_RESULTS_H - #include "matstat.h" #ifdef __cplusplus @@ -59,5 +58,3 @@ void print_results(const result_presentation_t *pres, const matstat_state_t *ref #ifdef __cplusplus } #endif - -#endif /* PRINT_RESULTS_H */ diff --git a/tests/bench/timers/spin_random.h b/tests/bench/timers/spin_random.h index df8b2587d2..9b090e7f7f 100644 --- a/tests/bench/timers/spin_random.h +++ b/tests/bench/timers/spin_random.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup sys_spin_random Spin_random - random CPU delays * @ingroup sys @@ -18,9 +20,6 @@ * @author Joakim Nohlgård */ -#ifndef SPIN_RANDOM_H -#define SPIN_RANDOM_H - #include #include "periph/timer.h" @@ -66,5 +65,4 @@ uint32_t spin_random_calibrate(tim_t timer_dev, uint32_t spin_max_target); } #endif -#endif /* SPIN_RANDOM_H */ /** @} */ diff --git a/tests/build_system/cpp_exclude/external_modules/module_exclude/module.hpp b/tests/build_system/cpp_exclude/external_modules/module_exclude/module.hpp index c75f18132d..44dde67910 100644 --- a/tests/build_system/cpp_exclude/external_modules/module_exclude/module.hpp +++ b/tests/build_system/cpp_exclude/external_modules/module_exclude/module.hpp @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef MODULE_H -#define MODULE_H - #include class module_class @@ -43,4 +42,3 @@ public: }; /** @} */ -#endif /* MODULE_H */ diff --git a/tests/build_system/external_board_native/external_boards/native32/include/external_native.h b/tests/build_system/external_board_native/external_boards/native32/include/external_native.h index 870bbea268..f76286fd10 100644 --- a/tests/build_system/external_board_native/external_boards/native32/include/external_native.h +++ b/tests/build_system/external_board_native/external_boards/native32/include/external_native.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_external_native * @{ @@ -16,9 +18,6 @@ * @author Gaëtan Harter */ -#ifndef EXTERNAL_NATIVE_H -#define EXTERNAL_NATIVE_H - #ifdef __cplusplus extern "C" { #endif @@ -32,5 +31,4 @@ extern char* external_native_board_description; } #endif -#endif /* EXTERNAL_NATIVE_H */ /** @} */ diff --git a/tests/build_system/external_module_dirs/external_modules/external_module/include/external_module.h b/tests/build_system/external_module_dirs/external_modules/external_module/include/external_module.h index e15bbaff97..5d1366eddc 100644 --- a/tests/build_system/external_module_dirs/external_modules/external_module/include/external_module.h +++ b/tests/build_system/external_module_dirs/external_modules/external_module/include/external_module.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup * @ingroup @@ -17,8 +19,6 @@ * * @author Gaëtan Harter */ -#ifndef EXTERNAL_MODULE_H -#define EXTERNAL_MODULE_H #include @@ -47,4 +47,3 @@ void auto_init_external_module(void); #endif /** @} */ -#endif /* EXTERNAL_MODULE_H */ diff --git a/tests/build_system/kconfig/app.h b/tests/build_system/kconfig/app.h index a616b4fde9..bfcce02bb6 100644 --- a/tests/build_system/kconfig/app.h +++ b/tests/build_system/kconfig/app.h @@ -5,8 +5,8 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ -#ifndef APP_H -#define APP_H + +#pragma once #ifdef __cplusplus extern "C" { @@ -22,5 +22,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* APP_H */ diff --git a/tests/build_system/kconfig/external_modules/external_module_1/include/external_module_1.h b/tests/build_system/kconfig/external_modules/external_module_1/include/external_module_1.h index a60d12ee83..2e7193f8ab 100644 --- a/tests/build_system/kconfig/external_modules/external_module_1/include/external_module_1.h +++ b/tests/build_system/kconfig/external_modules/external_module_1/include/external_module_1.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup * @ingroup @@ -20,9 +22,6 @@ * @} */ -#ifndef EXTERNAL_MODULE_1_H -#define EXTERNAL_MODULE_1_H - #ifdef __cplusplus extern "C" { #endif @@ -36,4 +35,3 @@ extern "C" { #endif /** @} */ -#endif /* EXTERNAL_MODULE_1_H */ diff --git a/tests/build_system/kconfig/external_modules/external_module_2/include/external_module_2.h b/tests/build_system/kconfig/external_modules/external_module_2/include/external_module_2.h index a110cc1694..fb64141e3b 100644 --- a/tests/build_system/kconfig/external_modules/external_module_2/include/external_module_2.h +++ b/tests/build_system/kconfig/external_modules/external_module_2/include/external_module_2.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup * @ingroup @@ -20,9 +22,6 @@ * @} */ -#ifndef EXTERNAL_MODULE_2_H -#define EXTERNAL_MODULE_2_H - #ifdef __cplusplus extern "C" { #endif @@ -36,4 +35,3 @@ extern "C" { #endif /** @} */ -#endif /* EXTERNAL_MODULE_2_H */ diff --git a/tests/build_system/kconfig/external_pkgs/external_pkg_1/include/external_pkg_1.h b/tests/build_system/kconfig/external_pkgs/external_pkg_1/include/external_pkg_1.h index c326dc2fd3..64ad6b5aec 100644 --- a/tests/build_system/kconfig/external_pkgs/external_pkg_1/include/external_pkg_1.h +++ b/tests/build_system/kconfig/external_pkgs/external_pkg_1/include/external_pkg_1.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup * @ingroup @@ -21,9 +23,6 @@ * @} */ -#ifndef EXTERNAL_PKG_1_H -#define EXTERNAL_PKG_1_H - #ifdef __cplusplus extern "C" { #endif @@ -37,4 +36,3 @@ extern "C" { #endif /** @} */ -#endif /* EXTERNAL_PKG_1_H */ diff --git a/tests/build_system/kconfig/external_pkgs/external_pkg_2/include/external_pkg_2.h b/tests/build_system/kconfig/external_pkgs/external_pkg_2/include/external_pkg_2.h index b91043e496..7504a3b43a 100644 --- a/tests/build_system/kconfig/external_pkgs/external_pkg_2/include/external_pkg_2.h +++ b/tests/build_system/kconfig/external_pkgs/external_pkg_2/include/external_pkg_2.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup * @ingroup @@ -21,9 +23,6 @@ * @} */ -#ifndef EXTERNAL_PKG_2_H -#define EXTERNAL_PKG_2_H - #ifdef __cplusplus extern "C" { #endif @@ -37,4 +36,3 @@ extern "C" { #endif /** @} */ -#endif /* EXTERNAL_PKG_2_H */ diff --git a/tests/build_system/xfa/xfatest.h b/tests/build_system/xfa/xfatest.h index 5935ce58fb..cc32a1d217 100644 --- a/tests/build_system/xfa/xfatest.h +++ b/tests/build_system/xfa/xfatest.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef XFATEST_H -#define XFATEST_H +#pragma once #ifdef __cplusplus extern "C" { @@ -26,5 +25,3 @@ typedef struct { #ifdef __cplusplus } #endif - -#endif /* XFATEST_H */ diff --git a/tests/cpu/avr8_xmega_drivers/cpu_tests.h b/tests/cpu/avr8_xmega_drivers/cpu_tests.h index fecd7a677e..1002150c59 100644 --- a/tests/cpu/avr8_xmega_drivers/cpu_tests.h +++ b/tests/cpu/avr8_xmega_drivers/cpu_tests.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -17,8 +19,6 @@ * * @} */ -#ifndef CPU_TESTS_H -#define CPU_TESTS_H #ifdef __cplusplus extern "C" { @@ -29,5 +29,3 @@ void ebi_tests(void); #ifdef __cplusplus } #endif - -#endif /* CPU_TESTS_H */ diff --git a/tests/drivers/at86rf215/init_dev.h b/tests/drivers/at86rf215/init_dev.h index 60e368f6b3..38126ecbe9 100644 --- a/tests/drivers/at86rf215/init_dev.h +++ b/tests/drivers/at86rf215/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #include "at86rf215_params.h" #include "kernel_defines.h" @@ -33,5 +33,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/at86rf2xx/init_dev.h b/tests/drivers/at86rf2xx/init_dev.h index df6c4dd78e..f7ab613a6f 100644 --- a/tests/drivers/at86rf2xx/init_dev.h +++ b/tests/drivers/at86rf2xx/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #include "at86rf2xx_params.h" #include "kernel_defines.h" @@ -32,5 +32,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/bq2429x/_util.h b/tests/drivers/bq2429x/_util.h index 6a40866ff2..9e085294e7 100644 --- a/tests/drivers/bq2429x/_util.h +++ b/tests/drivers/bq2429x/_util.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief Util functions for test application for the BQ24298x device @@ -14,9 +16,6 @@ * @file */ -#ifndef PRIV_UTIL_H -#define PRIV_UTIL_H - #include #include "bq2429x.h" @@ -208,5 +207,3 @@ static inline const char *_util_chrg_fault_to_str(bq2429x_chrg_fault_t fault) #ifdef __cplusplus } #endif - -#endif /* PRIV_UTIL_H */ diff --git a/tests/drivers/cc2420/init_dev.h b/tests/drivers/cc2420/init_dev.h index cf412b85f7..ac2be56155 100644 --- a/tests/drivers/cc2420/init_dev.h +++ b/tests/drivers/cc2420/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #include "cc2420_params.h" #include "kernel_defines.h" @@ -32,5 +32,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/cc2538_rf/init_dev.h b/tests/drivers/cc2538_rf/init_dev.h index 19ebb1354a..39f17ea94f 100644 --- a/tests/drivers/cc2538_rf/init_dev.h +++ b/tests/drivers/cc2538_rf/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #ifdef __cplusplus extern "C" { @@ -29,5 +29,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/dose/init_dev.h b/tests/drivers/dose/init_dev.h index 1aca9310b0..c0b2dfa90e 100644 --- a/tests/drivers/dose/init_dev.h +++ b/tests/drivers/dose/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #include @@ -41,5 +41,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/enc28j60/init_dev.h b/tests/drivers/enc28j60/init_dev.h index bff7138aab..2c5dfd9892 100644 --- a/tests/drivers/enc28j60/init_dev.h +++ b/tests/drivers/enc28j60/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #include @@ -41,5 +41,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/encx24j600/init_dev.h b/tests/drivers/encx24j600/init_dev.h index cf1288efbc..b06500bf73 100644 --- a/tests/drivers/encx24j600/init_dev.h +++ b/tests/drivers/encx24j600/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #include @@ -41,5 +41,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/epd_bw_spi/pictures.h b/tests/drivers/epd_bw_spi/pictures.h index 28c7b64494..e0618f3978 100644 --- a/tests/drivers/epd_bw_spi/pictures.h +++ b/tests/drivers/epd_bw_spi/pictures.h @@ -6,6 +6,8 @@ * */ +#pragma once + /** * @ingroup tests_drivers_epd_bw_spi * @{ @@ -24,9 +26,6 @@ * @} */ -#ifndef PICTURES_H -#define PICTURES_H - #ifdef __cplusplus extern "C" { #endif @@ -269,4 +268,3 @@ const uint8_t riot_logo_32[17][4] = { #ifdef __cplusplus } #endif -#endif /* PICTURES_H */ diff --git a/tests/drivers/epd_bw_spi_disp_dev/pictures.h b/tests/drivers/epd_bw_spi_disp_dev/pictures.h index 28c7b64494..e0618f3978 100644 --- a/tests/drivers/epd_bw_spi_disp_dev/pictures.h +++ b/tests/drivers/epd_bw_spi_disp_dev/pictures.h @@ -6,6 +6,8 @@ * */ +#pragma once + /** * @ingroup tests_drivers_epd_bw_spi * @{ @@ -24,9 +26,6 @@ * @} */ -#ifndef PICTURES_H -#define PICTURES_H - #ifdef __cplusplus extern "C" { #endif @@ -269,4 +268,3 @@ const uint8_t riot_logo_32[17][4] = { #ifdef __cplusplus } #endif -#endif /* PICTURES_H */ diff --git a/tests/drivers/esp_eth/init_dev.h b/tests/drivers/esp_eth/init_dev.h index d7ef56a336..b7bc9462aa 100644 --- a/tests/drivers/esp_eth/init_dev.h +++ b/tests/drivers/esp_eth/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #ifdef __cplusplus extern "C" { @@ -32,5 +32,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/ethos/init_dev.h b/tests/drivers/ethos/init_dev.h index 4f6f2a8e60..b998054b5b 100644 --- a/tests/drivers/ethos/init_dev.h +++ b/tests/drivers/ethos/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #include @@ -41,5 +41,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/kw2xrf/init_dev.h b/tests/drivers/kw2xrf/init_dev.h index b43761bb5c..b0ec8d10d1 100644 --- a/tests/drivers/kw2xrf/init_dev.h +++ b/tests/drivers/kw2xrf/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #include "kernel_defines.h" #include "kw2xrf_params.h" @@ -36,5 +36,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/mrf24j40/init_dev.h b/tests/drivers/mrf24j40/init_dev.h index 8ac5f271b5..4b27989ae8 100644 --- a/tests/drivers/mrf24j40/init_dev.h +++ b/tests/drivers/mrf24j40/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #include "kernel_defines.h" #include "mrf24j40_params.h" @@ -32,5 +32,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/nrf802154/init_dev.h b/tests/drivers/nrf802154/init_dev.h index 14b3ca0689..f8bf482cc0 100644 --- a/tests/drivers/nrf802154/init_dev.h +++ b/tests/drivers/nrf802154/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Kevin Weiss */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #ifdef __cplusplus extern "C" { @@ -29,5 +29,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/pn532/pn532_params.h b/tests/drivers/pn532/pn532_params.h index 98678de215..de655f8566 100644 --- a/tests/drivers/pn532/pn532_params.h +++ b/tests/drivers/pn532/pn532_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -16,9 +18,6 @@ * @author Víctor Ariño */ -#ifndef PN532_PARAMS_H -#define PN532_PARAMS_H - #ifdef __cplusplus extern "C" { #endif @@ -45,5 +44,4 @@ static const pn532_params_t pn532_conf[] = { } #endif -#endif /* PN532_PARAMS_H */ /** @} */ diff --git a/tests/drivers/sam0_eth/init_dev.h b/tests/drivers/sam0_eth/init_dev.h index 0d3aa05347..cbf9b5986e 100644 --- a/tests/drivers/sam0_eth/init_dev.h +++ b/tests/drivers/sam0_eth/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #ifdef __cplusplus extern "C" { @@ -32,5 +32,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/stm32_eth/init_dev.h b/tests/drivers/stm32_eth/init_dev.h index 2ca59ccc61..c9e6ae9258 100644 --- a/tests/drivers/stm32_eth/init_dev.h +++ b/tests/drivers/stm32_eth/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #ifdef __cplusplus extern "C" { @@ -32,5 +32,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/w5100/init_dev.h b/tests/drivers/w5100/init_dev.h index f09e586c76..82afe9b5cd 100644 --- a/tests/drivers/w5100/init_dev.h +++ b/tests/drivers/w5100/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Leandro Lanzieri */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #include @@ -41,5 +41,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/drivers/w5500/init_dev.h b/tests/drivers/w5500/init_dev.h index 281f408b56..2f7fe27177 100644 --- a/tests/drivers/w5500/init_dev.h +++ b/tests/drivers/w5500/init_dev.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Stefan Schmidt */ -#ifndef INIT_DEV_H -#define INIT_DEV_H #include @@ -41,5 +41,4 @@ extern "C" { } #endif -#endif /* INIT_DEV_H */ /** @} */ diff --git a/tests/net/gnrc_ipv6_fwd_w_sub/common.h b/tests/net/gnrc_ipv6_fwd_w_sub/common.h index eb6091f0d1..1b9cc1396f 100644 --- a/tests/net/gnrc_ipv6_fwd_w_sub/common.h +++ b/tests/net/gnrc_ipv6_fwd_w_sub/common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup tests_gnrc_ipv6_nib Common header for GNRC's NIB tests * @ingroup tests @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef COMMON_H -#define COMMON_H #include @@ -43,5 +43,4 @@ void _tests_init(void); } #endif -#endif /* COMMON_H */ /** @} */ diff --git a/tests/net/gnrc_ipv6_nib/common.h b/tests/net/gnrc_ipv6_nib/common.h index 20a105f1be..bd82f1a573 100644 --- a/tests/net/gnrc_ipv6_nib/common.h +++ b/tests/net/gnrc_ipv6_nib/common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup tests_gnrc_ipv6_nib Common header for GNRC's NIB tests * @ingroup tests @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef COMMON_H -#define COMMON_H #include @@ -45,5 +45,4 @@ void _common_set_up(void); } #endif -#endif /* COMMON_H */ /** @} */ diff --git a/tests/net/gnrc_ipv6_nib_6ln/common.h b/tests/net/gnrc_ipv6_nib_6ln/common.h index 16d92e71fc..b3f71fe4c7 100644 --- a/tests/net/gnrc_ipv6_nib_6ln/common.h +++ b/tests/net/gnrc_ipv6_nib_6ln/common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup tests_gnrc_ipv6_nib Common header for GNRC's NIB tests * @ingroup tests @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef COMMON_H -#define COMMON_H #include @@ -47,5 +47,4 @@ void _common_set_up(void); } #endif -#endif /* COMMON_H */ /** @} */ diff --git a/tests/net/gnrc_netif/common.h b/tests/net/gnrc_netif/common.h index 1fe539ceb7..f1f3e0d77f 100644 --- a/tests/net/gnrc_netif/common.h +++ b/tests/net/gnrc_netif/common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup tests_gnrc_ipv6_nib Common header for GNRC's NIB tests * @ingroup tests @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef COMMON_H -#define COMMON_H #include "net/gnrc/netif.h" @@ -106,5 +106,4 @@ void _test_trigger_recv(gnrc_netif_t *netif, const uint8_t *data, } #endif -#endif /* COMMON_H */ /** @} */ diff --git a/tests/net/gnrc_sixlowpan_frag_minfwd/common.h b/tests/net/gnrc_sixlowpan_frag_minfwd/common.h index 1c6bd3031b..4d39a7be5f 100644 --- a/tests/net/gnrc_sixlowpan_frag_minfwd/common.h +++ b/tests/net/gnrc_sixlowpan_frag_minfwd/common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup tests_gnrc_ipv6_nib Common header for GNRC's NIB tests * @ingroup tests @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef COMMON_H -#define COMMON_H #include @@ -46,5 +46,4 @@ void _common_set_up(void); } #endif -#endif /* COMMON_H */ /** @} */ diff --git a/tests/net/gnrc_sixlowpan_frag_sfr/common.h b/tests/net/gnrc_sixlowpan_frag_sfr/common.h index 1c6bd3031b..4d39a7be5f 100644 --- a/tests/net/gnrc_sixlowpan_frag_sfr/common.h +++ b/tests/net/gnrc_sixlowpan_frag_sfr/common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup tests_gnrc_ipv6_nib Common header for GNRC's NIB tests * @ingroup tests @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef COMMON_H -#define COMMON_H #include @@ -46,5 +46,4 @@ void _common_set_up(void); } #endif -#endif /* COMMON_H */ /** @} */ diff --git a/tests/net/gnrc_sixlowpan_frag_sfr_congure/common.h b/tests/net/gnrc_sixlowpan_frag_sfr_congure/common.h index 1c6bd3031b..4d39a7be5f 100644 --- a/tests/net/gnrc_sixlowpan_frag_sfr_congure/common.h +++ b/tests/net/gnrc_sixlowpan_frag_sfr_congure/common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @defgroup tests_gnrc_ipv6_nib Common header for GNRC's NIB tests * @ingroup tests @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef COMMON_H -#define COMMON_H #include @@ -46,5 +46,4 @@ void _common_set_up(void); } #endif -#endif /* COMMON_H */ /** @} */ diff --git a/tests/net/gnrc_sock_ip/constants.h b/tests/net/gnrc_sock_ip/constants.h index ab29de8495..6af3116178 100644 --- a/tests/net/gnrc_sock_ip/constants.h +++ b/tests/net/gnrc_sock_ip/constants.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef CONSTANTS_H -#define CONSTANTS_H #ifdef __cplusplus extern "C" { @@ -37,5 +37,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* CONSTANTS_H */ diff --git a/tests/net/gnrc_sock_ip/stack.h b/tests/net/gnrc_sock_ip/stack.h index e4d5b9b831..08b60ab843 100644 --- a/tests/net/gnrc_sock_ip/stack.h +++ b/tests/net/gnrc_sock_ip/stack.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef STACK_H -#define STACK_H #include #include @@ -114,5 +114,3 @@ bool _check_packet(const ipv6_addr_t *src, const ipv6_addr_t *dst, #ifdef __cplusplus } #endif - -#endif /* STACK_H */ diff --git a/tests/net/gnrc_sock_udp/constants.h b/tests/net/gnrc_sock_udp/constants.h index 45c0395e68..1c539e61bd 100644 --- a/tests/net/gnrc_sock_udp/constants.h +++ b/tests/net/gnrc_sock_udp/constants.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef CONSTANTS_H -#define CONSTANTS_H #ifdef __cplusplus extern "C" { @@ -38,5 +38,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* CONSTANTS_H */ diff --git a/tests/net/gnrc_sock_udp/stack.h b/tests/net/gnrc_sock_udp/stack.h index fbd1bf3d40..2c50c8369f 100644 --- a/tests/net/gnrc_sock_udp/stack.h +++ b/tests/net/gnrc_sock_udp/stack.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef STACK_H -#define STACK_H #include #include @@ -121,5 +121,3 @@ bool _check_packet(const ipv6_addr_t *src, const ipv6_addr_t *dst, #ifdef __cplusplus } #endif - -#endif /* STACK_H */ diff --git a/tests/net/ieee802154_hal/test_common.h b/tests/net/ieee802154_hal/test_common.h index 32cb5c01c1..ee56f52980 100644 --- a/tests/net/ieee802154_hal/test_common.h +++ b/tests/net/ieee802154_hal/test_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author José I. Alamos */ -#ifndef TEST_COMMON_H -#define TEST_COMMON_H #include "net/ieee802154/radio.h" #if IS_USED(MODULE_SOCKET_ZEP) @@ -62,5 +62,4 @@ void ieee802154_hal_test_init_devs(ieee802154_dev_cb_t cb, void *opaque); } #endif -#endif /* TEST_COMMON_H */ /** @} */ diff --git a/tests/net/l2util/common.h b/tests/net/l2util/common.h index 87a37cbd22..05327e68cd 100644 --- a/tests/net/l2util/common.h +++ b/tests/net/l2util/common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief Common definitions for GNRC's NIB tests @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef COMMON_H -#define COMMON_H #include "net/gnrc/netif.h" @@ -95,5 +95,4 @@ extern "C" { } #endif -#endif /* COMMON_H */ /** @} */ diff --git a/tests/net/nanocoap_cli/tinydtls_keys.h b/tests/net/nanocoap_cli/tinydtls_keys.h index 6d1d2bcdad..ff5bb98b26 100644 --- a/tests/net/nanocoap_cli/tinydtls_keys.h +++ b/tests/net/nanocoap_cli/tinydtls_keys.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup examples * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef TINYDTLS_KEYS_H -#define TINYDTLS_KEYS_H - #ifdef __cplusplus extern "C" { #endif @@ -37,5 +36,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* TINYDTLS_KEYS_H */ diff --git a/tests/periph/qdec/boards_modded/nrf52840dk_mod/include/periph_conf.h b/tests/periph/qdec/boards_modded/nrf52840dk_mod/include/periph_conf.h index 7e931301de..5be262b8aa 100644 --- a/tests/periph/qdec/boards_modded/nrf52840dk_mod/include/periph_conf.h +++ b/tests/periph/qdec/boards_modded/nrf52840dk_mod/include/periph_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup boards_nrf52840dk_modded * @{ @@ -18,9 +20,6 @@ * */ -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - #include "kernel_defines.h" #include "periph_conf_common.h" @@ -69,5 +68,4 @@ static const uart_conf_t uart_config[] = { } #endif -#endif /* PERIPH_CONF_H */ /** @} */ diff --git a/tests/periph/uart_locate_pins/include/soft_uart_params.h b/tests/periph/uart_locate_pins/include/soft_uart_params.h index 083bef1892..d8a2248343 100644 --- a/tests/periph/uart_locate_pins/include/soft_uart_params.h +++ b/tests/periph/uart_locate_pins/include/soft_uart_params.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests_periph_uart_locate_pins * @{ @@ -19,9 +21,6 @@ * @} */ -#ifndef SOFT_UART_PARAMS_H -#define SOFT_UART_PARAMS_H - #include "soft_uart.h" #ifdef __cplusplus @@ -39,5 +38,4 @@ extern soft_uart_conf_t soft_uart_config[]; } #endif -#endif /* SOFT_UART_PARAMS_H */ /** @} */ diff --git a/tests/pkg/cmsis-nn/parameter.h b/tests/pkg/cmsis-nn/parameter.h index 5c88613e97..af3a74c2a7 100644 --- a/tests/pkg/cmsis-nn/parameter.h +++ b/tests/pkg/cmsis-nn/parameter.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -14,9 +16,6 @@ * @brief CNN parameters */ -#ifndef PARAMETER_H -#define PARAMETER_H - #ifdef __cplusplus extern "C" { #endif @@ -69,5 +68,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* PARAMETER_H */ /** @} */ diff --git a/tests/pkg/cmsis-nn/weights.h b/tests/pkg/cmsis-nn/weights.h index 8c48d86cdd..5d37935033 100644 --- a/tests/pkg/cmsis-nn/weights.h +++ b/tests/pkg/cmsis-nn/weights.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -14,9 +16,6 @@ * @brief CNN weights */ -#ifndef WEIGHTS_H -#define WEIGHTS_H - #ifdef __cplusplus extern "C" { #endif @@ -1768,5 +1767,4 @@ extern "C" { } /* end extern "C" */ #endif -#endif /* WEIGHTS_H */ /** @} */ diff --git a/tests/pkg/edhoc_c/edhoc_keys.h b/tests/pkg/edhoc_c/edhoc_keys.h index 5fe7130620..8267eb6442 100644 --- a/tests/pkg/edhoc_c/edhoc_keys.h +++ b/tests/pkg/edhoc_c/edhoc_keys.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -22,9 +24,6 @@ * @} */ -#ifndef EDHOC_KEYS_H -#define EDHOC_KEYS_H - #include #include "kernel_defines.h" @@ -170,5 +169,3 @@ static const cred_db_entry_t cred_db[] = { #ifdef __cplusplus } #endif - -#endif /* EDHOC_KEYS_H */ diff --git a/tests/pkg/emlearn/model.h b/tests/pkg/emlearn/model.h index 15232e3c95..b943845519 100644 --- a/tests/pkg/emlearn/model.h +++ b/tests/pkg/emlearn/model.h @@ -1,5 +1,5 @@ -#ifndef MODEL_H -#define MODEL_H +#pragma once + #ifdef __cplusplus extern "C" { #endif @@ -7791,4 +7791,3 @@ int32_t model_predict(const float *features, int32_t features_length) { #ifdef __cplusplus } #endif -#endif /* MODEL_H */ diff --git a/tests/pkg/lwip/cli.h b/tests/pkg/lwip/cli.h index 02f04077d9..feb09a7fe7 100644 --- a/tests/pkg/lwip/cli.h +++ b/tests/pkg/lwip/cli.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef CLI_H -#define CLI_H #include #include @@ -89,5 +89,4 @@ int udp_cmd(int argc, char **argv); } #endif -#endif /* CLI_H */ /** @} */ diff --git a/tests/pkg/lwip/utilities.h b/tests/pkg/lwip/utilities.h index e0581d87bc..971f552ba7 100644 --- a/tests/pkg/lwip/utilities.h +++ b/tests/pkg/lwip/utilities.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef UTILITIES_H -#define UTILITIES_H #include #include @@ -40,5 +40,4 @@ size_t hex2ints(uint8_t *out, const char *in); } #endif -#endif /* UTILITIES_H */ /** @} */ diff --git a/tests/pkg/lwip_sock_ip/constants.h b/tests/pkg/lwip_sock_ip/constants.h index 5a7df40e47..bce0f66733 100644 --- a/tests/pkg/lwip_sock_ip/constants.h +++ b/tests/pkg/lwip_sock_ip/constants.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef CONSTANTS_H -#define CONSTANTS_H #ifdef __cplusplus extern "C" { @@ -51,5 +51,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* CONSTANTS_H */ diff --git a/tests/pkg/lwip_sock_ip/stack.h b/tests/pkg/lwip_sock_ip/stack.h index 243be854a3..0aee8d0768 100644 --- a/tests/pkg/lwip_sock_ip/stack.h +++ b/tests/pkg/lwip_sock_ip/stack.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef STACK_H -#define STACK_H #include #include @@ -117,5 +117,3 @@ bool _check_6packet(const ipv6_addr_t *src, const ipv6_addr_t *dst, #ifdef __cplusplus } #endif - -#endif /* STACK_H */ diff --git a/tests/pkg/lwip_sock_tcp/constants.h b/tests/pkg/lwip_sock_tcp/constants.h index a474863343..78dfb35bea 100644 --- a/tests/pkg/lwip_sock_tcp/constants.h +++ b/tests/pkg/lwip_sock_tcp/constants.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef CONSTANTS_H -#define CONSTANTS_H #ifdef __cplusplus extern "C" { @@ -52,5 +52,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* CONSTANTS_H */ diff --git a/tests/pkg/lwip_sock_tcp/stack.h b/tests/pkg/lwip_sock_tcp/stack.h index 81af52fe9b..2191df8346 100644 --- a/tests/pkg/lwip_sock_tcp/stack.h +++ b/tests/pkg/lwip_sock_tcp/stack.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef STACK_H -#define STACK_H #ifdef __cplusplus extern "C" { @@ -32,5 +32,3 @@ void _net_init(void); #ifdef __cplusplus } #endif - -#endif /* STACK_H */ diff --git a/tests/pkg/lwip_sock_udp/constants.h b/tests/pkg/lwip_sock_udp/constants.h index d7e115ad54..da83c7f985 100644 --- a/tests/pkg/lwip_sock_udp/constants.h +++ b/tests/pkg/lwip_sock_udp/constants.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef CONSTANTS_H -#define CONSTANTS_H #ifdef __cplusplus extern "C" { @@ -52,5 +52,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* CONSTANTS_H */ diff --git a/tests/pkg/lwip_sock_udp/stack.h b/tests/pkg/lwip_sock_udp/stack.h index 1864fa0257..1b452f6663 100644 --- a/tests/pkg/lwip_sock_udp/stack.h +++ b/tests/pkg/lwip_sock_udp/stack.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef STACK_H -#define STACK_H #include #include @@ -127,5 +127,3 @@ bool _check_6packet(const ipv6_addr_t *src, const ipv6_addr_t *dst, #ifdef __cplusplus } #endif - -#endif /* STACK_H */ diff --git a/tests/pkg/mcufont/fonts/fonts.h b/tests/pkg/mcufont/fonts/fonts.h index c399811b12..fff78754e7 100644 --- a/tests/pkg/mcufont/fonts/fonts.h +++ b/tests/pkg/mcufont/fonts/fonts.h @@ -1,5 +1,4 @@ -#ifndef FONTS_H -#define FONTS_H +#pragma once #ifdef __cplusplus extern "C" { @@ -11,5 +10,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* FONTS_H */ diff --git a/tests/pkg/nimble_l2cap_server/include/nimble_l2cap_test_conf.h b/tests/pkg/nimble_l2cap_server/include/nimble_l2cap_test_conf.h index 680d970087..196712b0eb 100644 --- a/tests/pkg/nimble_l2cap_server/include/nimble_l2cap_test_conf.h +++ b/tests/pkg/nimble_l2cap_server/include/nimble_l2cap_test_conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef NIMBLE_L2CAP_TEST_CONF_H -#define NIMBLE_L2CAP_TEST_CONF_H - #ifdef __cplusplus extern "C" { #endif @@ -57,5 +56,4 @@ extern "C" { } #endif -#endif /* NIMBLE_L2CAP_TEST_CONF_H */ /** @} */ diff --git a/tests/pkg/openwsn_sock_udp/constants.h b/tests/pkg/openwsn_sock_udp/constants.h index 8ebf440c74..6473aecf7e 100644 --- a/tests/pkg/openwsn_sock_udp/constants.h +++ b/tests/pkg/openwsn_sock_udp/constants.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef CONSTANTS_H -#define CONSTANTS_H #include "openwsn.h" @@ -40,5 +40,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* CONSTANTS_H */ diff --git a/tests/pkg/openwsn_sock_udp/external_modules/openwsn_scheduler_mock/include/scheduler_types.h b/tests/pkg/openwsn_sock_udp/external_modules/openwsn_scheduler_mock/include/scheduler_types.h index b42b180d23..98de9f58ae 100644 --- a/tests/pkg/openwsn_sock_udp/external_modules/openwsn_scheduler_mock/include/scheduler_types.h +++ b/tests/pkg/openwsn_sock_udp/external_modules/openwsn_scheduler_mock/include/scheduler_types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup pkg_openwsn * @{ @@ -19,9 +21,6 @@ * @} */ -#ifndef SCHEDULER_TYPES_H -#define SCHEDULER_TYPES_H - #include "scheduler.h" #ifdef __cplusplus @@ -38,5 +37,3 @@ typedef struct { #ifdef __cplusplus } #endif - -#endif /* SCHEDULER_TYPES_H */ diff --git a/tests/pkg/openwsn_sock_udp/stack.h b/tests/pkg/openwsn_sock_udp/stack.h index 89ac443a7e..4d35f26330 100644 --- a/tests/pkg/openwsn_sock_udp/stack.h +++ b/tests/pkg/openwsn_sock_udp/stack.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @brief @@ -17,8 +19,6 @@ * @author Martine Lenders * @} */ -#ifndef STACK_H -#define STACK_H #include #include @@ -84,5 +84,3 @@ bool _check_packet(const ipv6_addr_t *src, const ipv6_addr_t *dst, #ifdef __cplusplus } #endif - -#endif /* STACK_H */ diff --git a/tests/pkg/tinydtls_sock_async/tinydtls_common.h b/tests/pkg/tinydtls_sock_async/tinydtls_common.h index 797c07d707..046bedd67d 100644 --- a/tests/pkg/tinydtls_sock_async/tinydtls_common.h +++ b/tests/pkg/tinydtls_sock_async/tinydtls_common.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TINYDTLS_COMMON_H -#define TINYDTLS_COMMON_H #include "event.h" @@ -36,4 +36,3 @@ typedef struct { #ifdef __cplusplus } #endif -#endif /* TINYDTLS_COMMON_H */ diff --git a/tests/pkg/tinydtls_sock_async/tinydtls_keys.h b/tests/pkg/tinydtls_sock_async/tinydtls_keys.h index ca4b5eca11..5843b3ce6f 100644 --- a/tests/pkg/tinydtls_sock_async/tinydtls_keys.h +++ b/tests/pkg/tinydtls_sock_async/tinydtls_keys.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup examples * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef TINYDTLS_KEYS_H -#define TINYDTLS_KEYS_H - #ifdef __cplusplus extern "C" { #endif @@ -62,5 +61,3 @@ static const unsigned char ecdsa_pub_key_y[] = { #ifdef __cplusplus } #endif - -#endif /* TINYDTLS_KEYS_H */ diff --git a/tests/pkg/tinyvcdiff/fakemtd.h b/tests/pkg/tinyvcdiff/fakemtd.h index 33f314a73a..8ee24134f8 100644 --- a/tests/pkg/tinyvcdiff/fakemtd.h +++ b/tests/pkg/tinyvcdiff/fakemtd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @{ * @@ -15,8 +17,6 @@ * * @author Juergen Fitschen */ -#ifndef FAKEMTD_H -#define FAKEMTD_H #include "mtd.h" @@ -72,5 +72,4 @@ typedef struct { } #endif -#endif /* FAKEMTD_H */ /** @} */ diff --git a/tests/pkg/ucglib/logo.h b/tests/pkg/ucglib/logo.h index 6441e6b8fd..d8ebf51400 100644 --- a/tests/pkg/ucglib/logo.h +++ b/tests/pkg/ucglib/logo.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -18,9 +20,6 @@ * @} */ -#ifndef LOGO_H -#define LOGO_H - #ifdef __cplusplus extern "C" { #endif @@ -1186,5 +1185,3 @@ static const uint8_t logo[] = { #ifdef __cplusplus } #endif - -#endif /* LOGO_H */ diff --git a/tests/riot_logo.h b/tests/riot_logo.h index 85f2a37de5..2054abcaed 100644 --- a/tests/riot_logo.h +++ b/tests/riot_logo.h @@ -6,8 +6,7 @@ * more details. */ -#ifndef RIOT_LOGO_H -#define RIOT_LOGO_H +#pragma once #ifdef __cplusplus extern "C" { @@ -1057,5 +1056,3 @@ const uint16_t picture[RIOT_LOGO_HEIGHT][RIOT_LOGO_WIDTH] = { #ifdef __cplusplus } #endif - -#endif /* RIOT_LOGO_H */ diff --git a/tests/sys/congure_abe/congure_impl.h b/tests/sys/congure_abe/congure_impl.h index bb9df42a8c..1cfd013e59 100644 --- a/tests/sys/congure_abe/congure_impl.h +++ b/tests/sys/congure_abe/congure_impl.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @{ * @@ -13,8 +15,6 @@ * * @author Martine Lenders */ -#ifndef CONGURE_IMPL_H -#define CONGURE_IMPL_H #include "congure/abe.h" @@ -32,5 +32,4 @@ void congure_abe_test_set_same_wnd_adv_res(bool value); } #endif -#endif /* CONGURE_IMPL_H */ /** @} */ diff --git a/tests/sys/congure_quic/congure_impl.h b/tests/sys/congure_quic/congure_impl.h index 3d1a344ba2..5243d8a9e6 100644 --- a/tests/sys/congure_quic/congure_impl.h +++ b/tests/sys/congure_quic/congure_impl.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @{ * @@ -13,8 +15,6 @@ * * @author Martine Lenders */ -#ifndef CONGURE_IMPL_H -#define CONGURE_IMPL_H #include "congure/quic.h" @@ -32,5 +32,4 @@ void *congure_quic_test_get_event_cb_arg(void); } #endif -#endif /* CONGURE_IMPL_H */ /** @} */ diff --git a/tests/sys/congure_reno/congure_impl.h b/tests/sys/congure_reno/congure_impl.h index c500164443..b030493a01 100644 --- a/tests/sys/congure_reno/congure_impl.h +++ b/tests/sys/congure_reno/congure_impl.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @{ * @@ -13,8 +15,6 @@ * * @author Martine Lenders */ -#ifndef CONGURE_IMPL_H -#define CONGURE_IMPL_H #include "congure/reno.h" @@ -32,5 +32,4 @@ void congure_reno_test_set_same_wnd_adv_res(bool value); } #endif -#endif /* CONGURE_IMPL_H */ /** @} */ diff --git a/tests/sys/congure_test/congure_impl.h b/tests/sys/congure_test/congure_impl.h index 9d8e190e51..a4944ba389 100644 --- a/tests/sys/congure_test/congure_impl.h +++ b/tests/sys/congure_test/congure_impl.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @{ * @@ -13,8 +15,6 @@ * * @author Martine Lenders */ -#ifndef CONGURE_IMPL_H -#define CONGURE_IMPL_H #include "congure/mock.h" @@ -30,5 +30,4 @@ int congure_test_snd_setup(congure_test_snd_t *c, unsigned id); } #endif -#endif /* CONGURE_IMPL_H */ /** @} */ diff --git a/tests/sys/cpp_ctors/tests-cpp_ctors.h b/tests/sys/cpp_ctors/tests-cpp_ctors.h index c095f50a0d..41cd5c4c99 100644 --- a/tests/sys/cpp_ctors/tests-cpp_ctors.h +++ b/tests/sys/cpp_ctors/tests-cpp_ctors.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Joakim Nohlgård */ -#ifndef TESTS_CPP_CTORS_H -#define TESTS_CPP_CTORS_H #ifdef __cplusplus extern "C" { @@ -45,5 +45,4 @@ namespace RIOTTestCPP { } #endif -#endif /* TESTS_CPP_CTORS_H */ /** @} */ diff --git a/tests/sys/crypto/tests-crypto.h b/tests/sys/crypto/tests-crypto.h index eddf2d73ba..79e2dd93f4 100644 --- a/tests/sys/crypto/tests-crypto.h +++ b/tests/sys/crypto/tests-crypto.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -16,8 +18,6 @@ * * @author Philipp Rosenkranz */ -#ifndef TESTS_CRYPTO_H -#define TESTS_CRYPTO_H #include #include @@ -68,5 +68,4 @@ Test* tests_crypto_modes_ctr_tests(void); } #endif -#endif /* TESTS_CRYPTO_H */ /** @} */ diff --git a/tests/sys/crypto_aes_ccm/tests-crypto.h b/tests/sys/crypto_aes_ccm/tests-crypto.h index ef65c1ca3e..78306ca1cb 100644 --- a/tests/sys/crypto_aes_ccm/tests-crypto.h +++ b/tests/sys/crypto_aes_ccm/tests-crypto.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Nils Ollrogge */ -#ifndef TESTS_CRYPTO_H -#define TESTS_CRYPTO_H #include #include @@ -46,5 +46,4 @@ Test *tests_crypto_modes_ccm_tests_256(void); } #endif -#endif /* TESTS_CRYPTO_H */ /** @} */ diff --git a/tests/sys/psa_crypto_cbor_encoder/tests_psa_cbor_enc_dec.h b/tests/sys/psa_crypto_cbor_encoder/tests_psa_cbor_enc_dec.h index 085df037a5..3d846a2396 100644 --- a/tests/sys/psa_crypto_cbor_encoder/tests_psa_cbor_enc_dec.h +++ b/tests/sys/psa_crypto_cbor_encoder/tests_psa_cbor_enc_dec.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup * @defgroup @@ -18,9 +20,6 @@ * */ -#ifndef TESTS_PSA_CBOR_ENC_DEC_H -#define TESTS_PSA_CBOR_ENC_DEC_H - #include #include "embUnit.h" @@ -67,5 +66,4 @@ Test* tests_psa_crypto_enc_dec_protected_key(void); } #endif -#endif /* TESTS_PSA_CBOR_ENC_DEC_H */ /** @} */ diff --git a/tests/sys/psa_crypto_persistent_storage/tests_psa_persistent_storage.h b/tests/sys/psa_crypto_persistent_storage/tests_psa_persistent_storage.h index f37779145e..75261914d0 100644 --- a/tests/sys/psa_crypto_persistent_storage/tests_psa_persistent_storage.h +++ b/tests/sys/psa_crypto_persistent_storage/tests_psa_persistent_storage.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup * @defgroup @@ -18,9 +20,6 @@ * */ -#ifndef TESTS_PSA_PERSISTENT_STORAGE_H -#define TESTS_PSA_PERSISTENT_STORAGE_H - #include #include "embUnit.h" @@ -57,5 +56,4 @@ Test* tests_psa_fail_overwrite_existing_key(void); } #endif -#endif /* TESTS_PSA_PERSISTENT_STORAGE_H */ /** @} */ diff --git a/tests/sys/rng/test.h b/tests/sys/rng/test.h index 2ebab7eaf5..6322e40b54 100644 --- a/tests/sys/rng/test.h +++ b/tests/sys/rng/test.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef TEST_H -#define TEST_H +#pragma once #include @@ -132,5 +131,4 @@ void test_speed_range(uint32_t duration, uint32_t a, uint32_t b); } #endif -#endif /* TEST_H */ /** @} */ diff --git a/tests/sys/suit_manifest/include/riotboot/flashwrite.h b/tests/sys/suit_manifest/include/riotboot/flashwrite.h index 018d469807..4058631e30 100644 --- a/tests/sys/suit_manifest/include/riotboot/flashwrite.h +++ b/tests/sys/suit_manifest/include/riotboot/flashwrite.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef RIOTBOOT_FLASHWRITE_H -#define RIOTBOOT_FLASHWRITE_H +#pragma once #ifdef __cplusplus extern "C" { @@ -47,5 +46,3 @@ static inline riotboot_flashwrite_verify_sha256(digest, #ifdef __cplusplus } #endif - -#endif /* RIOTBOOT_FLASHWRITE_H */ diff --git a/tests/unittests/common/unittests-constants.h b/tests/unittests/common/unittests-constants.h index 5d5a730624..107130fd8a 100644 --- a/tests/unittests/common/unittests-constants.h +++ b/tests/unittests/common/unittests-constants.h @@ -6,8 +6,8 @@ * directory for more details. */ -#ifndef UNITTESTS_CONSTANTS_H -#define UNITTESTS_CONSTANTS_H +#pragma once + #include #include @@ -68,5 +68,4 @@ extern "C" { } #endif -#endif /* UNITTESTS_CONSTANTS_H */ /** @} */ diff --git a/tests/unittests/map.h b/tests/unittests/map.h index c9eaa167d0..1de257c1ef 100644 --- a/tests/unittests/map.h +++ b/tests/unittests/map.h @@ -26,8 +26,7 @@ * prior written authorization from the authors. */ -#ifndef MAP_H -#define MAP_H +#pragma once #ifdef __cplusplus extern "C" { @@ -55,5 +54,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif /* MAP_H */ diff --git a/tests/unittests/tests-analog_util/tests-analog_util.h b/tests/unittests/tests-analog_util/tests-analog_util.h index 273ac33bbf..493bdf58ea 100644 --- a/tests/unittests/tests-analog_util/tests-analog_util.h +++ b/tests/unittests/tests-analog_util/tests-analog_util.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,7 @@ * * @author Joakim Nohlgård */ -#ifndef TESTS_ANALOG_UTIL_H -#define TESTS_ANALOG_UTIL_H + #include "embUnit/embUnit.h" #ifdef __cplusplus @@ -32,5 +33,4 @@ void tests_adc_util(void); } #endif -#endif /* TESTS_ANALOG_UTIL_H */ /** @} */ diff --git a/tests/unittests/tests-base64/tests-base64.h b/tests/unittests/tests-base64/tests-base64.h index d3f21d19c1..026ed571e9 100644 --- a/tests/unittests/tests-base64/tests-base64.h +++ b/tests/unittests/tests-base64/tests-base64.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,7 @@ * * @author Martin Landsmann */ -#ifndef TESTS_BASE64_H -#define TESTS_BASE64_H + #include "embUnit/embUnit.h" #ifdef __cplusplus @@ -39,5 +40,4 @@ Test *tests_base64_tests(void); } #endif -#endif /* TESTS_BASE64_H */ /** @} */ diff --git a/tests/unittests/tests-bcd/tests-bcd.h b/tests/unittests/tests-bcd/tests-bcd.h index b002f2dfc0..88bdf11e7a 100644 --- a/tests/unittests/tests-bcd/tests-bcd.h +++ b/tests/unittests/tests-bcd/tests-bcd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_BCD_H -#define TESTS_BCD_H #include "embUnit/embUnit.h" @@ -40,5 +40,4 @@ Test *tests_bcd_tests(void); } #endif -#endif /* TESTS_BCD_H */ /** @} */ diff --git a/tests/unittests/tests-bhp_event/tests-bhp_event.h b/tests/unittests/tests-bhp_event/tests-bhp_event.h index fb4faee70e..dd88458f46 100644 --- a/tests/unittests/tests-bhp_event/tests-bhp_event.h +++ b/tests/unittests/tests-bhp_event/tests-bhp_event.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author José I. Álamos */ -#ifndef TESTS_BHP_EVENT_H -#define TESTS_BHP_EVENT_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_bhp_event(void); } #endif -#endif /* TESTS_BHP_EVENT_H */ /** @} */ diff --git a/tests/unittests/tests-bhp_msg/tests-bhp_msg.h b/tests/unittests/tests-bhp_msg/tests-bhp_msg.h index 481c24e36d..42561e9748 100644 --- a/tests/unittests/tests-bhp_msg/tests-bhp_msg.h +++ b/tests/unittests/tests-bhp_msg/tests-bhp_msg.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author José I. Álamos */ -#ifndef TESTS_BHP_MSG_H -#define TESTS_BHP_MSG_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_bhp_msg(void); } #endif -#endif /* TESTS_BHP_MSG_H */ /** @} */ diff --git a/tests/unittests/tests-bloom/tests-bloom-sets.h b/tests/unittests/tests-bloom/tests-bloom-sets.h index dd5d7b3b37..907365b28f 100644 --- a/tests/unittests/tests-bloom/tests-bloom-sets.h +++ b/tests/unittests/tests-bloom/tests-bloom-sets.h @@ -6,8 +6,7 @@ * directory for more details. */ -#ifndef TESTS_BLOOM_SETS_H -#define TESTS_BLOOM_SETS_H +#pragma once #ifdef __cplusplus extern "C" { @@ -1031,5 +1030,3 @@ const char* const B[10] = {"interbedded", #ifdef __cplusplus } #endif - -#endif /* TESTS_BLOOM_SETS_H */ diff --git a/tests/unittests/tests-bloom/tests-bloom.h b/tests/unittests/tests-bloom/tests-bloom.h index 9de0f3eb37..a7f62dd26b 100644 --- a/tests/unittests/tests-bloom/tests-bloom.h +++ b/tests/unittests/tests-bloom/tests-bloom.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Philipp Rosenkranz */ -#ifndef TESTS_BLOOM_H -#define TESTS_BLOOM_H #include "embUnit.h" @@ -40,5 +40,4 @@ Test *tests_bloom_tests(void); } #endif -#endif /* TESTS_BLOOM_H */ /** @} */ diff --git a/tests/unittests/tests-bluetil/tests-bluetil.h b/tests/unittests/tests-bluetil/tests-bluetil.h index e8cd57c339..0215036d4f 100644 --- a/tests/unittests/tests-bluetil/tests-bluetil.h +++ b/tests/unittests/tests-bluetil/tests-bluetil.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -16,8 +18,6 @@ * @author Hauke Petersen */ -#ifndef TESTS_BLUETIL_H -#define TESTS_BLUETIL_H #include "embUnit/embUnit.h" #ifdef __cplusplus @@ -33,5 +33,4 @@ void tests_bluetil(void); } #endif -#endif /* TESTS_BLUETIL_H */ /** @} */ diff --git a/tests/unittests/tests-checksum/tests-checksum.h b/tests/unittests/tests-checksum/tests-checksum.h index 848f8974cd..b0def3f9e6 100644 --- a/tests/unittests/tests-checksum/tests-checksum.h +++ b/tests/unittests/tests-checksum/tests-checksum.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Ludwig Knüpfer */ -#ifndef TESTS_CHECKSUM_H -#define TESTS_CHECKSUM_H #include "embUnit.h" @@ -110,5 +110,4 @@ Test *tests_checksum_ucrc16_tests(void); } #endif -#endif /* TESTS_CHECKSUM_H */ /** @} */ diff --git a/tests/unittests/tests-clif/tests-clif.h b/tests/unittests/tests-clif/tests-clif.h index 55dc45ee79..b9f4dc0c6b 100644 --- a/tests/unittests/tests-clif/tests-clif.h +++ b/tests/unittests/tests-clif/tests-clif.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,7 @@ * * @author Leandro Lanzieri */ -#ifndef TESTS_CLIF_H -#define TESTS_CLIF_H + #include "embUnit/embUnit.h" #ifdef __cplusplus @@ -39,5 +40,4 @@ Test *tests_clif_tests(void); } #endif -#endif /* TESTS_CLIF_H */ /** @} */ diff --git a/tests/unittests/tests-coding/tests-coding.h b/tests/unittests/tests-coding/tests-coding.h index 6ac8ffd4bb..6598e19604 100644 --- a/tests/unittests/tests-coding/tests-coding.h +++ b/tests/unittests/tests-coding/tests-coding.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef TESTS_CODING_H -#define TESTS_CODING_H #include "embUnit.h" @@ -40,5 +40,4 @@ Test *tests_coding_xor_tests(void); } #endif -#endif /* TESTS_CODING_H */ /** @} */ diff --git a/tests/unittests/tests-color/tests-color.h b/tests/unittests/tests-color/tests-color.h index 64c6e760c6..abb565e1c4 100644 --- a/tests/unittests/tests-color/tests-color.h +++ b/tests/unittests/tests-color/tests-color.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Cenk Gündoğan */ -#ifndef TESTS_COLOR_H -#define TESTS_COLOR_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_color(void); } #endif -#endif /* TESTS_COLOR_H */ /** @} */ diff --git a/tests/unittests/tests-core/tests-core-xfa.h b/tests/unittests/tests-core/tests-core-xfa.h index 9efd5267f6..8cd53ab386 100644 --- a/tests/unittests/tests-core/tests-core-xfa.h +++ b/tests/unittests/tests-core/tests-core-xfa.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Joakim Nohlgård */ -#ifndef TESTS_CORE_XFA_H -#define TESTS_CORE_XFA_H #ifdef __cplusplus extern "C" { @@ -31,6 +31,4 @@ typedef struct { } #endif -#endif /* TESTS_CORE_XFA_H */ - /** @} */ diff --git a/tests/unittests/tests-core/tests-core.h b/tests/unittests/tests-core/tests-core.h index 1b4df59f1c..c307b0d736 100644 --- a/tests/unittests/tests-core/tests-core.h +++ b/tests/unittests/tests-core/tests-core.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_CORE_H -#define TESTS_CORE_H #include "embUnit.h" @@ -110,5 +110,4 @@ Test *tests_core_macros_tests(void); } #endif -#endif /* TESTS_CORE_H */ /** @} */ diff --git a/tests/unittests/tests-credman/credentials.h b/tests/unittests/tests-credman/credentials.h index 6ea87090ea..8db0c376ac 100644 --- a/tests/unittests/tests-credman/credentials.h +++ b/tests/unittests/tests-credman/credentials.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup tests * @{ @@ -19,9 +21,6 @@ * @} */ -#ifndef CREDENTIALS_H -#define CREDENTIALS_H - #include "net/credman.h" #ifdef __cplusplus @@ -52,5 +51,3 @@ static const unsigned char ecdsa_pub_key_y[] = { #ifdef __cplusplus } #endif - -#endif /* CREDENTIALS_H */ diff --git a/tests/unittests/tests-credman/tests-credman.h b/tests/unittests/tests-credman/tests-credman.h index b47755a43f..adab36830d 100644 --- a/tests/unittests/tests-credman/tests-credman.h +++ b/tests/unittests/tests-credman/tests-credman.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -16,8 +18,6 @@ * @author Aiman Ismail */ -#ifndef TESTS_CREDMAN_H -#define TESTS_CREDMAN_H #include "embUnit/embUnit.h" #ifdef __cplusplus @@ -40,5 +40,4 @@ Test *tests_credman_tests(void); } #endif -#endif /* TESTS_CREDMAN_H */ /** @} */ diff --git a/tests/unittests/tests-div/tests-div.h b/tests/unittests/tests-div/tests-div.h index c9c054dd47..6e5fd8074e 100644 --- a/tests/unittests/tests-div/tests-div.h +++ b/tests/unittests/tests-div/tests-div.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,7 @@ * * @author Kaspar Schleiser */ -#ifndef TESTS_DIV_H -#define TESTS_DIV_H + #include "embUnit/embUnit.h" #ifdef __cplusplus @@ -39,5 +40,4 @@ Test *tests_div_tests(void); } #endif -#endif /* TESTS_DIV_H */ /** @} */ diff --git a/tests/unittests/tests-dns_cache/tests-dns_cache.h b/tests/unittests/tests-dns_cache/tests-dns_cache.h index a8040f40dc..f4aec729da 100644 --- a/tests/unittests/tests-dns_cache/tests-dns_cache.h +++ b/tests/unittests/tests-dns_cache/tests-dns_cache.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef TESTS_DNS_CACHE_H -#define TESTS_DNS_CACHE_H #include "embUnit.h" @@ -40,5 +40,4 @@ Test *tests_dns_cache_tests(void); } #endif -#endif /* TESTS_DNS_CACHE_H */ /** @} */ diff --git a/tests/unittests/tests-dns_msg/tests-dns_msg.h b/tests/unittests/tests-dns_msg/tests-dns_msg.h index 901518c209..af1ab8cc70 100644 --- a/tests/unittests/tests-dns_msg/tests-dns_msg.h +++ b/tests/unittests/tests-dns_msg/tests-dns_msg.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef TESTS_DNS_MSG_H -#define TESTS_DNS_MSG_H #include "embUnit.h" @@ -40,5 +40,4 @@ Test *tests_dns_msg_tests(void); } #endif -#endif /* TESTS_DNS_MSG_H */ /** @} */ diff --git a/tests/unittests/tests-fib/tests-fib.h b/tests/unittests/tests-fib/tests-fib.h index 4e2bea76a0..d80a6145f6 100644 --- a/tests/unittests/tests-fib/tests-fib.h +++ b/tests/unittests/tests-fib/tests-fib.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,7 @@ * * @author Martin Landsmann */ -#ifndef TESTS_FIB_H -#define TESTS_FIB_H + #include "embUnit/embUnit.h" #ifdef __cplusplus @@ -39,5 +40,4 @@ Test *tests_fib_tests(void); } #endif -#endif /* TESTS_FIB_H */ /** @} */ diff --git a/tests/unittests/tests-fib_sr/tests-fib_sr.h b/tests/unittests/tests-fib_sr/tests-fib_sr.h index 0d3e6d27f1..1c92ceecfd 100644 --- a/tests/unittests/tests-fib_sr/tests-fib_sr.h +++ b/tests/unittests/tests-fib_sr/tests-fib_sr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,7 @@ * * @author Martin Landsmann */ -#ifndef TESTS_FIB_SR_H -#define TESTS_FIB_SR_H + #include "embUnit/embUnit.h" #ifdef __cplusplus @@ -39,5 +40,4 @@ Test *tests_fib_sr_tests(void); } #endif -#endif /* TESTS_FIB_SR_H */ /** @} */ diff --git a/tests/unittests/tests-fmt/tests-fmt.h b/tests/unittests/tests-fmt/tests-fmt.h index f7644b067c..c0ea5a3ead 100644 --- a/tests/unittests/tests-fmt/tests-fmt.h +++ b/tests/unittests/tests-fmt/tests-fmt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Cenk Gündoğan */ -#ifndef TESTS_FMT_H -#define TESTS_FMT_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_fmt(void); } #endif -#endif /* TESTS_FMT_H */ /** @} */ diff --git a/tests/unittests/tests-frac/tests-frac.h b/tests/unittests/tests-frac/tests-frac.h index ea4db48b5f..434f2c1035 100644 --- a/tests/unittests/tests-frac/tests-frac.h +++ b/tests/unittests/tests-frac/tests-frac.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,7 @@ * * @author Joakim Nohlgård */ -#ifndef TESTS_FRAC_H -#define TESTS_FRAC_H + #include "embUnit/embUnit.h" #ifdef __cplusplus @@ -39,5 +40,4 @@ Test *tests_frac_tests(void); } #endif -#endif /* TESTS_FRAC_H */ /** @} */ diff --git a/tests/unittests/tests-gcoap/tests-gcoap.h b/tests/unittests/tests-gcoap/tests-gcoap.h index 3eadaa28b4..2fd47162af 100644 --- a/tests/unittests/tests-gcoap/tests-gcoap.h +++ b/tests/unittests/tests-gcoap/tests-gcoap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Ken Bannister */ -#ifndef TESTS_GCOAP_H -#define TESTS_GCOAP_H #include "embUnit.h" @@ -36,5 +36,4 @@ void tests_gcoap(void); } #endif -#endif /* TESTS_GCOAP_H */ /** @} */ diff --git a/tests/unittests/tests-gnrc_ipv6/tests-gnrc_ipv6.h b/tests/unittests/tests-gnrc_ipv6/tests-gnrc_ipv6.h index 6342556a41..0bea1ae0a7 100644 --- a/tests/unittests/tests-gnrc_ipv6/tests-gnrc_ipv6.h +++ b/tests/unittests/tests-gnrc_ipv6/tests-gnrc_ipv6.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Oliver Hahm */ -#ifndef TESTS_GNRC_IPV6_H -#define TESTS_GNRC_IPV6_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_gnrc_ipv6(void); } #endif -#endif /* TESTS_GNRC_IPV6_H */ /** @} */ diff --git a/tests/unittests/tests-gnrc_ipv6_hdr/tests-gnrc_ipv6_hdr.h b/tests/unittests/tests-gnrc_ipv6_hdr/tests-gnrc_ipv6_hdr.h index b013e11b71..be61908349 100644 --- a/tests/unittests/tests-gnrc_ipv6_hdr/tests-gnrc_ipv6_hdr.h +++ b/tests/unittests/tests-gnrc_ipv6_hdr/tests-gnrc_ipv6_hdr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_GNRC_IPV6_HDR_H -#define TESTS_GNRC_IPV6_HDR_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_gnrc_ipv6_hdr(void); } #endif -#endif /* TESTS_GNRC_IPV6_HDR_H */ /** @} */ diff --git a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib.h b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib.h index 5dc3f65750..b1adf3a10c 100644 --- a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib.h +++ b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_GNRC_IPV6_NIB_H -#define TESTS_GNRC_IPV6_NIB_H #include "embUnit.h" @@ -68,5 +68,4 @@ Test *tests_gnrc_ipv6_nib_pl_tests(void); } #endif -#endif /* TESTS_GNRC_IPV6_NIB_H */ /** @} */ diff --git a/tests/unittests/tests-gnrc_netif_pktq/tests-gnrc_netif_pktq.h b/tests/unittests/tests-gnrc_netif_pktq/tests-gnrc_netif_pktq.h index c7443df293..6b529fe75b 100644 --- a/tests/unittests/tests-gnrc_netif_pktq/tests-gnrc_netif_pktq.h +++ b/tests/unittests/tests-gnrc_netif_pktq/tests-gnrc_netif_pktq.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_GNRC_NETIF_PKTQ_H -#define TESTS_GNRC_NETIF_PKTQ_H #ifdef __cplusplus extern "C" { @@ -31,5 +31,4 @@ void tests_pktqueue(void); } #endif -#endif /* TESTS_GNRC_NETIF_PKTQ_H */ /** @} */ diff --git a/tests/unittests/tests-gnrc_sixlowpan_frag_vrb/tests-gnrc_sixlowpan_frag_vrb.h b/tests/unittests/tests-gnrc_sixlowpan_frag_vrb/tests-gnrc_sixlowpan_frag_vrb.h index 3b845bbde9..ce656cc1ce 100644 --- a/tests/unittests/tests-gnrc_sixlowpan_frag_vrb/tests-gnrc_sixlowpan_frag_vrb.h +++ b/tests/unittests/tests-gnrc_sixlowpan_frag_vrb/tests-gnrc_sixlowpan_frag_vrb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @ingroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_GNRC_SIXLOWPAN_FRAG_VRB_H -#define TESTS_GNRC_SIXLOWPAN_FRAG_VRB_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_gnrc_sixlowpan_frag_vrb(void); } #endif -#endif /* TESTS_GNRC_SIXLOWPAN_FRAG_VRB_H */ /** @} */ diff --git a/tests/unittests/tests-gnrc_udp/tests-gnrc_udp.h b/tests/unittests/tests-gnrc_udp/tests-gnrc_udp.h index ff24c13b5f..d97f3a544d 100644 --- a/tests/unittests/tests-gnrc_udp/tests-gnrc_udp.h +++ b/tests/unittests/tests-gnrc_udp/tests-gnrc_udp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Takuo Yonezawa */ -#ifndef TESTS_GNRC_UDP_H -#define TESTS_GNRC_UDP_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_gnrc_udp(void); } #endif -#endif /* TESTS_GNRC_UDP_H */ /** @} */ diff --git a/tests/unittests/tests-hashes/tests-hashes.h b/tests/unittests/tests-hashes/tests-hashes.h index 4065fe93f7..c12d93a283 100644 --- a/tests/unittests/tests-hashes/tests-hashes.h +++ b/tests/unittests/tests-hashes/tests-hashes.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef TESTS_HASHES_H -#define TESTS_HASHES_H - #include "embUnit.h" #ifdef __cplusplus @@ -118,5 +117,4 @@ Test *tests_hashes_sha3_tests(void); } #endif -#endif /* TESTS_HASHES_H */ /** @} */ diff --git a/tests/unittests/tests-ieee802154/tests-ieee802154.h b/tests/unittests/tests-ieee802154/tests-ieee802154.h index 8e16524aca..e8b1dc27a0 100644 --- a/tests/unittests/tests-ieee802154/tests-ieee802154.h +++ b/tests/unittests/tests-ieee802154/tests-ieee802154.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_IEEE802154_H -#define TESTS_IEEE802154_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_ieee802154(void); } #endif -#endif /* TESTS_IEEE802154_H */ /** @} */ diff --git a/tests/unittests/tests-inet_csum/tests-inet_csum.h b/tests/unittests/tests-inet_csum/tests-inet_csum.h index 31f0a68d46..645139b3d0 100644 --- a/tests/unittests/tests-inet_csum/tests-inet_csum.h +++ b/tests/unittests/tests-inet_csum/tests-inet_csum.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_INET_CSUM_H -#define TESTS_INET_CSUM_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_inet_csum(void); } #endif -#endif /* TESTS_INET_CSUM_H */ /** @} */ diff --git a/tests/unittests/tests-ipv4_addr/tests-ipv4_addr.h b/tests/unittests/tests-ipv4_addr/tests-ipv4_addr.h index 8511dd0398..84071cdfe4 100644 --- a/tests/unittests/tests-ipv4_addr/tests-ipv4_addr.h +++ b/tests/unittests/tests-ipv4_addr/tests-ipv4_addr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_IPV4_ADDR_H -#define TESTS_IPV4_ADDR_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_ipv4_addr(void); } #endif -#endif /* TESTS_IPV4_ADDR_H */ /** @} */ diff --git a/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.h b/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.h index 7b56371d0c..3d5dd9c873 100644 --- a/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.h +++ b/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_IPV6_ADDR_H -#define TESTS_IPV6_ADDR_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_ipv6_addr(void); } #endif -#endif /* TESTS_IPV6_ADDR_H */ /** @} */ diff --git a/tests/unittests/tests-ipv6_hdr/tests-ipv6_hdr.h b/tests/unittests/tests-ipv6_hdr/tests-ipv6_hdr.h index d328424def..542c7b716a 100644 --- a/tests/unittests/tests-ipv6_hdr/tests-ipv6_hdr.h +++ b/tests/unittests/tests-ipv6_hdr/tests-ipv6_hdr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_IPV6_HDR_H -#define TESTS_IPV6_HDR_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_ipv6_hdr(void); } #endif -#endif /* TESTS_IPV6_HDR_H */ /** @} */ diff --git a/tests/unittests/tests-kernel_defines/tests-kernel_defines.h b/tests/unittests/tests-kernel_defines/tests-kernel_defines.h index 41dd2d0cba..35fdcd13ed 100644 --- a/tests/unittests/tests-kernel_defines/tests-kernel_defines.h +++ b/tests/unittests/tests-kernel_defines/tests-kernel_defines.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef TESTS_KERNEL_DEFINES_H -#define TESTS_KERNEL_DEFINES_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_kernel_defines(void); } #endif -#endif /* TESTS_KERNEL_DEFINES_H */ /** @} */ diff --git a/tests/unittests/tests-libc/tests-libc.h b/tests/unittests/tests-libc/tests-libc.h index 619d92dccf..b7df18bf15 100644 --- a/tests/unittests/tests-libc/tests-libc.h +++ b/tests/unittests/tests-libc/tests-libc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef TESTS_LIBC_H -#define TESTS_LIBC_H #include "embUnit.h" @@ -40,5 +40,4 @@ Test *tests_libc_tests(void); } #endif -#endif /* TESTS_LIBC_H */ /** @} */ diff --git a/tests/unittests/tests-luid/tests-luid.h b/tests/unittests/tests-luid/tests-luid.h index 0de07ccc3f..36bc09c646 100644 --- a/tests/unittests/tests-luid/tests-luid.h +++ b/tests/unittests/tests-luid/tests-luid.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef TESTS_LUID_H -#define TESTS_LUID_H #include "embUnit.h" @@ -40,5 +40,4 @@ Test *tests_luid_tests(void); } #endif -#endif /* TESTS_LUID_H */ /** @} */ diff --git a/tests/unittests/tests-matstat/tests-matstat.h b/tests/unittests/tests-matstat/tests-matstat.h index b37904ba24..67a7bcd4c6 100644 --- a/tests/unittests/tests-matstat/tests-matstat.h +++ b/tests/unittests/tests-matstat/tests-matstat.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Joakim Nohlgård */ -#ifndef TESTS_MATSTAT_H -#define TESTS_MATSTAT_H #ifdef __cplusplus extern "C" { @@ -38,5 +38,4 @@ Test *tests_matstat_tests(void); } #endif -#endif /* TESTS_MATSTAT_H */ /** @} */ diff --git a/tests/unittests/tests-mtd/tests-mtd.h b/tests/unittests/tests-mtd/tests-mtd.h index 146f96ea44..7a1f57dc0c 100644 --- a/tests/unittests/tests-mtd/tests-mtd.h +++ b/tests/unittests/tests-mtd/tests-mtd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Vincent Dupont */ -#ifndef TESTS_MTD_H -#define TESTS_MTD_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_mtd(void); } #endif -#endif /* TESTS_MTD_H */ /** @} */ diff --git a/tests/unittests/tests-nanocoap/tests-nanocoap.h b/tests/unittests/tests-nanocoap/tests-nanocoap.h index 61b7af6844..a4a0250ccd 100644 --- a/tests/unittests/tests-nanocoap/tests-nanocoap.h +++ b/tests/unittests/tests-nanocoap/tests-nanocoap.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Ken Bannister */ -#ifndef TESTS_NANOCOAP_H -#define TESTS_NANOCOAP_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_nanocoap(void); } #endif -#endif /* TESTS_NANOCOAP_H */ /** @} */ diff --git a/tests/unittests/tests-nanocoap_cache/tests-nanocoap_cache.h b/tests/unittests/tests-nanocoap_cache/tests-nanocoap_cache.h index 5ca8d58c90..f9b8705cb2 100644 --- a/tests/unittests/tests-nanocoap_cache/tests-nanocoap_cache.h +++ b/tests/unittests/tests-nanocoap_cache/tests-nanocoap_cache.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Cenk Gündoğan */ -#ifndef TESTS_NANOCOAP_CACHE_H -#define TESTS_NANOCOAP_CACHE_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_nanocoap_cache(void); } #endif -#endif /* TESTS_NANOCOAP_CACHE_H */ /** @} */ diff --git a/tests/unittests/tests-netopt/tests-netopt.h b/tests/unittests/tests-netopt/tests-netopt.h index a34cb9de62..82271c9468 100644 --- a/tests/unittests/tests-netopt/tests-netopt.h +++ b/tests/unittests/tests-netopt/tests-netopt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Kaspar Schleiser */ -#ifndef TESTS_NETOPT_H -#define TESTS_NETOPT_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_netopt(void); } #endif -#endif /* TESTS_NETOPT_H */ /** @} */ diff --git a/tests/unittests/tests-netreg/tests-netreg.h b/tests/unittests/tests-netreg/tests-netreg.h index b683b91bd1..117d485cc0 100644 --- a/tests/unittests/tests-netreg/tests-netreg.h +++ b/tests/unittests/tests-netreg/tests-netreg.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_NETREG_H -#define TESTS_NETREG_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_netreg(void); } #endif -#endif /* TESTS_NETREG_H */ /** @} */ diff --git a/tests/unittests/tests-phydat/tests-phydat.h b/tests/unittests/tests-phydat/tests-phydat.h index 6b1682d173..819848131f 100644 --- a/tests/unittests/tests-phydat/tests-phydat.h +++ b/tests/unittests/tests-phydat/tests-phydat.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -18,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef TESTS_PHYDAT_H -#define TESTS_PHYDAT_H - #include "embUnit.h" #ifdef __cplusplus @@ -36,5 +35,4 @@ void tests_phydat(void); } #endif -#endif /* TESTS_PHYDAT_H */ /** @} */ diff --git a/tests/unittests/tests-pkt/tests-pkt.h b/tests/unittests/tests-pkt/tests-pkt.h index 415348da89..82a2fbc0b7 100644 --- a/tests/unittests/tests-pkt/tests-pkt.h +++ b/tests/unittests/tests-pkt/tests-pkt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_PKT_H -#define TESTS_PKT_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_pkt(void); } #endif -#endif /* TESTS_PKT_H */ /** @} */ diff --git a/tests/unittests/tests-pktbuf/tests-pktbuf.h b/tests/unittests/tests-pktbuf/tests-pktbuf.h index 32f9c6be65..afaa87e212 100644 --- a/tests/unittests/tests-pktbuf/tests-pktbuf.h +++ b/tests/unittests/tests-pktbuf/tests-pktbuf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_PKTBUF_H -#define TESTS_PKTBUF_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_pktbuf(void); } #endif -#endif /* TESTS_PKTBUF_H */ /** @} */ diff --git a/tests/unittests/tests-pktqueue/tests-pktqueue.h b/tests/unittests/tests-pktqueue/tests-pktqueue.h index 3aa680ac2d..a94756cc25 100644 --- a/tests/unittests/tests-pktqueue/tests-pktqueue.h +++ b/tests/unittests/tests-pktqueue/tests-pktqueue.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_PKTQUEUE_H -#define TESTS_PKTQUEUE_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_pktqueue(void); } #endif -#endif /* TESTS_PKTQUEUE_H */ /** @} */ diff --git a/tests/unittests/tests-printf_float/tests-printf_float.h b/tests/unittests/tests-printf_float/tests-printf_float.h index 0d1032aab8..2b49daac4d 100644 --- a/tests/unittests/tests-printf_float/tests-printf_float.h +++ b/tests/unittests/tests-printf_float/tests-printf_float.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef TESTS_PRINTF_FLOAT_H -#define TESTS_PRINTF_FLOAT_H - #include "embUnit.h" #ifdef __cplusplus @@ -34,5 +33,4 @@ void tests_printf_float(void); } #endif -#endif /* TESTS_PRINTF_FLOAT_H */ /** @} */ diff --git a/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.h b/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.h index 4c4eb52a5c..6af9fa9f0c 100644 --- a/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.h +++ b/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Shuguo Zhuo */ -#ifndef TESTS_PRIORITY_PKTQUEUE_H -#define TESTS_PRIORITY_PKTQUEUE_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_priority_pktqueue(void); } #endif -#endif /* TESTS_PRIORITY_PKTQUEUE_H */ /** @} */ diff --git a/tests/unittests/tests-rtc/tests-rtc.h b/tests/unittests/tests-rtc/tests-rtc.h index 13a1a8ad36..78be937e66 100644 --- a/tests/unittests/tests-rtc/tests-rtc.h +++ b/tests/unittests/tests-rtc/tests-rtc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef TESTS_RTC_H -#define TESTS_RTC_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_rtc(void); } #endif -#endif /* TESTS_RTC_H */ /** @} */ diff --git a/tests/unittests/tests-rtt_rtc/tests-rtt_rtc.h b/tests/unittests/tests-rtt_rtc/tests-rtt_rtc.h index c5065b24ad..4ed2d8b468 100644 --- a/tests/unittests/tests-rtt_rtc/tests-rtt_rtc.h +++ b/tests/unittests/tests-rtt_rtc/tests-rtt_rtc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Benjamin Valentin */ -#ifndef TESTS_RTT_RTC_H -#define TESTS_RTT_RTC_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_rtt_rtc(void); } #endif -#endif /* TESTS_RTT_RTC_H */ /** @} */ diff --git a/tests/unittests/tests-saul_reg/tests-saul_reg.h b/tests/unittests/tests-saul_reg/tests-saul_reg.h index 41f1beb963..899d7e0a0e 100644 --- a/tests/unittests/tests-saul_reg/tests-saul_reg.h +++ b/tests/unittests/tests-saul_reg/tests-saul_reg.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -16,9 +18,6 @@ * @author Hauke Petersen */ -#ifndef TESTS_SAUL_REG_H -#define TESTS_SAUL_REG_H - #include "embUnit.h" #ifdef __cplusplus @@ -34,5 +33,4 @@ void tests_saul_reg(void); } #endif -#endif /* TESTS_SAUL_REG_H */ /** @} */ diff --git a/tests/unittests/tests-scanf_float/tests-scanf_float.h b/tests/unittests/tests-scanf_float/tests-scanf_float.h index 9945861ef4..51575af5eb 100644 --- a/tests/unittests/tests-scanf_float/tests-scanf_float.h +++ b/tests/unittests/tests-scanf_float/tests-scanf_float.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -16,8 +18,6 @@ * @author Juan Carrano */ -#ifndef TESTS_SCANF_FLOAT_H -#define TESTS_SCANF_FLOAT_H #include "embUnit.h" #ifdef __cplusplus @@ -35,4 +35,4 @@ Test *tests_scanf_float_tests(void); } #endif -#endif /* TESTS_SCANF_FLOAT_H */ +/** @} */ diff --git a/tests/unittests/tests-seq/tests-seq.h b/tests/unittests/tests-seq/tests-seq.h index b8904866f0..410883ac5d 100644 --- a/tests/unittests/tests-seq/tests-seq.h +++ b/tests/unittests/tests-seq/tests-seq.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Cenk Gündoğan */ -#ifndef TESTS_SEQ_H -#define TESTS_SEQ_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_seq(void); } #endif -#endif /* TESTS_SEQ_H */ /** @} */ diff --git a/tests/unittests/tests-sht1x/tests-sht1x.h b/tests/unittests/tests-sht1x/tests-sht1x.h index 0619efc654..987d901de8 100644 --- a/tests/unittests/tests-sht1x/tests-sht1x.h +++ b/tests/unittests/tests-sht1x/tests-sht1x.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Marian Buschsieweke */ -#ifndef TESTS_SHT1X_H -#define TESTS_SHT1X_H #include "embUnit.h" @@ -32,5 +32,4 @@ void tests_sht1x(void); #ifdef __cplusplus } #endif -#endif /* TESTS_SHT1X_H */ /** @} */ diff --git a/tests/unittests/tests-sixlowpan/tests-sixlowpan.h b/tests/unittests/tests-sixlowpan/tests-sixlowpan.h index 700c76db9c..a118e4a720 100644 --- a/tests/unittests/tests-sixlowpan/tests-sixlowpan.h +++ b/tests/unittests/tests-sixlowpan/tests-sixlowpan.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Oliver Hahm */ -#ifndef TESTS_SIXLOWPAN_H -#define TESTS_SIXLOWPAN_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_sixlowpan(void); } #endif -#endif /* TESTS_SIXLOWPAN_H */ /** @} */ diff --git a/tests/unittests/tests-sixlowpan_ctx/tests-sixlowpan_ctx.h b/tests/unittests/tests-sixlowpan_ctx/tests-sixlowpan_ctx.h index 06cd96a4bc..ea2ee78775 100644 --- a/tests/unittests/tests-sixlowpan_ctx/tests-sixlowpan_ctx.h +++ b/tests/unittests/tests-sixlowpan_ctx/tests-sixlowpan_ctx.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_SIXLOWPAN_CTX_H -#define TESTS_SIXLOWPAN_CTX_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_sixlowpan_ctx(void); } #endif -#endif /* TESTS_SIXLOWPAN_CTX_H */ /** @} */ diff --git a/tests/unittests/tests-sixlowpan_sfr/tests-sixlowpan_sfr.h b/tests/unittests/tests-sixlowpan_sfr/tests-sixlowpan_sfr.h index 5edb4e2816..8253cde9ac 100644 --- a/tests/unittests/tests-sixlowpan_sfr/tests-sixlowpan_sfr.h +++ b/tests/unittests/tests-sixlowpan_sfr/tests-sixlowpan_sfr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_SIXLOWPAN_SFR_H -#define TESTS_SIXLOWPAN_SFR_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_sixlowpan_sfr(void); } #endif -#endif /* TESTS_SIXLOWPAN_SFR_H */ /** @} */ diff --git a/tests/unittests/tests-sock_util/tests-sock_util.h b/tests/unittests/tests-sock_util/tests-sock_util.h index 2bdf12ed28..8ca62d9475 100644 --- a/tests/unittests/tests-sock_util/tests-sock_util.h +++ b/tests/unittests/tests-sock_util/tests-sock_util.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * @brief Unittests for the sock_util module * */ -#ifndef TESTS_SOCK_UTIL_H -#define TESTS_SOCK_UTIL_H #include "embUnit/embUnit.h" @@ -33,5 +33,4 @@ void tests_sockutil(void); } #endif -#endif /* TESTS_SOCK_UTIL_H */ /** @} */ diff --git a/tests/unittests/tests-timex/tests-timex.h b/tests/unittests/tests-timex/tests-timex.h index 3d8c0ca192..41f9a34568 100644 --- a/tests/unittests/tests-timex/tests-timex.h +++ b/tests/unittests/tests-timex/tests-timex.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -16,8 +18,6 @@ * @author Philipp Rosenkranz * @author Daniel Jentsch */ -#ifndef TESTS_TIMEX_H -#define TESTS_TIMEX_H #include "embUnit.h" @@ -41,5 +41,4 @@ Test *tests_timex_tests(void); } #endif -#endif /* TESTS_TIMEX_H */ /** @} */ diff --git a/tests/unittests/tests-tsrb/tests-tsrb.h b/tests/unittests/tests-tsrb/tests-tsrb.h index a432ab6d81..75ba989b2e 100644 --- a/tests/unittests/tests-tsrb/tests-tsrb.h +++ b/tests/unittests/tests-tsrb/tests-tsrb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_TSRB_H -#define TESTS_TSRB_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_tsrb(void); } #endif -#endif /* TESTS_TSRB_H */ /** @} */ diff --git a/tests/unittests/tests-uri_parser/tests-uri_parser.h b/tests/unittests/tests-uri_parser/tests-uri_parser.h index 1b22b6f34c..a926c60b0e 100644 --- a/tests/unittests/tests-uri_parser/tests-uri_parser.h +++ b/tests/unittests/tests-uri_parser/tests-uri_parser.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Cenk Gündoğan */ -#ifndef TESTS_URI_PARSER_H -#define TESTS_URI_PARSER_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_uri_parser(void); } #endif -#endif /* TESTS_URI_PARSER_H */ /** @} */ diff --git a/tests/unittests/tests-ut_process/tests-ut_process.h b/tests/unittests/tests-ut_process/tests-ut_process.h index 3274116f58..6774efffee 100644 --- a/tests/unittests/tests-ut_process/tests-ut_process.h +++ b/tests/unittests/tests-ut_process/tests-ut_process.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef TESTS_UT_PROCESS_H -#define TESTS_UT_PROCESS_H #ifdef __cplusplus extern "C" { @@ -31,5 +31,4 @@ void test_uri_parser(void); } #endif -#endif /* TESTS_UT_PROCESS_H */ /** @} */ diff --git a/tests/unittests/tests-uuid/tests-uuid.h b/tests/unittests/tests-uuid/tests-uuid.h index 47bbb4ac92..a39801a792 100644 --- a/tests/unittests/tests-uuid/tests-uuid.h +++ b/tests/unittests/tests-uuid/tests-uuid.h @@ -7,6 +7,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * @brief Unittests for the uuid module * */ -#ifndef TESTS_UUID_H -#define TESTS_UUID_H #include "embUnit/embUnit.h" @@ -33,5 +33,4 @@ void tests_uuid(void); } #endif -#endif /* TESTS_UUID_H */ /** @} */ diff --git a/tests/unittests/tests-vfs/tests-vfs.h b/tests/unittests/tests-vfs/tests-vfs.h index edd6457537..10b87c445d 100644 --- a/tests/unittests/tests-vfs/tests-vfs.h +++ b/tests/unittests/tests-vfs/tests-vfs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Joakim Nohlgård */ -#ifndef TESTS_VFS_H -#define TESTS_VFS_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_vfs(void); } #endif -#endif /* TESTS_VFS_H */ /** @} */ diff --git a/tests/unittests/tests-zptr/tests-zptr.h b/tests/unittests/tests-zptr/tests-zptr.h index 4e429fb0aa..0f85c4c237 100644 --- a/tests/unittests/tests-zptr/tests-zptr.h +++ b/tests/unittests/tests-zptr/tests-zptr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Kaspar Schleiser */ -#ifndef TESTS_ZPTR_H -#define TESTS_ZPTR_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_zptr(void); } #endif -#endif /* TESTS_ZPTR_H */ /** @} */ diff --git a/tests/unittests/tests-ztimer/tests-ztimer.h b/tests/unittests/tests-ztimer/tests-ztimer.h index 6740d319bd..a629ba63fa 100644 --- a/tests/unittests/tests-ztimer/tests-ztimer.h +++ b/tests/unittests/tests-ztimer/tests-ztimer.h @@ -6,6 +6,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -15,8 +17,6 @@ * * @author Joakim Nohlgård */ -#ifndef TESTS_ZTIMER_H -#define TESTS_ZTIMER_H #include "embUnit.h" @@ -33,5 +33,4 @@ void tests_ztimer(void); } #endif -#endif /* TESTS_ZTIMER_H */ /** @} */ diff --git a/tests/unittests/tests-ztimer64/tests-ztimer64.h b/tests/unittests/tests-ztimer64/tests-ztimer64.h index 97a7a86cdd..8d0dc8f35a 100644 --- a/tests/unittests/tests-ztimer64/tests-ztimer64.h +++ b/tests/unittests/tests-ztimer64/tests-ztimer64.h @@ -4,6 +4,8 @@ * directory for more details. */ +#pragma once + /** * @addtogroup unittests * @{ @@ -12,8 +14,6 @@ * @brief Unittests for ztimer64 * */ -#ifndef TESTS_ZTIMER64_H -#define TESTS_ZTIMER64_H #include "embUnit.h" @@ -30,5 +30,4 @@ void tests_ztimer(void); } #endif -#endif /* TESTS_ZTIMER64_H */ /** @} */