--- configure.ac (Asterisk 13.6.0) +++ configure.ac (working copy) @@ -220,13 +220,9 @@ -AH_TOP( -#ifndef ASTERISK_AUTOCONFIG_H +AH_TOP([#ifndef ASTERISK_AUTOCONFIG_H #define ASTERISK_AUTOCONFIG_H +/* IWYU pragma: private, include "asterisk.h" */ -#include "asterisk/buildopts.h" +#include "asterisk/buildopts.h"]) -) - -AH_BOTTOM( -#endif -) +AH_BOTTOM([#endif /* ASTERISK_AUTOCONFIG_H */]) --- include/asterisk/compat.h (Asterisk 13.6.0) +++ include/asterisk/compat.h (working copy) @@ -17,6 +17,8 @@ -#include "asterisk/compiler.h" - #ifndef _COMPAT_H #define _COMPAT_H +/* IWYU pragma: private, include "asterisk.h" */ +/* IWYU pragma: begin_exports */ + +#include "asterisk/compiler.h" @@ -232,4 +234,4 @@ #define NAN (0.0/0.0) #endif - +/* IWYU pragma: end_exports */ #endif --- include/asterisk/astmm.h (Asterisk 13.6.0) +++ include/asterisk/astmm.h (working copy) @@ -32,2 +32,3 @@ #define _ASTERISK_ASTMM_H +/* IWYU pragma: private, include "asterisk/utils.h" */