mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
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>
This commit is contained in:
parent
8a39a981bd
commit
a791eef767
@ -40,21 +40,21 @@
|
||||
#define NCURSES_NOMACROS
|
||||
|
||||
#if defined (HAVE_NCURSESW_NCURSES_H)
|
||||
#include <ncursesw/ncurses.h>
|
||||
#include <ncursesw/ncurses.h> /* IWYU pragma: export */
|
||||
#elif defined (HAVE_NCURSES_NCURSES_H)
|
||||
#include <ncurses/ncurses.h>
|
||||
#include <ncurses/ncurses.h> /* IWYU pragma: export */
|
||||
#elif defined (HAVE_NCURSES_H)
|
||||
#include <ncurses.h>
|
||||
#include <ncurses.h> /* IWYU pragma: export */
|
||||
#elif defined (HAVE_CURSESX_H)
|
||||
#include <cursesX.h>
|
||||
#include <cursesX.h> /* IWYU pragma: export */
|
||||
#elif defined (HAVE_CURSES_H)
|
||||
#include <curses.h>
|
||||
#include <curses.h> /* IWYU pragma: export */
|
||||
#endif
|
||||
|
||||
#if defined (HAVE_NCURSES_TERM_H)
|
||||
#include <ncurses/term.h>
|
||||
#include <ncurses/term.h> /* IWYU pragma: export */
|
||||
#elif defined (HAVE_TERM_H)
|
||||
#include <term.h>
|
||||
#include <term.h> /* IWYU pragma: export */
|
||||
#else
|
||||
/* On MinGW, a real termcap library is usually not present. Stub versions
|
||||
of the termcap functions will be built from stub-termcap.c. Readline
|
||||
|
Loading…
Reference in New Issue
Block a user