On Fri, 2019-11-15 at 20:22 -0500, David Malcolm wrote: > This patch provides a way to clone a pretty_printer. > > This is needed so that we can capture text in a label_text and make > layout decisions based on it, using the policy of global_dc's > printer, > whilst within a call to diagnostic_show_locus. We can't print with > the pretty_printer itself within a call to diagnostic_show_locus > since > it has partly-buffered content. > > gcc/c-family/ChangeLog: > * c-pretty-print.c (c_pretty_printer::clone): New vfunc > implementation. > * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl. > > gcc/cp/ChangeLog: > * cxx-pretty-print.c (cxx_pretty_printer::clone): New vfunc > implementation. > * cxx-pretty-print.h (cxx_pretty_printer::clone): New vfunc > decl. > * error.c (cxx_format_postprocessor::clone): New vfunc. > > gcc/ChangeLog: > * pretty-print.c (pretty_printer::pretty_printer): New copy- > ctor. > (pretty_printer::clone): New vfunc implementation. > * pretty-print.h (format_postprocessor::clone): New pure vfunc > decl. > (pretty_printer::pretty_printer): New copy-ctor decl. > (pretty_printer::clone): New vfunc decl. OK jeff >
- Re: [PATCH 06/49] timevar.h: add auto_client_timeva... David Malcolm
- [PATCH 05/49] vec.h: add auto_delete_vec David Malcolm
- Re: [PATCH 05/49] vec.h: add auto_delete_vec Martin Sebor
- [PATCH 02/49] analyzer: internal documentation David Malcolm
- [PATCH 10/49] Add -fdiagnostics-nn-line-numbers David Malcolm
- Re: [PATCH 10/49] Add -fdiagnostics-nn-line-numbers Martin Sebor
- Re: [PATCH 10/49] Add -fdiagnostics-nn-line-numbers Martin Sebor
- [PATCH 07/49] Replace label_text ctor with "borrow"... David Malcolm
- [PATCH 08/49] Introduce pretty_printer::clone vfunc David Malcolm
- Re: [PATCH 08/49] Introduce pretty_printer::clone vfunc Jeff Law
- [PATCH 13/49] function-tests.c: expose selftest::make_fndecl... David Malcolm
- [PATCH 14/49] hash-map-tests.c: add a selftest involving int... David Malcolm
- [PATCH 11/49] Add diagnostic_metadata and CWE support David Malcolm
- Re: [PATCH 11/49] Add diagnostic_metadata and CWE suppo... Martin Sebor
- Re: [PATCH 11/49] Add diagnostic_metadata and CWE s... David Malcolm
- Re: [PATCH 11/49] Add diagnostic_metadata and C... Martin Sebor
- Re: [PATCH 11/49] Add diagnostic_metadata a... David Malcolm
- [PATCH 09/49] gimple const-correctness fixes David Malcolm