refactor: fix includes for api/autocmd.h

This commit is contained in:
dundargoc 2023-11-27 20:13:32 +01:00 committed by dundargoc
parent f9231603c4
commit e3f735ef10
30 changed files with 27 additions and 29 deletions

View File

@ -142,7 +142,6 @@ iwyu: build/.ran-cmake
cmake --preset iwyu
cmake --build build > build/iwyu.log
iwyu-fix-includes --only_re="src/nvim" --ignore_re="(src/nvim/eval/encode.c|src/nvim/auto/|src/nvim/os/lang.c|src/nvim/map.c\
|src/nvim/api/autocmd.h\
|src/nvim/api/buffer.h\
|src/nvim/api/command.h\
|src/nvim/api/extmark.h\

View File

@ -897,7 +897,6 @@ def CheckIncludes(filename, lines, error):
# These should be synced with the ignored headers in the `iwyu` target in
# the Makefile.
check_includes_ignore = [
"src/nvim/api/autocmd.h",
"src/nvim/api/buffer.h",
"src/nvim/api/command.h",
"src/nvim/api/extmark.h",

View File

@ -8,7 +8,7 @@
#include "klib/kvec.h"
#include "nvim/api/autocmd.h"
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h"
#include "nvim/api/private/helpers.h"

View File

@ -2,7 +2,7 @@
#include <stdint.h> // IWYU pragma: keep
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h" // IWYU pragma: keep
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#ifdef INCLUDE_GENERATED_DECLARATIONS

View File

@ -10,7 +10,7 @@
#include "klib/kvec.h"
#include "lua.h"
#include "nvim/api/buffer.h"
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/helpers.h"
#include "nvim/api/private/validate.h"

View File

@ -3,7 +3,7 @@
#include <lua.h> // IWYU pragma: keep
#include <stdint.h> // IWYU pragma: keep
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#include "nvim/buffer_defs.h"

View File

@ -6,7 +6,7 @@
#include "klib/kvec.h"
#include "nvim/api/command.h"
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h"
#include "nvim/api/private/helpers.h"

View File

@ -2,7 +2,7 @@
#include <stdint.h> // IWYU pragma: keep
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#ifdef INCLUDE_GENERATED_DECLARATIONS

View File

@ -5,7 +5,7 @@
#include "nvim/api/buffer.h"
#include "nvim/api/deprecated.h"
#include "nvim/api/extmark.h"
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/options.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/helpers.h"

View File

@ -6,7 +6,7 @@
#include "klib/kvec.h"
#include "nvim/api/extmark.h"
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h"
#include "nvim/api/private/helpers.h"

View File

@ -2,7 +2,7 @@
#include <stdint.h> // IWYU pragma: keep
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#include "nvim/decoration_defs.h" // IWYU pragma: keep
#include "nvim/macros.h"

View File

@ -2,7 +2,7 @@
#include <stdbool.h>
#include <string.h>
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/options.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h"

View File

@ -2,7 +2,7 @@
#include <stdint.h> // IWYU pragma: keep
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#include "nvim/option_defs.h" // IWYU pragma: keep

View File

@ -11,7 +11,7 @@
#include "klib/kvec.h"
#include "nvim/api/buffer.h"
#include "nvim/api/deprecated.h"
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/converter.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h"

View File

@ -2,7 +2,7 @@
#include <stdint.h> // IWYU pragma: keep
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#ifdef INCLUDE_GENERATED_DECLARATIONS

View File

@ -5,7 +5,7 @@
#include <string.h>
#include "klib/kvec.h"
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/converter.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/helpers.h"

View File

@ -2,7 +2,7 @@
#include <stdint.h> // IWYU pragma: keep
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#ifdef INCLUDE_GENERATED_DECLARATIONS

View File

@ -3,7 +3,7 @@
#include "klib/kvec.h"
#include "nvim/api/extmark.h"
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h"
#include "nvim/api/private/helpers.h"

View File

@ -2,7 +2,7 @@
#include <stdint.h> // IWYU pragma: keep
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#ifdef INCLUDE_GENERATED_DECLARATIONS

View File

@ -3,7 +3,7 @@
#include <stdint.h>
#include <stdlib.h>
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h"
#include "nvim/api/private/helpers.h"

View File

@ -1,6 +1,6 @@
#pragma once
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#ifdef INCLUDE_GENERATED_DECLARATIONS

View File

@ -6,7 +6,7 @@
#include <stdio.h>
#include <string.h>
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/converter.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/helpers.h"

View File

@ -5,7 +5,7 @@
#include <lauxlib.h>
#include <string.h>
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h"
#include "nvim/api/private/helpers.h"

View File

@ -2,7 +2,7 @@
#include <stdbool.h>
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#include "nvim/buffer_defs.h" // IWYU pragma: keep
#include "nvim/highlight_defs.h" // IWYU pragma: export

View File

@ -8,7 +8,7 @@
#include <string.h>
#include "klib/kvec.h"
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h"
#include "nvim/api/private/helpers.h"

View File

@ -1,6 +1,6 @@
#pragma once
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#include "nvim/api/private/helpers.h"
#include "nvim/cmdexpand_defs.h" // IWYU pragma: keep

View File

@ -10,7 +10,7 @@
#include <stdlib.h>
#include <string.h>
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/converter.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h"

View File

@ -4,7 +4,7 @@
#include <stddef.h>
#include <stdint.h>
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#include "nvim/cmdexpand_defs.h" // IWYU pragma: keep
#include "nvim/eval/typval_defs.h" // IWYU pragma: keep

View File

@ -4,7 +4,7 @@
#include <stdint.h>
#include <stdlib.h>
#include "nvim/api/keysets.h"
#include "nvim/api/keysets_defs.h"
#include "nvim/api/private/dispatch.h"
#include "nvim/api/private/helpers.h"
#include "nvim/channel.h"