PR c++/12114
[official-gcc.git] / gcc / cp / cxx-pretty-print.h
blobd75c2827f950d37219b922182b6d954df8352938
1 /* Interface 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
10 version.
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
15 for more details.
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
20 02111-1307, USA. */
22 #ifndef GCC_CXX_PRETTY_PRINT_H
23 #define GCC_CXX_PRETTY_PRINT_H
25 #include "c-pretty-print.h"
27 #undef pp_c_base
28 #define pp_c_base(PP) (&(PP)->c_base)
30 typedef enum
32 /* Ask for an qualified-id. */
33 pp_cxx_flag_qualified_id = 1 << pp_c_flag_last_bit,
34 pp_cxx_flag_global_scope = 1 << (pp_c_flag_last_bit + 1),
35 pp_cxx_flag_default_argument = 1 << (pp_c_flag_last_bit + 2)
37 } cxx_pretty_printer_flags;
39 typedef struct
41 c_pretty_printer c_base;
42 /* This is the enclosing scope of the entity being pretty-printed. */
43 tree enclosing_scope;
44 } cxx_pretty_printer;
46 void pp_cxx_pretty_printer_init (cxx_pretty_printer *);
48 void pp_cxx_declaration (cxx_pretty_printer *, tree);
49 void pp_cxx_function_definition (cxx_pretty_printer *, tree);
50 void pp_cxx_canonical_template_parameter (cxx_pretty_printer *, tree);
51 void pp_cxx_statement (cxx_pretty_printer *, tree);
54 #endif /* GCC_CXX_PRETTY_PRINT_H */