gdb: cleanup includes in *-typeprint.[ch]

Remove includes reported as unused by clangd.

Include "gdb-hashtab.h" in typeprint.h for the use of "htab_up".

Change-Id: I5b04ec14e71800e2d6ad622838e39b7033e168cf
This commit is contained in:
Simon Marchi 2024-11-04 17:48:55 +00:00
parent a2d63ac679
commit 0b4c9b5057
6 changed files with 1 additions and 8 deletions

View File

@ -16,14 +16,12 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "bfd.h"
#include "event-top.h"
#include "gdbtypes.h"
#include "value.h"
#include "c-lang.h"
#include "cli/cli-style.h"
#include "typeprint.h"
#include "target-float.h"
#include "ada-lang.h"
#include <ctype.h>

View File

@ -17,7 +17,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "event-top.h"
#include "gdbsupport/gdb_obstack.h"
#include "bfd.h"
#include "symtab.h"
#include "gdbtypes.h"

View File

@ -21,8 +21,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "event-top.h"
#include "gdbsupport/gdb_obstack.h"
#include "bfd.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"

View File

@ -18,7 +18,6 @@
#include "event-top.h"
#include "language.h"
#include "gdbsupport/gdb_obstack.h"
#include "bfd.h"
#include "symtab.h"
#include "gdbtypes.h"
@ -27,7 +26,6 @@
#include "gdbcore.h"
#include "m2-lang.h"
#include "target.h"
#include "demangle.h"
#include "c-lang.h"
#include "typeprint.h"
#include "cp-abi.h"

View File

@ -19,7 +19,6 @@
/* This file is derived from p-typeprint.c */
#include "event-top.h"
#include "gdbsupport/gdb_obstack.h"
#include "bfd.h"
#include "symtab.h"
#include "gdbtypes.h"

View File

@ -19,6 +19,7 @@
#ifndef TYPEPRINT_H
#define TYPEPRINT_H
#include "gdbsupport/gdb-hashtab.h"
#include "gdbsupport/gdb_obstack.h"
enum language;