1 /* Implementation of subroutines for the GNU C++ pretty-printer.
2 Copyright (C) 2003 Free Software Foundation, Inc.
3 Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
24 #include "coretypes.h"
27 #include "cxx-pretty-print.h"
33 pp_cxx_declaration (cxx_pretty_printer *pp, tree t)
35 pp_unsupported_tree (pp, t);
39 pp_cxx_declaration_specifiers (cxx_pretty_printer *pp, tree t)
41 pp_unsupported_tree (pp, t);
45 pp_cxx_type_specifier (cxx_pretty_printer *pp, tree t)
47 pp_unsupported_tree (pp, t);
51 pp_cxx_declarator (cxx_pretty_printer *pp, tree t)
53 pp_unsupported_tree (pp, t);
57 pp_cxx_direct_declarator (cxx_pretty_printer *pp, tree t)
59 pp_unsupported_tree (pp, t);
63 pp_cxx_parameter_declaration (cxx_pretty_printer *pp, tree t)
65 pp_unsupported_tree (pp, t);
69 pp_cxx_type_id (cxx_pretty_printer *pp, tree t)
71 pp_unsupported_tree (pp, t);
77 pp_cxx_statement (cxx_pretty_printer *pp, tree t)
79 pp_unsupported_tree (pp, t);
85 pp_cxx_primary_expression (cxx_pretty_printer *pp, tree t)
87 pp_unsupported_tree (pp, t);
91 pp_cxx_postfix_expression (cxx_pretty_printer *pp, tree t)
93 pp_unsupported_tree (pp, t);
97 pp_cxx_unary_expression (cxx_pretty_printer *pp, tree t)
99 pp_unsupported_tree (pp, t);
103 pp_cxx_initializer (cxx_pretty_printer *pp, tree t)
105 pp_unsupported_tree (pp, t);
109 pp_cxx_multiplicatice_expression (cxx_pretty_printer *pp, tree t)
111 pp_unsupported_tree (pp, t);
115 pp_cxx_conditional_expression (cxx_pretty_printer *pp, tree t)
117 pp_unsupported_tree (pp, t);
121 pp_cxx_assignment_expression (cxx_pretty_printer *pp, tree t)
123 pp_unsupported_tree (pp, t);
127 pp_cxx_expression (cxx_pretty_printer *pp, tree t)
129 pp_unsupported_tree (pp, t);
134 typedef c_pretty_print_fn pp_fun;
137 pp_cxx_pretty_printer_init (cxx_pretty_printer *pp)
139 pp_c_pretty_printer_init (pp_c_base (pp));
141 pp->c_base.declaration = (pp_fun) pp_cxx_declaration;
142 pp->c_base.declaration_specifiers = (pp_fun) pp_cxx_declaration_specifiers;
143 pp->c_base.type_specifier = (pp_fun) pp_cxx_type_specifier;
144 pp->c_base.declarator = (pp_fun) pp_cxx_declarator;
145 pp->c_base.direct_declarator = (pp_fun) pp_cxx_direct_declarator;
146 pp->c_base.parameter_declaration = (pp_fun) pp_cxx_parameter_declaration;
147 pp->c_base.type_id = (pp_fun) pp_cxx_type_id;
148 pp->c_base.statement = (pp_fun) pp_cxx_statement;
149 pp->c_base.primary_expression = (pp_fun) pp_cxx_primary_expression;
150 pp->c_base.postfix_expression = (pp_fun) pp_cxx_postfix_expression;
151 pp->c_base.unary_expression = (pp_fun) pp_cxx_unary_expression;
152 pp->c_base.initializer = (pp_fun) pp_cxx_initializer;
153 pp->c_base.multiplicative_expression = (pp_fun) pp_cxx_multiplicatice_expression;
154 pp->c_base.conditional_expression = (pp_fun) pp_cxx_conditional_expression;
155 pp->c_base.assignment_expression = (pp_fun) pp_cxx_assignment_expression;
156 pp->enclosing_scope = NULL;