How to shorten error messages and compiler warnings? Especially with errors in the templates, first there is a bunch of lines, in which file the instantiation broke, and only then the line that has the problem, so you have to scroll in the IDE. Standard library files don't interest me, only project files.

In particular, they are interested in gcc and clang.

  • one
    The -Wfatal-errors flag can help - int3

1 answer 1

Once I had the same desire. The most annoying thing was that std :: string was turned into a huge footwoman. Therefore, I took the well-known colorgcc script and added a replacement there. The output has become noticeably smaller and more beautiful. Also, this script describes how to connect it correctly, so that everything would work well. But what exactly needs to be cut is already visible to you. But perhaps you need not to look for the lines that are cut, but to look for the lines that need to be left.