From 6a3d6892380b305c7ce667a4c9b44164cccb8f32 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 7 Jun 2024 12:05:43 +0200 Subject: [PATCH] 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. --- sys/include/xtimer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/include/xtimer.h b/sys/include/xtimer.h index 13d5ecc2167c..211dbd446409 100644 --- a/sys/include/xtimer.h +++ b/sys/include/xtimer.h @@ -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)