OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [cp/] [cxx-pretty-print.h] - Blame information for rev 756

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 710 jeremybenn
/* Interface for the GNU C++ pretty-printer.
2
   Copyright (C) 2003, 2004, 2005, 2007, 2009, 2010
3
   Free Software Foundation, Inc.
4
   Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
5
 
6
This file is part of GCC.
7
 
8
GCC is free software; you can redistribute it and/or modify it under
9
the terms of the GNU General Public License as published by the Free
10
Software Foundation; either version 3, or (at your option) any later
11
version.
12
 
13
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14
WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16
for more details.
17
 
18
You should have received a copy of the GNU General Public License
19
along with GCC; see the file COPYING3.  If not see
20
<http://www.gnu.org/licenses/>.  */
21
 
22
#ifndef GCC_CXX_PRETTY_PRINT_H
23
#define GCC_CXX_PRETTY_PRINT_H
24
 
25
#include "c-family/c-pretty-print.h"
26
 
27
#undef pp_c_base
28
#define pp_c_base(PP) (&(PP)->c_base)
29
 
30
typedef enum
31
{
32
  /* Ask for a qualified-id.  */
33
  pp_cxx_flag_default_argument = 1 << pp_c_flag_last_bit
34
 
35
} cxx_pretty_printer_flags;
36
 
37
typedef 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
 
44
#define pp_cxx_cv_qualifier_seq(PP, T)   \
45
   pp_c_type_qualifier_list (pp_c_base (PP), T)
46
 
47
#define pp_cxx_whitespace(PP)           pp_c_whitespace (pp_c_base (PP))
48
#define pp_cxx_left_paren(PP)           pp_c_left_paren (pp_c_base (PP))
49
#define pp_cxx_right_paren(PP)          pp_c_right_paren (pp_c_base (PP))
50
#define pp_cxx_left_brace(PP)           pp_c_left_brace (pp_c_base (PP))
51
#define pp_cxx_right_brace(PP)          pp_c_right_brace (pp_c_base (PP))
52
#define pp_cxx_left_bracket(PP)         pp_c_left_bracket (pp_c_base (PP))
53
#define pp_cxx_right_bracket(PP)        pp_c_right_bracket (pp_c_base (PP))
54
#define pp_cxx_dot(PP)                  pp_c_dot (pp_c_base (PP))
55
#define pp_cxx_ampersand(PP)            pp_c_ampersand (pp_c_base (PP))
56
#define pp_cxx_star(PP)                 pp_c_star (pp_c_base (PP))
57
#define pp_cxx_arrow(PP)                pp_c_arrow (pp_c_base (PP))
58
#define pp_cxx_semicolon(PP)            pp_c_semicolon (pp_c_base (PP))
59
#define pp_cxx_complement(PP)           pp_c_complement (pp_c_base (PP))
60
 
61
#define pp_cxx_ws_string(PP, I)         pp_c_ws_string (pp_c_base (PP), I)
62
#define pp_cxx_identifier(PP, I)        pp_c_identifier (pp_c_base (PP), I)
63
#define pp_cxx_tree_identifier(PP, T) \
64
  pp_c_tree_identifier (pp_c_base (PP), T)
65
 
66
void pp_cxx_pretty_printer_init (cxx_pretty_printer *);
67
void pp_cxx_begin_template_argument_list (cxx_pretty_printer *);
68
void pp_cxx_end_template_argument_list (cxx_pretty_printer *);
69
void pp_cxx_colon_colon (cxx_pretty_printer *);
70
void pp_cxx_separate_with (cxx_pretty_printer *, int);
71
 
72
void pp_cxx_declaration (cxx_pretty_printer *, tree);
73
void pp_cxx_canonical_template_parameter (cxx_pretty_printer *, tree);
74
void pp_cxx_trait_expression (cxx_pretty_printer *, tree);
75
void pp_cxx_va_arg_expression (cxx_pretty_printer *, tree);
76
void pp_cxx_offsetof_expression (cxx_pretty_printer *, tree);
77
void pp_cxx_userdef_literal (cxx_pretty_printer *, tree);
78
 
79
 
80
#endif /* GCC_CXX_PRETTY_PRINT_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.