Skip to content

Commit

Permalink
sys/xtimer: add IWYU pragmas
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
maribu committed Jun 7, 2024
1 parent 7a2b08f commit 6a3d689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/include/xtimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6a3d689

Please sign in to comment.