<div><br></div><div>Hello all,<br></div><div><br></div><div>I have a clang::ClassTemplateDecl object with a single template argument. I want to specialise it for a certain type (void*). I use the following code:<br></div><div><br></div><div>        clang::TemplateArgument t(C->getASTContext().VoidPtrTy);<br></div><div>        auto CTSVoidStar = clang::ClassTemplateSpecializationDecl::Create(C->getASTContext(),<br></div><div>            clang::TagTypeKind::TTK_Class, CTS->getDeclContext(), clang::SourceLocation(), clang::SourceLocation(),<br></div><div>            CTS->getSpecializedTemplate(), &t, CTS->getTemplateArgs().size(), CTS);<br></div><div><br></div><div>where CTS->getSpecializedTemplate() is my ClassTemplateDecl. The problem with it is while according to CTSVoidStar->dump() it looks correct, it lacks any functions, and it's the functions that I need - their mangled names in particular. I know for sure that my ClassTemplateDecl does have functions. My question is how to get a complete specialisation, with all members and not just the class itself. Thank you.<br></div><div><br></div><div><br></div><div>Regards,<br></div><div>Dimitar Dobrev<br></div>