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:
dundargoc
2022-09-11 17:12:44 +02:00
parent 9d2a6cd11e
commit 66360675cf
267 changed files with 3176 additions and 865 deletions

View File

@@ -1,10 +1,10 @@
#ifndef NVIM_FILE_SEARCH_H
#define NVIM_FILE_SEARCH_H
#include <stdlib.h> // for size_t
#include <stdlib.h>
#include "nvim/globals.h" // for CdScope
#include "nvim/types.h" // for char_u
#include "nvim/globals.h"
#include "nvim/types.h"
// Flags for find_file_*() functions.
#define FINDFILE_FILE 0 // only files