From 09541d514dd18bf86f673d3784d406236fcbdad8 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 27 Nov 2023 09:51:26 +0800 Subject: build(IWYU): replace public-to-public mappings with pragmas (#26237) --- src/nvim/os/fs.h | 2 +- src/nvim/os/os.h | 1 + src/nvim/os/pty_process_unix.h | 1 + src/nvim/os/pty_process_win.h | 1 + src/nvim/os/unix_defs.h | 9 +++++---- src/nvim/os/win_defs.h | 1 + 6 files changed, 10 insertions(+), 5 deletions(-) (limited to 'src/nvim/os') diff --git a/src/nvim/os/fs.h b/src/nvim/os/fs.h index 4fe54215ba..aacb1c2f48 100644 --- a/src/nvim/os/fs.h +++ b/src/nvim/os/fs.h @@ -1,6 +1,6 @@ #pragma once -#include "nvim/os/fs_defs.h" +#include "nvim/os/fs_defs.h" // IWYU pragma: export #include "nvim/types.h" #ifdef INCLUDE_GENERATED_DECLARATIONS diff --git a/src/nvim/os/os.h b/src/nvim/os/os.h index ede9234865..84c4e6668e 100644 --- a/src/nvim/os/os.h +++ b/src/nvim/os/os.h @@ -7,6 +7,7 @@ #include "nvim/cmdexpand_defs.h" #include "nvim/garray_defs.h" #include "nvim/os/fs_defs.h" +#include "nvim/os/os_defs.h" // IWYU pragma: export #include "nvim/os/stdpaths_defs.h" #include "nvim/types.h" diff --git a/src/nvim/os/pty_process_unix.h b/src/nvim/os/pty_process_unix.h index 344e0a3423..92cc582832 100644 --- a/src/nvim/os/pty_process_unix.h +++ b/src/nvim/os/pty_process_unix.h @@ -1,4 +1,5 @@ #pragma once +// IWYU pragma: private, include "nvim/os/pty_process.h" #include #include diff --git a/src/nvim/os/pty_process_win.h b/src/nvim/os/pty_process_win.h index 71190380fd..26cf387e54 100644 --- a/src/nvim/os/pty_process_win.h +++ b/src/nvim/os/pty_process_win.h @@ -1,4 +1,5 @@ #pragma once +// IWYU pragma: private, include "nvim/os/pty_process.h" #include diff --git a/src/nvim/os/unix_defs.h b/src/nvim/os/unix_defs.h index b90e306932..fe5dce5655 100644 --- a/src/nvim/os/unix_defs.h +++ b/src/nvim/os/unix_defs.h @@ -1,10 +1,11 @@ #pragma once +// IWYU pragma: private, include "nvim/os/os_defs.h" -#include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export #if defined(HAVE_TERMIOS_H) -# include +# include // IWYU pragma: export #endif // POSIX.1-2008 says that NAME_MAX should be in here diff --git a/src/nvim/os/win_defs.h b/src/nvim/os/win_defs.h index e1bc1a727b..852059f78b 100644 --- a/src/nvim/os/win_defs.h +++ b/src/nvim/os/win_defs.h @@ -1,4 +1,5 @@ #pragma once +// IWYU pragma: private, include "nvim/os/os_defs.h" #ifndef MSWIN # error Header must be included only when compiling for Windows. -- cgit