https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122531

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
If you just want shorter output, there's already -fno-diagnostics-show-caret
(or the super-option -fdiagnostics-plain-output which includes the former).
It's significantly less useful IMHO. It's useful if you want stable and machine
readable diagnostics, but it removes useful context in the form of source code
snippets. *In general* those snippets are useful, because it's easier to tell
at a glance what this is:

        929 |       operator=(const basic_string& __str)

rather than the same info in full:

    * candidate 1: 'constexpr std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char;
_Traits = std::char_traits<char>; _Alloc = std::allocator<char>]' (near match)

Reply via email to