<div dir="ltr">Hi, <div><br></div><div>Let's say we have code like this,</div><div><br></div><div>class MyClass {};</div><div>vector<MyClass> a;</div><div><br></div><div>I would like to get MyClass out as a string. We could use this matcher to get the TemplateArgument. </div><div><br></div><div>varDecl(hasType(classTemplateSpecializationDecl(hasTemplateArgument(0, templateArgument().bind("TemplateType")))))<br></div><div><br></div><div>We could also use xxx->getAsType().getAsString() to get the type string. But the thing is I can only get the type "class MyClass". How can I get only "MyClass" without "class"? </div><div><br></div><div>Thanks!</div><div>Best regards,</div><div>Han</div></div>