mirror of
https://github.com/neovim/neovim.git
synced 2025-10-12 21:06:13 +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.
26 lines
660 B
C
26 lines
660 B
C
#ifndef NVIM_PLINES_H
|
|
#define NVIM_PLINES_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "nvim/buffer_defs.h"
|
|
#include "nvim/vim.h"
|
|
|
|
// Argument for lbr_chartabsize().
|
|
typedef struct {
|
|
win_T *cts_win;
|
|
char *cts_line; // start of the line
|
|
char *cts_ptr; // current position in line
|
|
|
|
bool cts_has_virt_text; // true if if a property inserts text
|
|
int cts_cur_text_width; // width of current inserted text
|
|
// TODO(bfredl): iterator in to the marktree for scanning virt text
|
|
|
|
int cts_vcol; // virtual column at current position
|
|
} chartabsize_T;
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "plines.h.generated.h"
|
|
#endif
|
|
#endif // NVIM_PLINES_H
|