aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cxx-pretty-print.h
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2004-03-21 23:55:03 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2004-03-21 23:55:03 +0000
commitb9b44fb9f8a93235405ff70ee339e7e8f7f6d4f9 (patch)
tree2e58fc55718cfb98106df9ec9e9dac796b80a2e8 /gcc/cp/cxx-pretty-print.h
parent1c7b1b7e259afc4c210dc55f407a05f75c3e7122 (diff)
downloadgcc-b9b44fb9f8a93235405ff70ee339e7e8f7f6d4f9.zip
gcc-b9b44fb9f8a93235405ff70ee339e7e8f7f6d4f9.tar.gz
gcc-b9b44fb9f8a93235405ff70ee339e7e8f7f6d4f9.tar.bz2
pretty-print.c (pp_base_maybe_space): New function.
* pretty-print.c (pp_base_maybe_space): New function. * pretty-print.h (pp_base_maybe_space): Declare. (pp_maybe_space): New macro. cp/ * error.c (enum pad): Remove. (dump_qualifiers): Likewise. (dump_type): Replace dump_qualifiers with * pp_cxx_cv_qualifier_seq. (dump_aggr_type): Likewise. (dump_type_suffix): Likewise. (dump_simple_decl): Likewise. (dump_function_decl): Likewise. (cv_to_string): Likewise. (dump_type_prefix): Likewise. Adjust return void. * cxx-pretty-print.c (pp_cxx_cv_qualifier_seq): Move to cxx_pretty_print.h. (pp_cxx_template_keyword_if_needed): Document. (pp_cxx_qualified_id): Document case FUNCTION_DECL. Tidy. (pp_cxx_expression): Handle NON_DEPENDENT_EXPR and MUST_NOT_THROW_EXPR. testsuite/ * g++.dg/template/qualttp20.C: Adjust dg- regexp. From-SVN: r79796
Diffstat (limited to 'gcc/cp/cxx-pretty-print.h')
-rw-r--r--gcc/cp/cxx-pretty-print.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/cxx-pretty-print.h b/gcc/cp/cxx-pretty-print.h
index b47eff0..6c9dfb7 100644
--- a/gcc/cp/cxx-pretty-print.h
+++ b/gcc/cp/cxx-pretty-print.h
@@ -41,6 +41,9 @@ typedef struct
tree enclosing_scope;
} cxx_pretty_printer;
+#define pp_cxx_cv_qualifier_seq(PP, T) \
+ pp_c_type_qualifier_list (pp_c_base (PP), T)
+
void pp_cxx_pretty_printer_init (cxx_pretty_printer *);
void pp_cxx_declaration (cxx_pretty_printer *, tree);