On 08/05/17 17:51, David Malcolm wrote:
So I think it can work if we add a "needs quoting" flag to the
postprocessing phase, if we need to handle the case where %H and %I
ever appear without 'q' (and have the delayed handling stash that flag,
and do the quoting there).
I'll look at implementing that.
Perhaps this may also help to fix the quoting (and coloring) of typedefs?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62170
Is '-felide-type' a good name? Wouldn't something like
'-fdiagnostic-elide-template-args' be better?
Here I'm merely copying clang's option name.
http://clang.llvm.org/docs/UsersManual.html#cmdoption-fno-elide-type
We don't need to copy things from Clang when they are worse and they are surely
stuck now with some bad choices, like we are. Let's just copy the good bits :)
-fdiagnostics-show-template-tree is ok, but -felide-type sounds like an
optimization. Moreover, with modern command-line completion, it is easier to
partially complete -fdiagnostics- and see what options are there then press
'e', than partially complete '-f' and try to find the name of that option that
summarises the template arguments in diagnostics.
Cheers,
Manuel.