mirror of
https://github.com/neovim/neovim.git
synced 2025-10-19 00:01:54 +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.
28 lines
799 B
C
28 lines
799 B
C
#ifndef NVIM_REGEXP_H
|
|
#define NVIM_REGEXP_H
|
|
|
|
#include "nvim/buffer_defs.h"
|
|
#include "nvim/regexp_defs.h"
|
|
#include "nvim/types.h"
|
|
|
|
// Second argument for vim_regcomp().
|
|
#define RE_MAGIC 1 ///< 'magic' option
|
|
#define RE_STRING 2 ///< match in string instead of buffer text
|
|
#define RE_STRICT 4 ///< don't allow [abc] without ]
|
|
#define RE_AUTO 8 ///< automatic engine selection
|
|
|
|
// values for reg_do_extmatch
|
|
#define REX_SET 1 ///< to allow \z\(...\),
|
|
#define REX_USE 2 ///< to allow \z\1 et al.
|
|
#define REX_ALL (REX_SET | REX_USE)
|
|
|
|
// regexp.c
|
|
// uncrustify:off
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "regexp.h.generated.h"
|
|
# include "regexp_bt.h.generated.h"
|
|
#endif
|
|
// uncrustify:on
|
|
|
|
#endif // NVIM_REGEXP_H
|