1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/xtimer: add IWYU pragmas

This include what you use (IWYU) pragmas so that clang based linters
(such as clangd) treat the use of `xtimer_...()` functions as a use
of the `xtimer.h` header, even if the implementation of those functions
come from a compatibility wrapper.
This commit is contained in:
Marian Buschsieweke 2024-06-07 12:05:43 +02:00
parent 7a2b08fa8f
commit 6a3d689238
No known key found for this signature in database
GPG Key ID: 77AA882EC78084E6

View File

@ -55,9 +55,9 @@
#include "rmutex.h" #include "rmutex.h"
#if IS_USED(MODULE_ZTIMER64_XTIMER_COMPAT) #if IS_USED(MODULE_ZTIMER64_XTIMER_COMPAT)
#include "ztimer64/xtimer_compat.h" #include "ztimer64/xtimer_compat.h" /* IWYU pragma: export */
#elif IS_USED(MODULE_ZTIMER_XTIMER_COMPAT) #elif IS_USED(MODULE_ZTIMER_XTIMER_COMPAT)
#include "ztimer/xtimer_compat.h" #include "ztimer/xtimer_compat.h" /* IWYU pragma: export */
#else #else
#include "board.h" #include "board.h"
#if !IS_USED(MODULE_XTIMER_ON_ZTIMER) #if !IS_USED(MODULE_XTIMER_ON_ZTIMER)