Open Quuxplusone opened 7 years ago
I think I have a potential fix for this, building right now...
Patch at https://reviews.llvm.org/D31732
To whomever it concerns: Is it possible for this regression fix (assuming the patch is accepted) to be included in a 4.X point release?
Thanks!
(In reply to Nick Fitzgerald from comment #3)
> To whomever it concerns: Is it possible for this regression fix (assuming
> the patch is accepted) to be included in a 4.X point release?
Follow instructions in http://lists.llvm.org/pipermail/llvm-dev/2017-
March/111530.html
Given this test case with a template definition using a default template type parameter:
In libclang 3.9, I get a cursor for
bar
's template instantiation like this:Then, using
clang_Type_getNumTemplateArguments
andclang_Type_getTemplateArgumentAsType
, I get these template arguments:In contrast, with libclang >= 4.0, I get only the explicit template argument, not the default type:
Here is the result of bisection on the git monorepo: