[cfe-dev] How can I get the template argument in a TypedefDecl ?
Manasij Mukherjee
manasij7479 at gmail.com
Tue Aug 5 07:53:54 PDT 2014
Hi,
For the following code:
template <typename T>
class A {
};
class B {};
typedef A<B> C;
I need to access this 'B' template argument, as a Type pointer, maybe.
(Ultimately, I only need its name as a string)
Can anyone point me to the right way to get this information ?
I can get a QualType for A<B> with the getTypeSourceInfo()->getType()
functions.
But what to do after that, I can not figure out.
Manasij Mukherjee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140805/f65cf8b7/attachment.html>
More information about the cfe-dev
mailing list