Re: [PATCH 08/49] Introduce pretty_printer::clone vfunc

2019-12-07 Thread Jeff Law
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_sho

[PATCH 08/49] Introduce pretty_printer::clone vfunc

2019-11-15 Thread David Malcolm
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 cal