1*e4b17023SJohn Marino /* Various declarations for language-independent pretty-print 2*e4b17023SJohn Marino subroutines that are only for use in the compilers proper and not 3*e4b17023SJohn Marino the driver or other programs. 4*e4b17023SJohn Marino Copyright (C) 2002, 2003, 2004, 2007, 2008, 2009, 2010 5*e4b17023SJohn Marino Free Software Foundation, Inc. 6*e4b17023SJohn Marino 7*e4b17023SJohn Marino This file is part of GCC. 8*e4b17023SJohn Marino 9*e4b17023SJohn Marino GCC is free software; you can redistribute it and/or modify it under 10*e4b17023SJohn Marino the terms of the GNU General Public License as published by the Free 11*e4b17023SJohn Marino Software Foundation; either version 3, or (at your option) any later 12*e4b17023SJohn Marino version. 13*e4b17023SJohn Marino 14*e4b17023SJohn Marino GCC is distributed in the hope that it will be useful, but WITHOUT ANY 15*e4b17023SJohn Marino WARRANTY; without even the implied warranty of MERCHANTABILITY or 16*e4b17023SJohn Marino FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17*e4b17023SJohn Marino for more details. 18*e4b17023SJohn Marino 19*e4b17023SJohn Marino You should have received a copy of the GNU General Public License 20*e4b17023SJohn Marino along with GCC; see the file COPYING3. If not see 21*e4b17023SJohn Marino <http://www.gnu.org/licenses/>. */ 22*e4b17023SJohn Marino 23*e4b17023SJohn Marino #ifndef GCC_TREE_PRETTY_PRINT_H 24*e4b17023SJohn Marino #define GCC_TREE_PRETTY_PRINT_H 25*e4b17023SJohn Marino 26*e4b17023SJohn Marino #include "pretty-print.h" 27*e4b17023SJohn Marino 28*e4b17023SJohn Marino #define pp_tree_identifier(PP, T) \ 29*e4b17023SJohn Marino pp_base_tree_identifier (pp_base (PP), T) 30*e4b17023SJohn Marino 31*e4b17023SJohn Marino #define pp_unsupported_tree(PP, T) \ 32*e4b17023SJohn Marino pp_verbatim (pp_base (PP), "#%qs not supported by %s#", \ 33*e4b17023SJohn Marino tree_code_name[(int) TREE_CODE (T)], __FUNCTION__) 34*e4b17023SJohn Marino 35*e4b17023SJohn Marino #define pp_ti_abstract_origin(TI) ((tree *) (TI)->x_data) 36*e4b17023SJohn Marino 37*e4b17023SJohn Marino extern void pp_base_tree_identifier (pretty_printer *, tree); 38*e4b17023SJohn Marino 39*e4b17023SJohn Marino /* In tree-pretty-print.c */ 40*e4b17023SJohn Marino extern void print_declaration (pretty_printer *, tree, int, int); 41*e4b17023SJohn Marino extern int dump_generic_node (pretty_printer *, tree, int, int, bool); 42*e4b17023SJohn Marino extern void print_generic_stmt (FILE *, tree, int); 43*e4b17023SJohn Marino extern void print_generic_stmt_indented (FILE *, tree, int, int); 44*e4b17023SJohn Marino extern void print_generic_expr (FILE *, tree, int); 45*e4b17023SJohn Marino extern void print_generic_decl (FILE *, tree, int); 46*e4b17023SJohn Marino extern void debug_c_tree (tree); 47*e4b17023SJohn Marino extern void dump_omp_clauses (pretty_printer *, tree, int, int); 48*e4b17023SJohn Marino extern void print_call_name (pretty_printer *, tree, int); 49*e4b17023SJohn Marino extern void debug_generic_expr (tree); 50*e4b17023SJohn Marino extern void debug_generic_stmt (tree); 51*e4b17023SJohn Marino extern void debug_tree_chain (tree); 52*e4b17023SJohn Marino extern void percent_K_format (text_info *); 53*e4b17023SJohn Marino extern void dump_function_header (FILE *, tree, int); 54*e4b17023SJohn Marino 55*e4b17023SJohn Marino /* In toplev.c */ 56*e4b17023SJohn Marino extern bool default_tree_printer (pretty_printer *, text_info *, const char *, 57*e4b17023SJohn Marino int, bool, bool, bool); 58*e4b17023SJohn Marino 59*e4b17023SJohn Marino #endif /* ! GCC_TREE_PRETTY_PRINT_H */ 60