mirror of
https://github.com/neovim/neovim.git
synced 2026-04-23 15:55:36 +00:00
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.
18 lines
434 B
C
18 lines
434 B
C
#ifndef NVIM_FILE_SEARCH_H
|
|
#define NVIM_FILE_SEARCH_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "nvim/globals.h"
|
|
#include "nvim/types.h"
|
|
|
|
// Flags for find_file_*() functions.
|
|
#define FINDFILE_FILE 0 // only files
|
|
#define FINDFILE_DIR 1 // only directories
|
|
#define FINDFILE_BOTH 2 // files and directories
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "file_search.h.generated.h"
|
|
#endif
|
|
#endif // NVIM_FILE_SEARCH_H
|