GCC Middle and Back End API Reference
Go to the documentation of this file.
1/* Declarations for printing trees in human readable form
2 Copyright (C) 2013-2024 Free Software Foundation, Inc.
4This file is part of GCC.
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
8Software Foundation; either version 3, or (at your option) any later
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14for more details.
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
20#ifndef GCC_PRINT_TREE_H
21#define GCC_PRINT_TREE_H
23extern void debug_tree (tree);
24extern void debug_raw (const tree_node &ref);
25extern void debug_raw (const tree_node *ptr);
26extern void debug (const tree_node &ref);
27extern void debug (const tree_node *ptr);
28extern void debug_verbose (const tree_node &ref);
29extern void debug_verbose (const tree_node *ptr);
30extern void debug_head (const tree_node &ref);
31extern void debug_head (const tree_node *ptr);
32extern void debug_body (const tree_node &ref);
33extern void debug_body (const tree_node *ptr);
34extern void debug (vec<tree, va_gc> &ref);
35extern void debug (vec<tree, va_gc> *ptr);
36extern void debug_raw (vec<tree, va_gc> &ref);
37extern void debug_raw (vec<tree, va_gc> *ptr);
38#ifdef BUFSIZ
39extern void dump_addr (FILE*, const char *, const void *);
40extern void print_node (FILE *, const char *, tree, int,
41 bool brief_for_visited = true);
42extern void print_node_brief (FILE *, const char *, const_tree, int);
43extern void indent_to (FILE *, int);
45#define PRINT_DECL_ORIGIN 0x1
46#define PRINT_DECL_NAME 0x2
49extern void print_decl_identifier (FILE *, tree, int flags);
51#endif // GCC_PRINT_TREE_H
bool debug
Definition collect-utils.cc:34
const union tree_node * const_tree
Definition coretypes.h:98
union tree_node * tree
Definition coretypes.h:97
void print_node(FILE *file, const char *prefix, tree node, int indent, bool brief_for_visited)
Definition print-tree.cc:223
void print_node_brief(FILE *file, const char *prefix, const_tree node, int indent)
Definition print-tree.cc:124
void dump_addr(FILE *file, const char *prefix, const void *addr)
Definition print-tree.cc:48
void indent_to(FILE *file, int column)
Definition print-tree.cc:208
void debug_body(const tree_node &ref)
Definition print-tree.cc:1211
void debug_raw(const tree_node &ref)
Definition print-tree.cc:1152
void print_decl_identifier(FILE *, tree, int flags)
Definition print-tree.cc:1060
void debug_tree(tree)
Definition print-tree.cc:1142
void debug_head(const tree_node &ref)
Definition print-tree.cc:1196
void debug_verbose(const tree_node &ref)
Definition vec.h:450