]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: add IWYU export pragams to gdb_curses.h
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 30 May 2024 20:22:37 +0000 (16:22 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 30 May 2024 20:22:37 +0000 (16:22 -0400)
commit002310d77de404189b80ff4b951b7dd27152fa71
treee72457f7075e32cde940c3cda0901a26d54ca5ce
parent4a7d71687676a1c36326e71f0a783fccb8748127
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
gdb/gdb_curses.h