mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
refactor(IWYU): fix includes for ugrid.h (#26267)
This commit is contained in:
1
Makefile
1
Makefile
@ -243,7 +243,6 @@ iwyu: build/.ran-cmake
|
|||||||
|src/nvim/textobject.h\
|
|src/nvim/textobject.h\
|
||||||
|src/nvim/tui/input.h\
|
|src/nvim/tui/input.h\
|
||||||
|src/nvim/tui/tui.h\
|
|src/nvim/tui/tui.h\
|
||||||
|src/nvim/ugrid.h\
|
|
||||||
|src/nvim/ui.h\
|
|src/nvim/ui.h\
|
||||||
|src/nvim/ui_client.h\
|
|src/nvim/ui_client.h\
|
||||||
|src/nvim/ui_compositor.h\
|
|src/nvim/ui_compositor.h\
|
||||||
|
@ -998,7 +998,6 @@ def CheckIncludes(filename, lines, error):
|
|||||||
"src/nvim/textobject.h",
|
"src/nvim/textobject.h",
|
||||||
"src/nvim/tui/input.h",
|
"src/nvim/tui/input.h",
|
||||||
"src/nvim/tui/tui.h",
|
"src/nvim/tui/tui.h",
|
||||||
"src/nvim/ugrid.h",
|
|
||||||
"src/nvim/ui.h",
|
"src/nvim/ui.h",
|
||||||
"src/nvim/ui_client.h",
|
"src/nvim/ui_client.h",
|
||||||
"src/nvim/ui_compositor.h",
|
"src/nvim/ui_compositor.h",
|
||||||
|
@ -1,25 +1,17 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "nvim/globals.h"
|
|
||||||
#include "nvim/grid_defs.h"
|
#include "nvim/grid_defs.h"
|
||||||
#include "nvim/ui.h"
|
|
||||||
|
|
||||||
struct ucell;
|
typedef struct ucell {
|
||||||
struct ugrid;
|
|
||||||
|
|
||||||
typedef struct ucell UCell;
|
|
||||||
typedef struct ugrid UGrid;
|
|
||||||
|
|
||||||
struct ucell {
|
|
||||||
schar_T data;
|
schar_T data;
|
||||||
sattr_T attr;
|
sattr_T attr;
|
||||||
};
|
} UCell;
|
||||||
|
|
||||||
struct ugrid {
|
typedef struct ugrid {
|
||||||
int row, col;
|
int row, col;
|
||||||
int width, height;
|
int width, height;
|
||||||
UCell **cells;
|
UCell **cells;
|
||||||
};
|
} UGrid;
|
||||||
|
|
||||||
#define UGRID_FOREACH_CELL(grid, row, startcol, endcol, code) \
|
#define UGRID_FOREACH_CELL(grid, row, startcol, endcol, code) \
|
||||||
do { \
|
do { \
|
||||||
|
Reference in New Issue
Block a user