mapping.imp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. [
  2. # Generated to normal headers: header.h.generated.h -> nvim/header.h
  3. { include: [ '"api/autocmd.h.generated.h"', private, '"nvim/api/autocmd.h"', public ] },
  4. { include: [ '"api/buffer.h.generated.h"', private, '"nvim/api/buffer.h"', public ] },
  5. { include: [ '"api/command.h.generated.h"', private, '"nvim/api/command.h"', public ] },
  6. { include: [ '"api/deprecated.h.generated.h"', private, '"nvim/api/deprecated.h"', public ] },
  7. { include: [ '"api/extmark.h.generated.h"', private, '"nvim/api/extmark.h"', public ] },
  8. { include: [ '"api/options.h.generated.h"', private, '"nvim/api/options.h"', public ] },
  9. { include: [ '"api/private/converter.h.generated.h"', private, '"nvim/api/private/converter.h"', public ] },
  10. { include: [ '"api/private/dispatch.h.generated.h"', private, '"nvim/api/private/dispatch.h"', public ] },
  11. { include: [ '"api/private/helpers.h.generated.h"', private, '"nvim/api/private/helpers.h"', public ] },
  12. { include: [ '"api/tabpage.h.generated.h"', private, '"nvim/api/tabpage.h"', public ] },
  13. { include: [ '"api/ui.h.generated.h"', private, '"nvim/api/ui.h"', public ] },
  14. { include: [ '"api/vim.h.generated.h"', private, '"nvim/api/vim.h"', public ] },
  15. { include: [ '"api/vimscript.h.generated.h"', private, '"nvim/api/vimscript.h"', public ] },
  16. { include: [ '"api/win_config.h.generated.h"', private, '"nvim/api/win_config.h"', public ] },
  17. { include: [ '"api/window.h.generated.h"', private, '"nvim/api/window.h"', public ] },
  18. { include: [ '"arabic.h.generated.h"', private, '"nvim/arabic.h"', public ] },
  19. { include: [ '"arglist.h.generated.h"', private, '"nvim/arglist.h"', public ] },
  20. { include: [ '"autocmd.h.generated.h"', private, '"nvim/autocmd.h"', public ] },
  21. { include: [ '"buffer.h.generated.h"', private, '"nvim/buffer.h"', public ] },
  22. { include: [ '"buffer_updates.h.generated.h"', private, '"nvim/buffer_updates.h"', public ] },
  23. { include: [ '"change.h.generated.h"', private, '"nvim/change.h"', public ] },
  24. { include: [ '"channel.h.generated.h"', private, '"nvim/channel.h"', public ] },
  25. { include: [ '"charset.h.generated.h"', private, '"nvim/charset.h"', public ] },
  26. { include: [ '"cmdexpand.h.generated.h"', private, '"nvim/cmdexpand.h"', public ] },
  27. { include: [ '"cmdhist.h.generated.h"', private, '"nvim/cmdhist.h"', public ] },
  28. { include: [ '"context.h.generated.h"', private, '"nvim/context.h"', public ] },
  29. { include: [ '"cursor.h.generated.h"', private, '"nvim/cursor.h"', public ] },
  30. { include: [ '"cursor_shape.h.generated.h"', private, '"nvim/cursor_shape.h"', public ] },
  31. { include: [ '"debugger.h.generated.h"', private, '"nvim/debugger.h"', public ] },
  32. { include: [ '"decoration.h.generated.h"', private, '"nvim/decoration.h"', public ] },
  33. { include: [ '"decoration_provider.h.generated.h"', private, '"nvim/decoration_provider.h"', public ] },
  34. { include: [ '"diff.h.generated.h"', private, '"nvim/diff.h"', public ] },
  35. { include: [ '"digraph.h.generated.h"', private, '"nvim/digraph.h"', public ] },
  36. { include: [ '"drawline.h.generated.h"', private, '"nvim/drawline.h"', public ] },
  37. { include: [ '"drawscreen.h.generated.h"', private, '"nvim/drawscreen.h"', public ] },
  38. { include: [ '"edit.h.generated.h"', private, '"nvim/edit.h"', public ] },
  39. { include: [ '"eval.h.generated.h"', private, '"nvim/eval.h"', public ] },
  40. { include: [ '"eval/buffer.h.generated.h"', private, '"nvim/eval/buffer.h"', public ] },
  41. { include: [ '"eval/decode.h.generated.h"', private, '"nvim/eval/decode.h"', public ] },
  42. { include: [ '"eval/encode.h.generated.h"', private, '"nvim/eval/encode.h"', public ] },
  43. { include: [ '"eval/executor.h.generated.h"', private, '"nvim/eval/executor.h"', public ] },
  44. { include: [ '"eval/funcs.h.generated.h"', private, '"nvim/eval/funcs.h"', public ] },
  45. { include: [ '"eval/typval.h.generated.h"', private, '"nvim/eval/typval.h"', public ] },
  46. { include: [ '"eval/userfunc.h.generated.h"', private, '"nvim/eval/userfunc.h"', public ] },
  47. { include: [ '"eval/vars.h.generated.h"', private, '"nvim/eval/vars.h"', public ] },
  48. { include: [ '"eval/window.h.generated.h"', private, '"nvim/eval/window.h"', public ] },
  49. { include: [ '"event/libuv_process.h.generated.h"', private, '"nvim/event/libuv_process.h"', public ] },
  50. { include: [ '"event/loop.h.generated.h"', private, '"nvim/event/loop.h"', public ] },
  51. { include: [ '"event/multiqueue.h.generated.h"', private, '"nvim/event/multiqueue.h"', public ] },
  52. { include: [ '"event/process.h.generated.h"', private, '"nvim/event/process.h"', public ] },
  53. { include: [ '"event/rstream.h.generated.h"', private, '"nvim/event/rstream.h"', public ] },
  54. { include: [ '"event/signal.h.generated.h"', private, '"nvim/event/signal.h"', public ] },
  55. { include: [ '"event/socket.h.generated.h"', private, '"nvim/event/socket.h"', public ] },
  56. { include: [ '"event/stream.h.generated.h"', private, '"nvim/event/stream.h"', public ] },
  57. { include: [ '"event/time.h.generated.h"', private, '"nvim/event/time.h"', public ] },
  58. { include: [ '"event/wstream.h.generated.h"', private, '"nvim/event/wstream.h"', public ] },
  59. { include: [ '"ex_cmds.h.generated.h"', private, '"nvim/ex_cmds.h"', public ] },
  60. { include: [ '"ex_cmds2.h.generated.h"', private, '"nvim/ex_cmds2.h"', public ] },
  61. { include: [ '"ex_docmd.h.generated.h"', private, '"nvim/ex_docmd.h"', public ] },
  62. { include: [ '"ex_eval.h.generated.h"', private, '"nvim/ex_eval.h"', public ] },
  63. { include: [ '"ex_getln.h.generated.h"', private, '"nvim/ex_getln.h"', public ] },
  64. { include: [ '"ex_session.h.generated.h"', private, '"nvim/ex_session.h"', public ] },
  65. { include: [ '"extmark.h.generated.h"', private, '"nvim/extmark.h"', public ] },
  66. { include: [ '"file_search.h.generated.h"', private, '"nvim/file_search.h"', public ] },
  67. { include: [ '"fileio.h.generated.h"', private, '"nvim/fileio.h"', public ] },
  68. { include: [ '"fold.h.generated.h"', private, '"nvim/fold.h"', public ] },
  69. { include: [ '"garray.h.generated.h"', private, '"nvim/garray.h"', public ] },
  70. { include: [ '"getchar.h.generated.h"', private, '"nvim/getchar.h"', public ] },
  71. { include: [ '"grid.h.generated.h"', private, '"nvim/grid.h"', public ] },
  72. { include: [ '"hashtab.h.generated.h"', private, '"nvim/hashtab.h"', public ] },
  73. { include: [ '"help.h.generated.h"', private, '"nvim/help.h"', public ] },
  74. { include: [ '"highlight.h.generated.h"', private, '"nvim/highlight.h"', public ] },
  75. { include: [ '"highlight_group.h.generated.h"', private, '"nvim/highlight_group.h"', public ] },
  76. { include: [ '"if_cscope.h.generated.h"', private, '"nvim/if_cscope.h"', public ] },
  77. { include: [ '"indent.h.generated.h"', private, '"nvim/indent.h"', public ] },
  78. { include: [ '"indent_c.h.generated.h"', private, '"nvim/indent_c.h"', public ] },
  79. { include: [ '"input.h.generated.h"', private, '"nvim/input.h"', public ] },
  80. { include: [ '"insexpand.h.generated.h"', private, '"nvim/insexpand.h"', public ] },
  81. { include: [ '"keycodes.h.generated.h"', private, '"nvim/keycodes.h"', public ] },
  82. { include: [ '"linematch.h.generated.h"', private, '"nvim/linematch.h"', public ] },
  83. { include: [ '"locale.h.generated.h"', private, '"nvim/locale.h"', public ] },
  84. { include: [ '"log.h.generated.h"', private, '"nvim/log.h"', public ] },
  85. { include: [ '"lua/converter.h.generated.h"', private, '"nvim/lua/converter.h"', public ] },
  86. { include: [ '"lua/executor.h.generated.h"', private, '"nvim/lua/executor.h"', public ] },
  87. { include: [ '"lua/spell.h.generated.h"', private, '"nvim/lua/spell.h"', public ] },
  88. { include: [ '"lua/stdlib.h.generated.h"', private, '"nvim/lua/stdlib.h"', public ] },
  89. { include: [ '"lua/treesitter.h.generated.h"', private, '"nvim/lua/treesitter.h"', public ] },
  90. { include: [ '"lua/xdiff.h.generated.h"', private, '"nvim/lua/xdiff.h"', public ] },
  91. { include: [ '"main.h.generated.h"', private, '"nvim/main.h"', public ] },
  92. { include: [ '"mapping.h.generated.h"', private, '"nvim/mapping.h"', public ] },
  93. { include: [ '"mark.h.generated.h"', private, '"nvim/mark.h"', public ] },
  94. { include: [ '"marktree.h.generated.h"', private, '"nvim/marktree.h"', public ] },
  95. { include: [ '"match.h.generated.h"', private, '"nvim/match.h"', public ] },
  96. { include: [ '"math.h.generated.h"', private, '"nvim/math.h"', public ] },
  97. { include: [ '"mbyte.h.generated.h"', private, '"nvim/mbyte.h"', public ] },
  98. { include: [ '"memfile.h.generated.h"', private, '"nvim/memfile.h"', public ] },
  99. { include: [ '"memline.h.generated.h"', private, '"nvim/memline.h"', public ] },
  100. { include: [ '"memory.h.generated.h"', private, '"nvim/memory.h"', public ] },
  101. { include: [ '"menu.h.generated.h"', private, '"nvim/menu.h"', public ] },
  102. { include: [ '"message.h.generated.h"', private, '"nvim/message.h"', public ] },
  103. { include: [ '"mouse.h.generated.h"', private, '"nvim/mouse.h"', public ] },
  104. { include: [ '"move.h.generated.h"', private, '"nvim/move.h"', public ] },
  105. { include: [ '"msgpack_rpc/channel.h.generated.h"', private, '"nvim/msgpack_rpc/channel.h"', public ] },
  106. { include: [ '"msgpack_rpc/helpers.h.generated.h"', private, '"nvim/msgpack_rpc/helpers.h"', public ] },
  107. { include: [ '"msgpack_rpc/server.h.generated.h"', private, '"nvim/msgpack_rpc/server.h"', public ] },
  108. { include: [ '"msgpack_rpc/unpacker.h.generated.h"', private, '"nvim/msgpack_rpc/unpacker.h"', public ] },
  109. { include: [ '"normal.h.generated.h"', private, '"nvim/normal.h"', public ] },
  110. { include: [ '"ops.h.generated.h"', private, '"nvim/ops.h"', public ] },
  111. { include: [ '"option.h.generated.h"', private, '"nvim/option.h"', public ] },
  112. { include: [ '"optionstr.h.generated.h"', private, '"nvim/optionstr.h"', public ] },
  113. { include: [ '"os/dl.h.generated.h"', private, '"nvim/os/dl.h"', public ] },
  114. { include: [ '"os/fileio.h.generated.h"', private, '"nvim/os/fileio.h"', public ] },
  115. { include: [ '"os/fs.h.generated.h"', private, '"nvim/os/fs.h"', public ] },
  116. { include: [ '"os/input.h.generated.h"', private, '"nvim/os/input.h"', public ] },
  117. { include: [ '"os/lang.h.generated.h"', private, '"nvim/os/lang.h"', public ] },
  118. { include: [ '"os/process.h.generated.h"', private, '"nvim/os/process.h"', public ] },
  119. { include: [ '"os/pty_process_unix.h.generated.h"', private, '"nvim/os/pty_process_unix.h"', private ] },
  120. { include: [ '"os/shell.h.generated.h"', private, '"nvim/os/shell.h"', public ] },
  121. { include: [ '"os/signal.h.generated.h"', private, '"nvim/os/signal.h"', public ] },
  122. { include: [ '"os/time.h.generated.h"', private, '"nvim/os/time.h"', public ] },
  123. { include: [ '"path.h.generated.h"', private, '"nvim/path.h"', public ] },
  124. { include: [ '"plines.h.generated.h"', private, '"nvim/plines.h"', public ] },
  125. { include: [ '"popupmenu.h.generated.h"', private, '"nvim/popupmenu.h"', public ] },
  126. { include: [ '"profile.h.generated.h"', private, '"nvim/profile.h"', public ] },
  127. { include: [ '"quickfix.h.generated.h"', private, '"nvim/quickfix.h"', public ] },
  128. { include: [ '"rbuffer.h.generated.h"', private, '"nvim/rbuffer.h"', public ] },
  129. { include: [ '"regexp.h.generated.h"', private, '"nvim/regexp.h"', public ] },
  130. { include: [ '"runtime.h.generated.h"', private, '"nvim/runtime.h"', public ] },
  131. { include: [ '"screen.h.generated.h"', private, '"nvim/screen.h"', public ] },
  132. { include: [ '"search.h.generated.h"', private, '"nvim/search.h"', public ] },
  133. { include: [ '"sha256.h.generated.h"', private, '"nvim/sha256.h"', public ] },
  134. { include: [ '"shada.h.generated.h"', private, '"nvim/shada.h"', public ] },
  135. { include: [ '"sign.h.generated.h"', private, '"nvim/sign.h"', public ] },
  136. { include: [ '"spell.h.generated.h"', private, '"nvim/spell.h"', public ] },
  137. { include: [ '"spellfile.h.generated.h"', private, '"nvim/spellfile.h"', public ] },
  138. { include: [ '"spellsuggest.h.generated.h"', private, '"nvim/spellsuggest.h"', public ] },
  139. { include: [ '"state.h.generated.h"', private, '"nvim/state.h"', public ] },
  140. { include: [ '"statusline.h.generated.h"', private, '"nvim/statusline.h"', public ] },
  141. { include: [ '"strings.h.generated.h"', private, '"nvim/strings.h"', public ] },
  142. { include: [ '"syntax.h.generated.h"', private, '"nvim/syntax.h"', public ] },
  143. { include: [ '"tag.h.generated.h"', private, '"nvim/tag.h"', public ] },
  144. { include: [ '"terminal.h.generated.h"', private, '"nvim/terminal.h"', public ] },
  145. { include: [ '"testing.h.generated.h"', private, '"nvim/testing.h"', public ] },
  146. { include: [ '"textformat.h.generated.h"', private, '"nvim/textformat.h"', public ] },
  147. { include: [ '"textobject.h.generated.h"', private, '"nvim/textobject.h"', public ] },
  148. { include: [ '"tui/input.h.generated.h"', private, '"nvim/tui/input.h"', public ] },
  149. { include: [ '"tui/terminfo.h.generated.h"', private, '"nvim/tui/terminfo.h"', public ] },
  150. { include: [ '"tui/tui.h.generated.h"', private, '"nvim/tui/tui.h"', public ] },
  151. { include: [ '"ugrid.h.generated.h"', private, '"nvim/ugrid.h"', public ] },
  152. { include: [ '"ui.h.generated.h"', private, '"nvim/ui.h"', public ] },
  153. { include: [ '"ui_bridge.h.generated.h"', private, '"nvim/ui_bridge.h"', public ] },
  154. { include: [ '"ui_client.h.generated.h"', private, '"nvim/ui_client.h"', public ] },
  155. { include: [ '"ui_compositor.h.generated.h"', private, '"nvim/ui_compositor.h"', public ] },
  156. { include: [ '"undo.h.generated.h"', private, '"nvim/undo.h"', public ] },
  157. { include: [ '"usercmd.h.generated.h"', private, '"nvim/usercmd.h"', public ] },
  158. { include: [ '"version.h.generated.h"', private, '"nvim/version.h"', public ] },
  159. { include: [ '"viml/parser/expressions.h.generated.h"', private, '"nvim/viml/parser/expressions.h"', public ] },
  160. { include: [ '"viml/parser/parser.h.generated.h"', private, '"nvim/viml/parser/parser.h"', public ] },
  161. { include: [ '"window.h.generated.h"', private, '"nvim/window.h"', public ] },
  162. # Generated to normal headers with a different name: header.h.generated.h -> nvim/some_other_header.h
  163. { include: [ '"api/private/dispatch_wrappers.h.generated.h"', private, '"nvim/api/private/dispatch.h"', public ] },
  164. { include: [ '"auevents_enum.generated.h"', private, '"nvim/autocmd.h"', public ] },
  165. { include: [ '"ex_cmds_enum.generated.h"', private, '"nvim/ex_cmds_defs.h"', public ] },
  166. { include: [ '"keysets.h.generated.h"', private, '"nvim/api/private/helpers.h"', public ] },
  167. { include: [ '"keysets_defs.generated.h"', private, '"nvim/api/private/defs.h"', public ] },
  168. { include: [ '"nvim/os/pty_process_unix.h"', private, '"nvim/os/pty_process.h"', public ] },
  169. { include: [ '"nvim/os/pty_process_win.h"', private, '"nvim/os/pty_process.h"', public ] },
  170. { include: [ '"nvim/os/unix_defs.h"', private, '"nvim/os/os_defs.h"', public ] },
  171. { include: [ '"nvim/os/win_defs.h"', private, '"nvim/os/os_defs.h"', public ] },
  172. { include: [ '"os/env.h.generated.h"', private, '"nvim/os/os.h"', public ] },
  173. { include: [ '"os/fs.h.generated.h"', private, '"nvim/os/os.h"', public ] },
  174. { include: [ '"os/mem.h.generated.h"', private, '"nvim/os/os.h"', public ] },
  175. { include: [ '"os/stdpaths.h.generated.h"', private, '"nvim/os/os.h"', public ] },
  176. { include: [ '"os/users.h.generated.h"', private, '"nvim/os/os.h"', public ] },
  177. { include: [ '"regexp_bt.h.generated.h"', private, '"nvim/regexp.h"', public ] },
  178. { include: [ '"ui_events_call.h.generated.h"', private, '"nvim/ui.h"', public ] },
  179. { include: [ '"ui_events_client.h.generated.h"', private, '"nvim/ui_client.h"', public ] },
  180. { include: [ '"ui_events_remote.generated.h"', private, '"nvim/api/ui.h"', public ] },
  181. { include: [ '"ui_events_remote.h.generated.h"', private, '"nvim/api/ui.h"', public ] },
  182. # Def to normal headers: nvim/header_defs.h -> nvim/header.h
  183. #
  184. # This is a public to public mapping, meaning that while IWYU can use the
  185. # headers on the left, it will use the headers on the right if possible. This
  186. # isn't explicitly mentioned in the IWYU docs, this is just my interpretation
  187. # of its behavior.
  188. { include: [ '"nvim/buffer_defs.h"', public, '"nvim/buffer.h"', public ] },
  189. { include: [ '"nvim/ex_cmds_defs.h"', public, '"nvim/ex_cmds.h"', public ] },
  190. { include: [ '"nvim/ex_eval_defs.h"', public, '"nvim/ex_eval.h"', public ] },
  191. { include: [ '"nvim/extmark_defs.h"', public, '"nvim/extmark.h"', public ] },
  192. { include: [ '"nvim/grid_defs.h"', public, '"nvim/grid.h"', public ] },
  193. { include: [ '"nvim/highlight_defs.h"', public, '"nvim/highlight.h"', public ] },
  194. { include: [ '"nvim/map_defs.h"', public, '"nvim/map.h"', public ] },
  195. { include: [ '"nvim/mark_defs.h"', public, '"nvim/mark.h"', public ] },
  196. { include: [ '"nvim/mbyte_defs.h"', public, '"nvim/mbyte.h"', public ] },
  197. { include: [ '"nvim/memfile_defs.h"', public, '"nvim/memfile.h"', public ] },
  198. { include: [ '"nvim/memline_defs.h"', public, '"nvim/memline.h"', public ] },
  199. { include: [ '"nvim/menu_defs.h"', public, '"nvim/menu.h"', public ] },
  200. { include: [ '"nvim/msgpack/channel_defs.h"', public, '"nvim/msgpack/channel.h"', public ] },
  201. { include: [ '"nvim/option_defs.h"', public, '"nvim/option.h"', public ] },
  202. { include: [ '"nvim/os/fs_defs.h"', public, '"nvim/os/fs.h"', public ] },
  203. { include: [ '"nvim/os/os_defs.h"', public, '"nvim/os/os.h"', public ] },
  204. { include: [ '"nvim/regexp_defs.h"', public, '"nvim/regexp.h"', public ] },
  205. { include: [ '"nvim/sign_defs.h"', public, '"nvim/sign.h"', public ] },
  206. { include: [ '"nvim/spell_defs.h"', public, '"nvim/spell.h"', public ] },
  207. { include: [ '"nvim/statusline_defs.h"', public, '"nvim/statusline.h"', public ] },
  208. { include: [ '"nvim/syntax_defs.h"', public, '"nvim/syntax.h"', public ] },
  209. { include: [ '"nvim/tui/input_defs.h"', public, '"nvim/tui/input.h"', public ] },
  210. { include: [ '"nvim/undo_defs.h"', public, '"nvim/undo.h"', public ] },
  211. # Third party headers
  212. { include: [ "<bits/types/wint_t.h>", private, "<wchar.h>", public ] },
  213. { include: [ '<arpa/inet.h>', private, '<uv/unix.h>', private ] },
  214. { include: [ '<bits/termios-c_cc.h>', private, '<termios.h>', private ] },
  215. { include: [ '<bits/termios-c_cflag.h>', private, '<termios.h>', private ] },
  216. { include: [ '<bits/termios-c_iflag.h>', private, '<termios.h>', private ] },
  217. { include: [ '<bits/termios-c_oflag.h>', private, '<termios.h>', private ] },
  218. { include: [ '<libintl.h>', private, '"nvim/gettext.h"', public ] },
  219. { include: [ '<netdb.h>', private, '<uv/unix.h>', private ] },
  220. { include: [ '<netinet/in.h>', private, '<uv/unix.h>', private ] },
  221. { include: [ '<pthread.h>', private, '"nvim/os/unix_defs.h"', private ] },
  222. { include: [ '<sys/socket.h>', private, '<uv/unix.h>', private ] },
  223. { include: [ '<termios.h>', private, '"nvim/os/unix_defs.h"', private ] },
  224. { include: [ '<unistd.h>', private, '"nvim/os/unix_defs.h"', private ] },
  225. { include: [ '<uv/unix.h>', private, '<uv.h>', public ] },
  226. # Symbols
  227. { symbol: [ "MAX", private, '"nvim/macros.h"', public ] },
  228. { symbol: [ "MIN", private, '"nvim/macros.h"', public ] },
  229. { symbol: [ "SEEK_END", private, '<stdio.h>', public ] },
  230. { symbol: [ "SEEK_SET", private, '<stdio.h>', public ] },
  231. { symbol: [ "time_fd", private, '"nvim/globals.h"', public ] },
  232. ]
  233. # vim: set ft=toml: