cxx-pretty-print.h revision 132718
161782Smjacob/* Interface for the GNU C++ pretty-printer. 261782Smjacob Copyright (C) 2003 Free Software Foundation, Inc. 361782Smjacob Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net> 461782Smjacob 561782SmjacobThis file is part of GCC. 661782Smjacob 761782SmjacobGCC is free software; you can redistribute it and/or modify it under 8the terms of the GNU General Public License as published by the Free 9Software Foundation; either version 2, or (at your option) any later 10version. 11 12GCC is distributed in the hope that it will be useful, but WITHOUT ANY 13WARRANTY; without even the implied warranty of MERCHANTABILITY or 14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15for more details. 16 17You should have received a copy of the GNU General Public License 18along with GCC; see the file COPYING. If not, write to the Free 19Software Foundation, 59 Temple Place - Suite 330, Boston, MA 2002111-1307, USA. */ 21 22#ifndef GCC_CXX_PRETTY_PRINT_H 23#define GCC_CXX_PRETTY_PRINT_H 24 25#include "c-pretty-print.h" 26 27#undef pp_c_base 28#define pp_c_base(PP) (&(PP)->c_base) 29 30typedef enum 31{ 32 /* Ask for an qualified-id. */ 33 pp_cxx_flag_default_argument = 1 << pp_c_flag_last_bit 34 35} cxx_pretty_printer_flags; 36 37typedef struct 38{ 39 c_pretty_printer c_base; 40 /* This is the enclosing scope of the entity being pretty-printed. */ 41 tree enclosing_scope; 42} cxx_pretty_printer; 43 44void pp_cxx_pretty_printer_init (cxx_pretty_printer *); 45 46void pp_cxx_declaration (cxx_pretty_printer *, tree); 47void pp_cxx_function_definition (cxx_pretty_printer *, tree); 48void pp_cxx_canonical_template_parameter (cxx_pretty_printer *, tree); 49void pp_cxx_statement (cxx_pretty_printer *, tree); 50 51 52#endif /* GCC_CXX_PRETTY_PRINT_H */ 53