diff --git a/drivers/bluetooth/rn42.h b/drivers/bluetooth/rn42.h index 89b716bfcd3..f1cdb05a8e8 100644 --- a/drivers/bluetooth/rn42.h +++ b/drivers/bluetooth/rn42.h @@ -13,6 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +#pragma once #include diff --git a/drivers/painter/ld7032/qp_ld7032_opcodes.h b/drivers/painter/ld7032/qp_ld7032_opcodes.h index ed8b397c678..8fce641565f 100644 --- a/drivers/painter/ld7032/qp_ld7032_opcodes.h +++ b/drivers/painter/ld7032/qp_ld7032_opcodes.h @@ -1,5 +1,6 @@ // Copyright 2023 Dasky (@daskygit) // SPDX-License-Identifier: GPL-2.0-or-later +#pragma once typedef enum { LD7032_SOFTRES = 0x01, diff --git a/keyboards/atreus/keymaps/workman/config.h b/keyboards/atreus/keymaps/workman/config.h index f75e442456b..220356d77cd 100644 --- a/keyboards/atreus/keymaps/workman/config.h +++ b/keyboards/atreus/keymaps/workman/config.h @@ -1,2 +1,6 @@ +// Copyright 2019 Alex Schroeder +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + #define TAPPING_TOGGLE 1 #define ONESHOT_TAP_TOGGLE 1 diff --git a/keyboards/checkerboards/quark_plus/keymaps/2u/config.h b/keyboards/checkerboards/quark_plus/keymaps/2u/config.h index 9ec4fd1a948..b57c20830c2 100644 --- a/keyboards/checkerboards/quark_plus/keymaps/2u/config.h +++ b/keyboards/checkerboards/quark_plus/keymaps/2u/config.h @@ -1 +1,5 @@ +// Copyright 2022 npspears +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + #define TAPPING_TOGGLE 2 diff --git a/keyboards/checkerboards/quark_plus/keymaps/2x225u/config.h b/keyboards/checkerboards/quark_plus/keymaps/2x225u/config.h index 9ec4fd1a948..b57c20830c2 100644 --- a/keyboards/checkerboards/quark_plus/keymaps/2x225u/config.h +++ b/keyboards/checkerboards/quark_plus/keymaps/2x225u/config.h @@ -1 +1,5 @@ +// Copyright 2022 npspears +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + #define TAPPING_TOGGLE 2 diff --git a/keyboards/checkerboards/quark_plus/keymaps/2x3u/config.h b/keyboards/checkerboards/quark_plus/keymaps/2x3u/config.h index 9ec4fd1a948..b57c20830c2 100644 --- a/keyboards/checkerboards/quark_plus/keymaps/2x3u/config.h +++ b/keyboards/checkerboards/quark_plus/keymaps/2x3u/config.h @@ -1 +1,5 @@ +// Copyright 2022 npspears +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + #define TAPPING_TOGGLE 2 diff --git a/keyboards/checkerboards/quark_plus/keymaps/default/config.h b/keyboards/checkerboards/quark_plus/keymaps/default/config.h index 9ec4fd1a948..b57c20830c2 100644 --- a/keyboards/checkerboards/quark_plus/keymaps/default/config.h +++ b/keyboards/checkerboards/quark_plus/keymaps/default/config.h @@ -1 +1,5 @@ +// Copyright 2022 npspears +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + #define TAPPING_TOGGLE 2 diff --git a/keyboards/cipulot/ec_typek/config.h b/keyboards/cipulot/ec_typek/config.h index 9821dcbba66..f39aae08b32 100644 --- a/keyboards/cipulot/ec_typek/config.h +++ b/keyboards/cipulot/ec_typek/config.h @@ -13,6 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +#pragma once #define MATRIX_ROWS 5 #define MATRIX_COLS 15 diff --git a/keyboards/contender/keymaps/default/config.h b/keyboards/contender/keymaps/default/config.h index c68cb99f375..a971306e2e3 100644 --- a/keyboards/contender/keymaps/default/config.h +++ b/keyboards/contender/keymaps/default/config.h @@ -14,6 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once #define RGBLIGHT_LAYERS #define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF diff --git a/keyboards/dz60/keymaps/60_ansi_arrow_fkeys/config.h b/keyboards/dz60/keymaps/60_ansi_arrow_fkeys/config.h index 9560d51a6f9..bf4a2dff6ec 100644 --- a/keyboards/dz60/keymaps/60_ansi_arrow_fkeys/config.h +++ b/keyboards/dz60/keymaps/60_ansi_arrow_fkeys/config.h @@ -1 +1,5 @@ -#define GRAVE_ESC_GUI_OVERRIDE # Always send Escape if GUI is pressed +// Copyright 2018 James Young (@noroadsleft) +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + +#define GRAVE_ESC_GUI_OVERRIDE // Always send Escape if GUI is pressed diff --git a/keyboards/ergodox_ez/keymaps/rgb_layer/config.h b/keyboards/ergodox_ez/keymaps/rgb_layer/config.h index 7623e37e730..d095fb357c2 100644 --- a/keyboards/ergodox_ez/keymaps/rgb_layer/config.h +++ b/keyboards/ergodox_ez/keymaps/rgb_layer/config.h @@ -1,18 +1,13 @@ -#ifndef KEYMAP_CONFIG_H -#define KEYMAP_CONFIG_H - +// Copyright 2018 Christopher Courtney, aka Drashna Jael're (@drashna) +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once #define RGBLIGHT_SLEEP - #undef PERMISSIVE_HOLD - #define NKRO_DEFAULT_ON true #ifndef TAPPING_TOGGLE -#define TAPPING_TOGGLE 1 +# define TAPPING_TOGGLE 1 #endif - -#endif // !USERSPACE_CONFIG_H - diff --git a/keyboards/spaceman/2_milk/keymaps/emoji/config.h b/keyboards/spaceman/2_milk/keymaps/emoji/config.h index 96f5c8aa265..1ca8c364bde 100644 --- a/keyboards/spaceman/2_milk/keymaps/emoji/config.h +++ b/keyboards/spaceman/2_milk/keymaps/emoji/config.h @@ -1,2 +1,6 @@ +// Copyright Catriel Müller +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + #define UNICODE_SELECTED_MODES UNICODE_MODE_LINUX, UNICODE_MODE_MACOS, UNICODE_MODE_WINDOWS, UNICODE_MODE_WINCOMPOSE #define TAPPING_TERM 300 diff --git a/keyboards/takashicompany/heavy_left/config.h b/keyboards/takashicompany/heavy_left/config.h index 55bc23a5927..e39043976f7 100644 --- a/keyboards/takashicompany/heavy_left/config.h +++ b/keyboards/takashicompany/heavy_left/config.h @@ -1,4 +1,5 @@ // Copyright 2023 QMK // SPDX-License-Identifier: GPL-2.0-or-later +#pragma once #define EE_HANDS diff --git a/keyboards/woodkeys/bigseries/1key/keymaps/leddance/config.h b/keyboards/woodkeys/bigseries/1key/keymaps/leddance/config.h index 57398fb996b..83f40decb24 100644 --- a/keyboards/woodkeys/bigseries/1key/keymaps/leddance/config.h +++ b/keyboards/woodkeys/bigseries/1key/keymaps/leddance/config.h @@ -14,10 +14,6 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ - -#ifndef CONFIG_USER_H -#define CONFIG_USER_H +#pragma once #define TAPPING_TERM 400 - -#endif diff --git a/keyboards/yushakobo/quick7/keymaps/tester/config.h b/keyboards/yushakobo/quick7/keymaps/tester/config.h index b9a075bfecb..8564398c53c 100644 --- a/keyboards/yushakobo/quick7/keymaps/tester/config.h +++ b/keyboards/yushakobo/quick7/keymaps/tester/config.h @@ -14,6 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once #undef RGBLIGHT_LIMIT_VAL #define RGBLIGHT_LIMIT_VAL 150 /* The maximum brightness level */ diff --git a/modules/qmk/hello_world/introspection.h b/modules/qmk/hello_world/introspection.h index fd3d7f24a05..b975a71cdfc 100644 --- a/modules/qmk/hello_world/introspection.h +++ b/modules/qmk/hello_world/introspection.h @@ -1,5 +1,7 @@ // Copyright 2025 Nick Brassel (@tzarc) // SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + #include QMK_KEYBOARD_H typedef struct hello_world_introspection_t { diff --git a/platforms/chibios/boards/GENERIC_STM32_F405XG/configs/config.h b/platforms/chibios/boards/GENERIC_STM32_F405XG/configs/config.h index 5333a919a0b..216a7643cab 100644 --- a/platforms/chibios/boards/GENERIC_STM32_F405XG/configs/config.h +++ b/platforms/chibios/boards/GENERIC_STM32_F405XG/configs/config.h @@ -13,6 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +#pragma once /* Address for jumping to bootloader on STM32 chips. */ /* It is chip dependent, the correct number can be looked up by checking against ST's application note AN2606. diff --git a/platforms/chibios/boards/GENERIC_STM32_F407XE/configs/config.h b/platforms/chibios/boards/GENERIC_STM32_F407XE/configs/config.h index 5333a919a0b..216a7643cab 100644 --- a/platforms/chibios/boards/GENERIC_STM32_F407XE/configs/config.h +++ b/platforms/chibios/boards/GENERIC_STM32_F407XE/configs/config.h @@ -13,6 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +#pragma once /* Address for jumping to bootloader on STM32 chips. */ /* It is chip dependent, the correct number can be looked up by checking against ST's application note AN2606. diff --git a/platforms/chibios/boards/GENERIC_STM32_L412XB/configs/config.h b/platforms/chibios/boards/GENERIC_STM32_L412XB/configs/config.h index d67de4cfe2e..22c30be643c 100644 --- a/platforms/chibios/boards/GENERIC_STM32_L412XB/configs/config.h +++ b/platforms/chibios/boards/GENERIC_STM32_L412XB/configs/config.h @@ -13,6 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +#pragma once /* Address for jumping to bootloader on STM32 chips. */ /* It is chip dependent, the correct number can be looked up by checking against ST's application note AN2606. diff --git a/platforms/chibios/boards/GENERIC_STM32_L433XC/configs/config.h b/platforms/chibios/boards/GENERIC_STM32_L433XC/configs/config.h index d67de4cfe2e..22c30be643c 100644 --- a/platforms/chibios/boards/GENERIC_STM32_L433XC/configs/config.h +++ b/platforms/chibios/boards/GENERIC_STM32_L433XC/configs/config.h @@ -13,6 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +#pragma once /* Address for jumping to bootloader on STM32 chips. */ /* It is chip dependent, the correct number can be looked up by checking against ST's application note AN2606. diff --git a/quantum/compiler_support.h b/quantum/compiler_support.h index 5c0c4d28353..66d202fc027 100644 --- a/quantum/compiler_support.h +++ b/quantum/compiler_support.h @@ -1,5 +1,6 @@ // Copyright 2025 QMK Contributors // SPDX-License-Identifier: GPL-2.0-or-later +#pragma once /** * @brief Perfom an assertion at compile time. diff --git a/quantum/debounce/tests/debounce_test_common.h b/quantum/debounce/tests/debounce_test_common.h index ebbe340c053..a62573943eb 100644 --- a/quantum/debounce/tests/debounce_test_common.h +++ b/quantum/debounce/tests/debounce_test_common.h @@ -13,6 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +#pragma once #include "gtest/gtest.h" diff --git a/quantum/leader.h b/quantum/leader.h index fba6b287ba3..ea85695a482 100644 --- a/quantum/leader.h +++ b/quantum/leader.h @@ -1,5 +1,6 @@ // Copyright 2023 QMK // SPDX-License-Identifier: GPL-2.0-or-later +#pragma once #include #include diff --git a/quantum/send_string/send_string.h b/quantum/send_string/send_string.h index 4f91252075d..87bdd96766f 100644 --- a/quantum/send_string/send_string.h +++ b/quantum/send_string/send_string.h @@ -22,6 +22,7 @@ * \brief These functions allow you to create macros by typing out sequences of keystrokes. * \{ */ +#pragma once #include diff --git a/quantum/tri_layer.h b/quantum/tri_layer.h index 3341ebffb28..d4a8bacdc42 100644 --- a/quantum/tri_layer.h +++ b/quantum/tri_layer.h @@ -1,5 +1,6 @@ // Copyright 2023 QMK // SPDX-License-Identifier: GPL-2.0-or-later +#pragma once #include