mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 14:56:08 +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:
@@ -1,9 +1,17 @@
|
||||
#ifndef NVIM_DECORATION_H
|
||||
#define NVIM_DECORATION_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "klib/kvec.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/extmark_defs.h"
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/marktree.h"
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
// actual Decoration data is in extmark_defs.h
|
||||
|
||||
|
Reference in New Issue
Block a user