[libclang] A consistent API for template parameters
So a while ago I submitted  in order to be able to introspect type
alias declarations' template arguments from libclang.
That worked, and it's consistent, but caused some regressions that
people relied on, like default template parameters not being reported
where they were before (see ).
I thought that fixing this was going to be as easy as checking first
what libclang 3.9 used to check, but Richard Smith pointed out that
that was inconsistent (which I agree with), so for now we've reverted
back to the libclang 4.0 behavior at.
I think this is ok, because the changes that people that depended on the
original behavior of that API need to do are minimal AIUI (you only need
to get the canonical type), and if you relied on that behavior on
template aliases it's pretty likely you have bugs when introspecting
template alias that desugar into a record declaration.
But that leaves the question of whether there should be a nicer/more
explicit API, and how that would look like, so I'm sending this mail in
case anyone has any opinion on the matter.