[cfe-users] How to determine if variable is templated?

Robert Ankeney via cfe-users cfe-users at lists.llvm.org
Sun Feb 16 17:43:19 PST 2020


Suppose I have some code like:

template<typename Type>
Type tVar;
function(tVar);

How can I determine that tVar is templated from the VarDecl or a
MemberExpr? I don't see any obvious function in QualType or Type.

Thanks,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20200216/2a886f3a/attachment.html>


More information about the cfe-users mailing list