mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +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.
16 lines
476 B
C
16 lines
476 B
C
// This is an open source non-commercial project. Dear PVS-Studio, please check
|
|
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
|
|
|
#include "nvim/viml/parser/parser.h"
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "viml/parser/parser.c.generated.h" // IWYU pragma: export
|
|
#endif
|
|
|
|
void parser_simple_get_line(void *cookie, ParserLine *ret_pline)
|
|
{
|
|
ParserLine **plines_p = (ParserLine **)cookie;
|
|
*ret_pline = **plines_p;
|
|
(*plines_p)++;
|
|
}
|