aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-27 09:51:26 +0800
committerGitHub <noreply@github.com>2023-11-27 09:51:26 +0800
commit09541d514dd18bf86f673d3784d406236fcbdad8 (patch)
treea719e36a3161d84714cd2f5e6e70f21f5410fb5c /src/nvim/os
parent7e2387f41be7cd8304fe48bfa089f2bea155dd5a (diff)
downloadrneovim-09541d514dd18bf86f673d3784d406236fcbdad8.tar.gz
rneovim-09541d514dd18bf86f673d3784d406236fcbdad8.tar.bz2
rneovim-09541d514dd18bf86f673d3784d406236fcbdad8.zip
build(IWYU): replace public-to-public mappings with pragmas (#26237)
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/fs.h2
-rw-r--r--src/nvim/os/os.h1
-rw-r--r--src/nvim/os/pty_process_unix.h1
-rw-r--r--src/nvim/os/pty_process_win.h1
-rw-r--r--src/nvim/os/unix_defs.h9
-rw-r--r--src/nvim/os/win_defs.h1
6 files changed, 10 insertions, 5 deletions
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 <stdint.h>
#include <sys/ioctl.h>
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 <uv.h>
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 <sys/param.h>
-#include <sys/socket.h>
-#include <unistd.h>
+#include <sys/param.h> // IWYU pragma: export
+#include <sys/socket.h> // IWYU pragma: export
+#include <unistd.h> // IWYU pragma: export
#if defined(HAVE_TERMIOS_H)
-# include <termios.h>
+# include <termios.h> // 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.