refactor(IWYU): fix includes for highlight_group.h (#26340)

This commit is contained in:
zeertzjq 2023-12-01 09:38:04 +08:00 committed by GitHub
parent 09e93d7c4d
commit 0bbe8e7fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 8 deletions

View File

@ -174,7 +174,6 @@ iwyu: build/.ran-cmake
|src/nvim/globals.h\
|src/nvim/grid.h\
|src/nvim/highlight.h\
|src/nvim/highlight_group.h\
|src/nvim/input.h\
|src/nvim/keycodes.h\
|src/nvim/lua/executor.h\

View File

@ -932,7 +932,6 @@ def CheckIncludes(filename, lines, error):
"src/nvim/globals.h",
"src/nvim/grid.h",
"src/nvim/highlight.h",
"src/nvim/highlight_group.h",
"src/nvim/input.h",
"src/nvim/keycodes.h",
"src/nvim/lua/executor.h",

View File

@ -5,7 +5,6 @@
#include <stddef.h>
#include <string.h>
#include "nvim/eval.h"
#include "nvim/eval/typval.h"
#include "nvim/eval/typval_defs.h"
#include "nvim/garray_defs.h"

View File

@ -3,14 +3,13 @@
#include <assert.h>
#include <stdarg.h>
#define EVENT_HANDLER_MAX_ARGC 10
enum { EVENT_HANDLER_MAX_ARGC = 10, };
typedef void (*argv_callback)(void **argv);
typedef struct message {
argv_callback handler;
void *argv[EVENT_HANDLER_MAX_ARGC];
} Event;
typedef void (*event_scheduler)(Event event, void *data);
#define VA_EVENT_INIT(event, h, a) \
do { \

View File

@ -1,13 +1,12 @@
#pragma once
#include "nvim/api/keysets_defs.h"
#include "nvim/api/keysets_defs.h" // IWYU pragma: keep
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#include "nvim/api/private/helpers.h"
#include "nvim/cmdexpand_defs.h" // IWYU pragma: keep
#include "nvim/highlight_defs.h"
#include "nvim/types_defs.h" // IWYU pragma: keep
#define MAX_HL_ID 20000 // maximum value for a highlight ID.
enum { MAX_HL_ID = 20000, }; ///< maximum value for a highlight ID.
typedef struct {
char *name;