From 4f8941c1a5f1ef6caa410feeb52e343db22763ce Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 10 Nov 2023 12:23:42 +0100 Subject: refactor: replace manual header guards with #pragma once It is less error-prone than manually defining header guards. Pretty much all compilers support it even if it's not part of the C standard. --- src/nvim/os/pty_process_unix.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/os/pty_process_unix.h') diff --git a/src/nvim/os/pty_process_unix.h b/src/nvim/os/pty_process_unix.h index 0cc68cf3e9..344e0a3423 100644 --- a/src/nvim/os/pty_process_unix.h +++ b/src/nvim/os/pty_process_unix.h @@ -1,5 +1,4 @@ -#ifndef NVIM_OS_PTY_PROCESS_UNIX_H -#define NVIM_OS_PTY_PROCESS_UNIX_H +#pragma once #include #include @@ -27,5 +26,3 @@ static inline PtyProcess pty_process_init(Loop *loop, void *data) #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/pty_process_unix.h.generated.h" #endif - -#endif // NVIM_OS_PTY_PROCESS_UNIX_H -- cgit 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/pty_process_unix.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/os/pty_process_unix.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 -- cgit