mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 01:09:56 +10: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.
20 lines
599 B
C
20 lines
599 B
C
#ifndef NVIM_CHANGE_H
|
|
#define NVIM_CHANGE_H
|
|
|
|
#include "nvim/buffer_defs.h"
|
|
#include "nvim/pos.h"
|
|
|
|
// flags for open_line()
|
|
#define OPENLINE_DELSPACES 0x01 // delete spaces after cursor
|
|
#define OPENLINE_DO_COM 0x02 // format comments
|
|
#define OPENLINE_KEEPTRAIL 0x04 // keep trailing spaces
|
|
#define OPENLINE_MARKFIX 0x08 // fix mark positions
|
|
#define OPENLINE_COM_LIST 0x10 // format comments with list/2nd line indent
|
|
#define OPENLINE_FORMAT 0x20 // formatting long comment
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "change.h.generated.h"
|
|
#endif
|
|
|
|
#endif // NVIM_CHANGE_H
|