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:
parent
7a2b08fa8f
commit
6a3d689238
@ -55,9 +55,9 @@
|
||||
#include "rmutex.h"
|
||||
|
||||
#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)
|
||||
#include "ztimer/xtimer_compat.h"
|
||||
#include "ztimer/xtimer_compat.h" /* IWYU pragma: export */
|
||||
#else
|
||||
#include "board.h"
|
||||
#if !IS_USED(MODULE_XTIMER_ON_ZTIMER)
|
||||
|
Loading…
Reference in New Issue
Block a user