[cfe-commits] [Patch] Add highlighting and type eliding when two templates are used in a diagnostics. Also, template tree printing.

Richard Trieu rtrieu at google.com
Fri Jun 22 19:16:05 PDT 2012


On Fri, Jun 22, 2012 at 5:43 PM, Richard Smith <richard at metafoo.co.uk>wrote:

> On Fri, Jun 22, 2012 at 4:59 PM, Richard Trieu <rtrieu at google.com> wrote:
> > Updated template diffing patch.
>
> Updated patch looks good to me, but I found a crash on this code while
> playing with it:
>
> template<typename ...T> struct S  {};
> template<typename T> using U = S<int, char, T>;
> int f(S<int, char, double>);
> int k = f(U<char>());
>

Fixed it.  Also added your example to the tests.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120622/4628cce7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: template-diffing4.patch
Type: application/octet-stream
Size: 62928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120622/4628cce7/attachment.obj>


More information about the cfe-commits mailing list