]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: add IWYU export pragams to gdb_curses.h
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 31 May 2024 02:54:06 +0000 (22:54 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 8 Jun 2024 02:52:54 +0000 (22:52 -0400)
commita791eef767389b2bf88c67f3361a001677f8caa7
tree2657f55d04271eaed30c23047f67aef67671fc31
parent8a39a981bd8d576de0d343b8c2eee47655d8c720
gdb: add IWYU export pragams to gdb_curses.h

It seems like gdb_curses.h is included whenever we want to access
ncurses functionality, instead of including directly ncurses.h.  As a
result, clangd often erroneously shows that gdb_curses.h inclusions are
unused.

By adding those pragmas, clangd (and the include-what-you-use tool)
understands that gdb_curses.h is a valid provider for whatever these
ncurses.h files provide.

Change-Id: Ia8acd761dae1577f7151d5fb558f35514b4e4ea2
Approved-By: Tom Tromey <tom@tromey.com>
gdb/gdb_curses.h