From bfd3ff2d143d3f27648cabb87b074513a60d7817 Mon Sep 17 00:00:00 2001 From: Stephan Linz Date: Tue, 31 Oct 2023 10:29:15 +0100 Subject: [PATCH] doc: doxygen: respect macro for nonnull attribute Zephyr upstream now uses a new (private) CPP macro to handle nonnull attribute in internal kernel API. Thus Doxygen have to know about and strip the declarations. Signed-off-by: Stephan Linz --- doc/_doxygen/doxyfile-bridle.in | 1 + doc/_doxygen/doxyfile-zephyr.in | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/_doxygen/doxyfile-bridle.in b/doc/_doxygen/doxyfile-bridle.in index 3ffd57206b..da447eeb45 100644 --- a/doc/_doxygen/doxyfile-bridle.in +++ b/doc/_doxygen/doxyfile-bridle.in @@ -2452,6 +2452,7 @@ PREDEFINED = __DOXYGEN__ \ __deprecated= \ __packed= \ __aligned(x)= \ + __attribute_nonnull(...)= \ "__printf_like(x, y)=" \ __attribute__(x)= \ __syscall= \ diff --git a/doc/_doxygen/doxyfile-zephyr.in b/doc/_doxygen/doxyfile-zephyr.in index 612e7a8141..520bf0349d 100644 --- a/doc/_doxygen/doxyfile-zephyr.in +++ b/doc/_doxygen/doxyfile-zephyr.in @@ -2455,6 +2455,7 @@ PREDEFINED = __DOXYGEN__ \ __deprecated= \ __packed= \ __aligned(x)= \ + __attribute_nonnull(...)= \ "__printf_like(x, y)=" \ __attribute__(x)= \ __syscall= \