refactor(IWYU): fix includes for ugrid.h (#26267)

This commit is contained in:
zeertzjq
2023-11-28 17:01:27 +08:00
committed by GitHub
parent 570367ac83
commit 71e954ad30
3 changed files with 4 additions and 14 deletions

View File

@ -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\

View File

@ -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",

View File

@ -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 { \