mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
build: allow IWYU to fix includes for all .c files
Allow Include What You Use to remove unnecessary includes and only include what is necessary. This helps with reducing compilation times and makes it easier to visualise which dependencies are actually required. Work on https://github.com/neovim/neovim/issues/549, but doesn't close it since this only works fully for .c files and not headers.
This commit is contained in:
@@ -6,9 +6,14 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include "nvim/api/private/defs.h"
|
||||
#include "nvim/event/multiqueue.h"
|
||||
#include "nvim/globals.h"
|
||||
#include "nvim/highlight_defs.h"
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/memory.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
struct ui_t;
|
||||
|
||||
typedef enum {
|
||||
kUICmdline = 0,
|
||||
@@ -74,11 +79,12 @@ typedef struct ui_event_callback {
|
||||
bool ext_widgets[kUIGlobalCount];
|
||||
} UIEventCallback;
|
||||
|
||||
// uncrustify:off
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "ui.h.generated.h"
|
||||
|
||||
# include "ui_events_call.h.generated.h"
|
||||
#endif
|
||||
// uncrustify:on
|
||||
|
||||
EXTERN MultiQueue *resize_events;
|
||||
#endif // NVIM_UI_H
|
||||
|
Reference in New Issue
Block a user