When working with templates in C++ any errors cause the compiler to emit a lot of output. In most cases when I am working on something most of that information is noise and I have to scroll around looking for the info I am interested in, for example:
- Every template candidate is listed. I rarely have use for this long list and it just clutters the output.
- Aliases for template specializations are expanded, e.g.
std::string
is written asstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
, or expanded typedefs / alias declarations. I would prefer to have them unexpanded for easier reading.
Is it possible in either g++ or clang to reduce any of this for shorter/simpler output?
Obviously the information can be important, but then I would prefer to compile again with more verbosity and keep it short and simple by default.