From 5f03a1eaabfc8de2b3a9c666fcd604763f41e152 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 20 Oct 2023 15:10:33 +0200 Subject: build(lint): remove unnecessary clint.py rules Uncrustify is the source of truth where possible. Remove any redundant checks from clint.py. --- src/nvim/popupmenu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/popupmenu.h') diff --git a/src/nvim/popupmenu.h b/src/nvim/popupmenu.h index 08b791c509..4354330a48 100644 --- a/src/nvim/popupmenu.h +++ b/src/nvim/popupmenu.h @@ -16,7 +16,7 @@ typedef struct { char *pum_info; // extra info } pumitem_T; -EXTERN ScreenGrid pum_grid INIT(= SCREEN_GRID_INIT); +EXTERN ScreenGrid pum_grid INIT( = SCREEN_GRID_INIT); /// state for pum_ext_select_item. EXTERN struct { -- cgit 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/popupmenu.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/popupmenu.h') diff --git a/src/nvim/popupmenu.h b/src/nvim/popupmenu.h index 4354330a48..737e3b2f68 100644 --- a/src/nvim/popupmenu.h +++ b/src/nvim/popupmenu.h @@ -1,5 +1,4 @@ -#ifndef NVIM_POPUPMENU_H -#define NVIM_POPUPMENU_H +#pragma once #include @@ -29,4 +28,3 @@ EXTERN struct { #ifdef INCLUDE_GENERATED_DECLARATIONS # include "popupmenu.h.generated.h" #endif -#endif // NVIM_POPUPMENU_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/popupmenu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/popupmenu.h') diff --git a/src/nvim/popupmenu.h b/src/nvim/popupmenu.h index 737e3b2f68..8f2b665174 100644 --- a/src/nvim/popupmenu.h +++ b/src/nvim/popupmenu.h @@ -2,10 +2,10 @@ #include +#include "nvim/eval/typval_defs.h" // IWYU pragma: keep #include "nvim/grid_defs.h" #include "nvim/macros.h" -#include "nvim/types.h" -#include "nvim/vim.h" +#include "nvim/menu_defs.h" // IWYU pragma: keep /// Used for popup menu items. typedef struct { -- 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/popupmenu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/popupmenu.h') diff --git a/src/nvim/popupmenu.h b/src/nvim/popupmenu.h index 8f2b665174..24a3f8713a 100644 --- a/src/nvim/popupmenu.h +++ b/src/nvim/popupmenu.h @@ -4,7 +4,7 @@ #include "nvim/eval/typval_defs.h" // IWYU pragma: keep #include "nvim/grid_defs.h" -#include "nvim/macros.h" +#include "nvim/macros_defs.h" #include "nvim/menu_defs.h" // IWYU pragma: keep /// Used for popup menu items. -- cgit