<div dir="ltr">Dear all,<div><br></div><div>I want to access the number of parameters given to a template class during object creation in <i>collectTemplateParams</i>() ( in CGDebugInfo.cpp). </div><div><br></div><div>Ex</div><div>foo<int,> a; // I want 1<br></div><div>foo<int,char> b; // I want 2</div><div>assuming <i>foo</i> is template class and its default parameters are <<i>char,char</i>></div><div><br></div><div>In
<i>collectTemplateParams</i>(), I can find actual number of parameters, which is after desugaring the <i>templateSpecialization</i> type.</div><div><br></div><div>Is there any way that can give me the parameters count?</div><div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><div>Thanking You<br></div>Awanish Pandey<br></div>PhD, CSE<br></div>IIT Kanpur<br></div></div></div></div></div></div>