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/api/ui.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/api/ui.h') diff --git a/src/nvim/api/ui.h b/src/nvim/api/ui.h index b3fe0fa2bb..0101e5d31b 100644 --- a/src/nvim/api/ui.h +++ b/src/nvim/api/ui.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_UI_H -#define NVIM_API_UI_H +#pragma once #include @@ -11,4 +10,3 @@ # include "api/ui.h.generated.h" # include "ui_events_remote.h.generated.h" #endif -#endif // NVIM_API_UI_H -- cgit From 574d25642fc9ca65b396633aeab6e2d32778b642 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 27 Nov 2023 17:21:58 +0800 Subject: refactor: move Arena and ArenaMem to memory_defs.h (#26240) --- src/nvim/api/ui.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/nvim/api/ui.h') diff --git a/src/nvim/api/ui.h b/src/nvim/api/ui.h index 0101e5d31b..ecfbb2d9f6 100644 --- a/src/nvim/api/ui.h +++ b/src/nvim/api/ui.h @@ -1,8 +1,10 @@ #pragma once -#include +#include // IWYU pragma: keep -#include "nvim/api/private/defs.h" +#include "nvim/api/private/defs.h" // IWYU pragma: keep +#include "nvim/grid_defs.h" // IWYU pragma: keep +#include "nvim/highlight_defs.h" // IWYU pragma: keep #include "nvim/map.h" #include "nvim/ui.h" -- cgit From e38a05369293293b5b510b1b0014fcc2e7cb87f4 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Mon, 27 Nov 2023 18:46:03 +0100 Subject: build(IWYU): export generated headers --- src/nvim/api/ui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/api/ui.h') diff --git a/src/nvim/api/ui.h b/src/nvim/api/ui.h index ecfbb2d9f6..3d9152e0a4 100644 --- a/src/nvim/api/ui.h +++ b/src/nvim/api/ui.h @@ -10,5 +10,5 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/ui.h.generated.h" -# include "ui_events_remote.h.generated.h" +# include "ui_events_remote.h.generated.h" // IWYU pragma: export #endif -- cgit From c9f53d0e40815644bbf7c57a0792f2c793c954aa Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 28 Nov 2023 19:00:14 +0800 Subject: refactor: iwyu (#26269) --- src/nvim/api/ui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/api/ui.h') diff --git a/src/nvim/api/ui.h b/src/nvim/api/ui.h index 3d9152e0a4..051153de83 100644 --- a/src/nvim/api/ui.h +++ b/src/nvim/api/ui.h @@ -3,9 +3,9 @@ #include // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep -#include "nvim/grid_defs.h" // IWYU pragma: keep #include "nvim/highlight_defs.h" // IWYU pragma: keep #include "nvim/map.h" +#include "nvim/types_defs.h" // IWYU pragma: keep #include "nvim/ui.h" #ifdef INCLUDE_GENERATED_DECLARATIONS -- cgit From 79b6ff28ad1204fbb4199b9092f5c578d88cb28e Mon Sep 17 00:00:00 2001 From: dundargoc Date: Tue, 28 Nov 2023 20:31:00 +0100 Subject: refactor: fix headers with IWYU --- src/nvim/api/ui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/api/ui.h') diff --git a/src/nvim/api/ui.h b/src/nvim/api/ui.h index 051153de83..26a91d0dbc 100644 --- a/src/nvim/api/ui.h +++ b/src/nvim/api/ui.h @@ -4,7 +4,7 @@ #include "nvim/api/private/defs.h" // IWYU pragma: keep #include "nvim/highlight_defs.h" // IWYU pragma: keep -#include "nvim/map.h" +#include "nvim/map_defs.h" #include "nvim/types_defs.h" // IWYU pragma: keep #include "nvim/ui.h" -- cgit