Add IWYU pragmas to improve its analysis.
Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
-#include "arch-x86-common.h"
+#include "arch-x86-common.h" /* IWYU pragma: export */
#define FIO_ARCH (arch_x86)
#define FIO_ARCH (arch_x86)
-#include "arch-x86-common.h"
+#include "arch-x86-common.h" /* IWYU pragma: export */
#define FIO_ARCH (arch_x86_64)
#define FIO_ARCH (arch_x86_64)
#define ARCH_CPU_CLOCK_WRAPS
#define ARCH_CPU_CLOCK_WRAPS
+/* IWYU pragma: begin_exports */
#if defined(__i386__)
#include "arch-x86.h"
#elif defined(__x86_64__)
#if defined(__i386__)
#include "arch-x86.h"
#elif defined(__x86_64__)
#endif
#include "../lib/ffz.h"
#endif
#include "../lib/ffz.h"
+/* IWYU pragma: end_exports */
#ifndef ARCH_HAVE_INIT
static inline int arch_init(char *envp[])
#ifndef ARCH_HAVE_INIT
static inline int arch_init(char *envp[])
#ifndef FIO_COMPILER_H
#define FIO_COMPILER_H
#ifndef FIO_COMPILER_H
#define FIO_COMPILER_H
+/* IWYU pragma: begin_exports */
#if __GNUC__ >= 4
#include "compiler-gcc4.h"
#elif __GNUC__ == 3
#if __GNUC__ >= 4
#include "compiler-gcc4.h"
#elif __GNUC__ == 3
#else
#error Compiler too old, need gcc at least gcc 3.x
#endif
#else
#error Compiler too old, need gcc at least gcc 3.x
#endif
+/* IWYU pragma: end_exports */
#ifndef __must_check
#define __must_check
#ifndef __must_check
#define __must_check
#define FIO_TIME_H
#include <stdint.h>
#define FIO_TIME_H
#include <stdint.h>
+/* IWYU pragma: begin_exports */
#include <time.h>
#include <sys/time.h>
#include <time.h>
#include <sys/time.h>
+/* IWYU pragma: end_exports */
#include "lib/types.h"
struct thread_data;
#include "lib/types.h"
struct thread_data;
#define true 1
#endif
#else
#define true 1
#endif
#else
+#include <stdbool.h> /* IWYU pragma: export */
#include <unistd.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdlib.h>
-#include "../arch/arch.h"
+#include "../arch/arch.h" /* IWYU pragma: export */
#include "../lib/types.h"
enum {
#include "../lib/types.h"
enum {
+/* IWYU pragma: begin_exports */
#if defined(__ANDROID__)
#include "os-android.h"
#elif defined(__linux__)
#if defined(__ANDROID__)
#include "os-android.h"
#elif defined(__linux__)
#ifndef CONFIG_STRLCAT
#include "../oslib/strlcat.h"
#endif
#ifndef CONFIG_STRLCAT
#include "../oslib/strlcat.h"
#endif
+/* IWYU pragma: end_exports */
#ifdef MSG_DONTWAIT
#define OS_MSG_DONTWAIT MSG_DONTWAIT
#ifdef MSG_DONTWAIT
#define OS_MSG_DONTWAIT MSG_DONTWAIT