From 7f721bada216c803a008c9649b3f7cae655bc5d4 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 12 Apr 2024 08:04:50 -0400 Subject: [PATCH] doc: expand ZTEST macros in doxygen This will allow expansion of various ZTEST macros to display the actual test function rather than the ZTEST macro itself. Inspired by a change in #71402 by @gmarull. Signed-off-by: Anas Nashif --- doc/zephyr.doxyfile.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/zephyr.doxyfile.in b/doc/zephyr.doxyfile.in index 7ba2abe0cc5..268f2337802 100644 --- a/doc/zephyr.doxyfile.in +++ b/doc/zephyr.doxyfile.in @@ -2408,7 +2408,11 @@ PREDEFINED = __DOXYGEN__ \ __syscall= \ __syscall_always_inline= \ __must_check= \ - "ATOMIC_DEFINE(x, y)=atomic_t x[ATOMIC_BITMAP_SIZE(y)]" + "ATOMIC_DEFINE(x, y)=atomic_t x[ATOMIC_BITMAP_SIZE(y)]" \ + "ZTEST(suite, fn)=void fn(void)" \ + "ZTEST_USER(suite, fn)=void fn(void)" \ + "ZTEST_USER_F(suite, fn)=void fn(void)" \ + "ZTEST_F(suite, fn)=void fn(void)" # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this # tag can be used to specify a list of macro names that should be expanded. The