re PR c++/87364 (Pretty print of enumerator never prints the id, always falls back...
authorWill Wray <wjwray@gmail.com>
Fri, 12 Oct 2018 03:35:48 +0000 (03:35 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 12 Oct 2018 03:35:48 +0000 (21:35 -0600)
commit79371671cb49d19c41a75d203420f65c39c12b21
treeba6b0fbe86184862b329e056b407eb62eab5ee58
parent0b8c3649a512c4cd1a846a2f3e86150e824cbb41
re PR c++/87364 (Pretty print of enumerator never prints the id, always falls back to C-style cast output)

PR c++/87364
* c-pretty-print.h (pp_c_type_cast): Prototype.
(pp_c_integer_constant): Likewise.
* c-pretty-print.c (pp_c_type_cast): No longer static.
(pp_c_integer_constant): Likewise.
(pp_c_enumeration_constant): Fix loop termination when finding
name of constant.  No longer returns a value.  Call
pp_c_integer_constant.
(c_pretty_printer::constant): Update for changes to
pp_c_enumeration_constant.

PR c++/87364
* cxx-pretty-print.c (pp_cxx_enumeration_constant): New function.
(cxx_pretty_printer::constant): Use it.

From-SVN: r265077
gcc/c-family/ChangeLog
gcc/c-family/c-pretty-print.c
gcc/c-family/c-pretty-print.h
gcc/cp/ChangeLog
gcc/cp/cxx-pretty-print.c