Open llvmbot opened 7 years ago
llvm/llvm-bugzilla-archive#32794
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
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!
Patch at https://reviews.llvm.org/D31732
I think I have a potential fix for this, building right now...
Extended Description
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: