mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
refactor(IWYU): fix includes for highlight_group.h (#26340)
This commit is contained in:
parent
09e93d7c4d
commit
0bbe8e7fc2
1
Makefile
1
Makefile
@ -174,7 +174,6 @@ iwyu: build/.ran-cmake
|
|||||||
|src/nvim/globals.h\
|
|src/nvim/globals.h\
|
||||||
|src/nvim/grid.h\
|
|src/nvim/grid.h\
|
||||||
|src/nvim/highlight.h\
|
|src/nvim/highlight.h\
|
||||||
|src/nvim/highlight_group.h\
|
|
||||||
|src/nvim/input.h\
|
|src/nvim/input.h\
|
||||||
|src/nvim/keycodes.h\
|
|src/nvim/keycodes.h\
|
||||||
|src/nvim/lua/executor.h\
|
|src/nvim/lua/executor.h\
|
||||||
|
@ -932,7 +932,6 @@ def CheckIncludes(filename, lines, error):
|
|||||||
"src/nvim/globals.h",
|
"src/nvim/globals.h",
|
||||||
"src/nvim/grid.h",
|
"src/nvim/grid.h",
|
||||||
"src/nvim/highlight.h",
|
"src/nvim/highlight.h",
|
||||||
"src/nvim/highlight_group.h",
|
|
||||||
"src/nvim/input.h",
|
"src/nvim/input.h",
|
||||||
"src/nvim/keycodes.h",
|
"src/nvim/keycodes.h",
|
||||||
"src/nvim/lua/executor.h",
|
"src/nvim/lua/executor.h",
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "nvim/eval.h"
|
|
||||||
#include "nvim/eval/typval.h"
|
#include "nvim/eval/typval.h"
|
||||||
#include "nvim/eval/typval_defs.h"
|
#include "nvim/eval/typval_defs.h"
|
||||||
#include "nvim/garray_defs.h"
|
#include "nvim/garray_defs.h"
|
||||||
|
@ -3,14 +3,13 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#define EVENT_HANDLER_MAX_ARGC 10
|
enum { EVENT_HANDLER_MAX_ARGC = 10, };
|
||||||
|
|
||||||
typedef void (*argv_callback)(void **argv);
|
typedef void (*argv_callback)(void **argv);
|
||||||
typedef struct message {
|
typedef struct message {
|
||||||
argv_callback handler;
|
argv_callback handler;
|
||||||
void *argv[EVENT_HANDLER_MAX_ARGC];
|
void *argv[EVENT_HANDLER_MAX_ARGC];
|
||||||
} Event;
|
} Event;
|
||||||
typedef void (*event_scheduler)(Event event, void *data);
|
|
||||||
|
|
||||||
#define VA_EVENT_INIT(event, h, a) \
|
#define VA_EVENT_INIT(event, h, a) \
|
||||||
do { \
|
do { \
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
#pragma once
|
#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/defs.h" // IWYU pragma: keep
|
||||||
#include "nvim/api/private/helpers.h"
|
|
||||||
#include "nvim/cmdexpand_defs.h" // IWYU pragma: keep
|
#include "nvim/cmdexpand_defs.h" // IWYU pragma: keep
|
||||||
#include "nvim/highlight_defs.h"
|
#include "nvim/highlight_defs.h"
|
||||||
#include "nvim/types_defs.h" // IWYU pragma: keep
|
#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 {
|
typedef struct {
|
||||||
char *name;
|
char *name;
|
||||||
|
Loading…
Reference in New Issue
Block a user