On Sun, 2024-11-17 at 09:01 -0500, David Malcolm wrote:
> On Fri, 2024-11-15 at 20:02 -0500, David Malcolm wrote:
> > This patch is a followup to:
> >   "c++: use diagnostic nesting [PR116253]"
> > 
> > This patch tweaks how text output with experimental-nesting=yes
> > prints nested diagnostics, by omitting the leading "note: " from
> > nested notes.
> > 
> > This reduces the amount of visual cruft the user has to ignore when
> > reading C++ template errors; see the examples in the testsuite.
> > 
> > This doesn't affect the output for users who have not opted-in
> > to nested diagnostic-printing.
> > 
> > Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
> > OK for trunk?
> 
> A screenshot showing the effect of these patches can be seen here:
>   https://gcc.gnu.org/bugzilla/attachment.cgi?id=59611
> 
> As before, the patches currently require
>  -fdiagnostics-set-output=text:experimental-nesting=yes 
> to get the indented output.  I think this is big UX improvement, so
> I'm
> hoping that perhaps it can be the default for GCC

GCC 15, I meant to say.

>  (if we can make this
> output good enough; it only affects diagnsostics within an
> auto_diagnostic_nesting_level instance). 


Reply via email to