Skip to content

Commit 9d01323

Browse files
committed
tests: change header guards to pragma once
1 parent 7e7af30 commit 9d01323

File tree

154 files changed

+309
-521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+309
-521
lines changed

tests/bench/timers/bench_timers_config.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup tests
1113
* @{
@@ -17,8 +19,6 @@
1719
*
1820
* @}
1921
*/
20-
#ifndef BENCH_TIMERS_CONFIG_H
21-
#define BENCH_TIMERS_CONFIG_H
2222

2323
#include <stdint.h>
2424

@@ -250,5 +250,3 @@ extern "C" {
250250
#ifdef __cplusplus
251251
}
252252
#endif
253-
254-
#endif /* BENCH_TIMERS_CONFIG_H */

tests/bench/timers/print_results.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup tests
1113
* @{
@@ -16,9 +18,6 @@
1618
* @author Joakim Nohlgård <[email protected]>
1719
*/
1820

19-
#ifndef PRINT_RESULTS_H
20-
#define PRINT_RESULTS_H
21-
2221
#include "matstat.h"
2322

2423
#ifdef __cplusplus
@@ -59,5 +58,3 @@ void print_results(const result_presentation_t *pres, const matstat_state_t *ref
5958
#ifdef __cplusplus
6059
}
6160
#endif
62-
63-
#endif /* PRINT_RESULTS_H */

tests/bench/timers/spin_random.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @defgroup sys_spin_random Spin_random - random CPU delays
1113
* @ingroup sys
@@ -18,9 +20,6 @@
1820
* @author Joakim Nohlgård <[email protected]>
1921
*/
2022

21-
#ifndef SPIN_RANDOM_H
22-
#define SPIN_RANDOM_H
23-
2423
#include <stdint.h>
2524
#include "periph/timer.h"
2625

@@ -66,5 +65,4 @@ uint32_t spin_random_calibrate(tim_t timer_dev, uint32_t spin_max_target);
6665
}
6766
#endif
6867

69-
#endif /* SPIN_RANDOM_H */
7068
/** @} */

tests/build_system/cpp_exclude/external_modules/module_exclude/module.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup tests
1113
* @{
@@ -18,9 +20,6 @@
1820
* @}
1921
*/
2022

21-
#ifndef MODULE_H
22-
#define MODULE_H
23-
2423
#include <cstdio>
2524

2625
class module_class
@@ -43,4 +42,3 @@ class module_class
4342
};
4443

4544
/** @} */
46-
#endif /* MODULE_H */

tests/build_system/external_board_native/external_boards/native32/include/external_native.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @ingroup boards_external_native
1113
* @{
@@ -16,9 +18,6 @@
1618
* @author Gaëtan Harter <[email protected]>
1719
*/
1820

19-
#ifndef EXTERNAL_NATIVE_H
20-
#define EXTERNAL_NATIVE_H
21-
2221
#ifdef __cplusplus
2322
extern "C" {
2423
#endif
@@ -32,5 +31,4 @@ extern char* external_native_board_description;
3231
}
3332
#endif
3433

35-
#endif /* EXTERNAL_NATIVE_H */
3634
/** @} */

tests/build_system/external_module_dirs/external_modules/external_module/include/external_module.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @defgroup
1113
* @ingroup
@@ -17,8 +19,6 @@
1719
*
1820
* @author Gaëtan Harter <[email protected]>
1921
*/
20-
#ifndef EXTERNAL_MODULE_H
21-
#define EXTERNAL_MODULE_H
2222

2323
#include <stdbool.h>
2424

@@ -47,4 +47,3 @@ void auto_init_external_module(void);
4747
#endif
4848

4949
/** @} */
50-
#endif /* EXTERNAL_MODULE_H */

tests/build_system/kconfig/app.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* General Public License v2.1. See the file LICENSE in the top level
66
* directory for more details.
77
*/
8-
#ifndef APP_H
9-
#define APP_H
8+
9+
#pragma once
1010

1111
#ifdef __cplusplus
1212
extern "C" {
@@ -22,5 +22,3 @@ extern "C" {
2222
#ifdef __cplusplus
2323
}
2424
#endif
25-
26-
#endif /* APP_H */

tests/build_system/kconfig/external_modules/external_module_1/include/external_module_1.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @defgroup
1113
* @ingroup
@@ -20,9 +22,6 @@
2022
* @}
2123
*/
2224

23-
#ifndef EXTERNAL_MODULE_1_H
24-
#define EXTERNAL_MODULE_1_H
25-
2625
#ifdef __cplusplus
2726
extern "C" {
2827
#endif
@@ -36,4 +35,3 @@ extern "C" {
3635
#endif
3736

3837
/** @} */
39-
#endif /* EXTERNAL_MODULE_1_H */

tests/build_system/kconfig/external_modules/external_module_2/include/external_module_2.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @defgroup
1113
* @ingroup
@@ -20,9 +22,6 @@
2022
* @}
2123
*/
2224

23-
#ifndef EXTERNAL_MODULE_2_H
24-
#define EXTERNAL_MODULE_2_H
25-
2625
#ifdef __cplusplus
2726
extern "C" {
2827
#endif
@@ -36,4 +35,3 @@ extern "C" {
3635
#endif
3736

3837
/** @} */
39-
#endif /* EXTERNAL_MODULE_2_H */

tests/build_system/kconfig/external_pkgs/external_pkg_1/include/external_pkg_1.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* directory for more details.
77
*/
88

9+
#pragma once
10+
911
/**
1012
* @defgroup
1113
* @ingroup
@@ -21,9 +23,6 @@
2123
* @}
2224
*/
2325

24-
#ifndef EXTERNAL_PKG_1_H
25-
#define EXTERNAL_PKG_1_H
26-
2726
#ifdef __cplusplus
2827
extern "C" {
2928
#endif
@@ -37,4 +36,3 @@ extern "C" {
3736
#endif
3837

3938
/** @} */
40-
#endif /* EXTERNAL_PKG_1_H */

0 commit comments

Comments
 (0)