annotate gcc/cp/cxx-pretty-print.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Interface for the GNU C++ pretty-printer.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 2003-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 This file is part of GCC.
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 GCC is free software; you can redistribute it and/or modify it under
kono
parents:
diff changeset
8 the terms of the GNU General Public License as published by the Free
kono
parents:
diff changeset
9 Software Foundation; either version 3, or (at your option) any later
kono
parents:
diff changeset
10 version.
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
kono
parents:
diff changeset
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
kono
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
kono
parents:
diff changeset
15 for more details.
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
18 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
19 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 #ifndef GCC_CXX_PRETTY_PRINT_H
kono
parents:
diff changeset
22 #define GCC_CXX_PRETTY_PRINT_H
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 #include "c-family/c-pretty-print.h"
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 enum cxx_pretty_printer_flags
kono
parents:
diff changeset
27 {
kono
parents:
diff changeset
28 /* Ask for a qualified-id. */
kono
parents:
diff changeset
29 pp_cxx_flag_default_argument = 1 << pp_c_flag_last_bit
kono
parents:
diff changeset
30 };
kono
parents:
diff changeset
31
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
32 class cxx_pretty_printer : public c_pretty_printer
111
kono
parents:
diff changeset
33 {
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
34 public:
111
kono
parents:
diff changeset
35 cxx_pretty_printer ();
kono
parents:
diff changeset
36
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
37 pretty_printer *clone () const OVERRIDE;
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
38
111
kono
parents:
diff changeset
39 void constant (tree);
kono
parents:
diff changeset
40 void id_expression (tree);
kono
parents:
diff changeset
41 void primary_expression (tree);
kono
parents:
diff changeset
42 void postfix_expression (tree);
kono
parents:
diff changeset
43 void unary_expression (tree);
kono
parents:
diff changeset
44 void multiplicative_expression (tree);
kono
parents:
diff changeset
45 void conditional_expression (tree);
kono
parents:
diff changeset
46 void assignment_expression (tree);
kono
parents:
diff changeset
47 void expression (tree);
kono
parents:
diff changeset
48 void type_id (tree);
kono
parents:
diff changeset
49 void statement (tree);
kono
parents:
diff changeset
50 void declaration (tree);
kono
parents:
diff changeset
51 void declaration_specifiers (tree);
kono
parents:
diff changeset
52 void simple_type_specifier (tree);
kono
parents:
diff changeset
53 void function_specifier (tree);
kono
parents:
diff changeset
54 void declarator (tree);
kono
parents:
diff changeset
55 void direct_declarator (tree);
kono
parents:
diff changeset
56 void abstract_declarator (tree);
kono
parents:
diff changeset
57 void direct_abstract_declarator (tree);
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 /* This is the enclosing scope of the entity being pretty-printed. */
kono
parents:
diff changeset
60 tree enclosing_scope;
kono
parents:
diff changeset
61 };
kono
parents:
diff changeset
62
kono
parents:
diff changeset
63 #define pp_cxx_cv_qualifier_seq(PP, T) \
kono
parents:
diff changeset
64 pp_c_type_qualifier_list (PP, T)
kono
parents:
diff changeset
65 #define pp_cxx_cv_qualifiers(PP, CV, FT) \
kono
parents:
diff changeset
66 pp_c_cv_qualifiers (PP, CV, FT)
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 #define pp_cxx_whitespace(PP) pp_c_whitespace (PP)
kono
parents:
diff changeset
69 #define pp_cxx_left_paren(PP) pp_c_left_paren (PP)
kono
parents:
diff changeset
70 #define pp_cxx_right_paren(PP) pp_c_right_paren (PP)
kono
parents:
diff changeset
71 #define pp_cxx_left_brace(PP) pp_c_left_brace (PP)
kono
parents:
diff changeset
72 #define pp_cxx_right_brace(PP) pp_c_right_brace (PP)
kono
parents:
diff changeset
73 #define pp_cxx_left_bracket(PP) pp_c_left_bracket (PP)
kono
parents:
diff changeset
74 #define pp_cxx_right_bracket(PP) pp_c_right_bracket (PP)
kono
parents:
diff changeset
75 #define pp_cxx_dot(PP) pp_c_dot (PP)
kono
parents:
diff changeset
76 #define pp_cxx_ampersand(PP) pp_c_ampersand (PP)
kono
parents:
diff changeset
77 #define pp_cxx_star(PP) pp_c_star (PP)
kono
parents:
diff changeset
78 #define pp_cxx_arrow(PP) pp_c_arrow (PP)
kono
parents:
diff changeset
79 #define pp_cxx_semicolon(PP) pp_c_semicolon (PP)
kono
parents:
diff changeset
80 #define pp_cxx_complement(PP) pp_c_complement (PP)
kono
parents:
diff changeset
81
kono
parents:
diff changeset
82 #define pp_cxx_ws_string(PP, I) pp_c_ws_string (PP, I)
kono
parents:
diff changeset
83 #define pp_cxx_identifier(PP, I) pp_c_identifier (PP, I)
kono
parents:
diff changeset
84 #define pp_cxx_tree_identifier(PP, T) \
kono
parents:
diff changeset
85 pp_c_tree_identifier (PP, T)
kono
parents:
diff changeset
86
kono
parents:
diff changeset
87 void pp_cxx_begin_template_argument_list (cxx_pretty_printer *);
kono
parents:
diff changeset
88 void pp_cxx_end_template_argument_list (cxx_pretty_printer *);
kono
parents:
diff changeset
89 void pp_cxx_colon_colon (cxx_pretty_printer *);
kono
parents:
diff changeset
90 void pp_cxx_separate_with (cxx_pretty_printer *, int);
kono
parents:
diff changeset
91
kono
parents:
diff changeset
92 void pp_cxx_canonical_template_parameter (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
93 void pp_cxx_trait_expression (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
94 void pp_cxx_va_arg_expression (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
95 void pp_cxx_offsetof_expression (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
96 void pp_cxx_addressof_expression (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
97 void pp_cxx_userdef_literal (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
98 void pp_cxx_requires_clause (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
99 void pp_cxx_requires_expr (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
100 void pp_cxx_simple_requirement (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
101 void pp_cxx_type_requirement (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
102 void pp_cxx_compound_requirement (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
103 void pp_cxx_nested_requirement (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
104 void pp_cxx_predicate_constraint (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
105 void pp_cxx_expression_constraint (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
106 void pp_cxx_type_constraint (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
107 void pp_cxx_implicit_conversion_constraint (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
108 void pp_cxx_argument_deduction_constraint (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
109 void pp_cxx_exception_constraint (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
110 void pp_cxx_parameterized_constraint (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
111 void pp_cxx_conjunction (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
112 void pp_cxx_disjunction (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
113 void pp_cxx_constraint (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
114 void pp_cxx_constrained_type_spec (cxx_pretty_printer *, tree);
kono
parents:
diff changeset
115
kono
parents:
diff changeset
116 #endif /* GCC_CXX_PRETTY_PRINT_H */