[cfe-users] How to determine if variable is templated?
David Blaikie via cfe-users
cfe-users at lists.llvm.org
Mon Feb 17 09:28:51 PST 2020
Guessing these sort of functions would be relevant:
https://clang.llvm.org/doxygen/classclang_1_1VarDecl.html#a617bcdd5baaab0ccba71a96cd9c2ed03
On Sun, Feb 16, 2020 at 5:43 PM Robert Ankeney via cfe-users <
cfe-users at lists.llvm.org> wrote:
> 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
>
> _______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20200217/fda6a48f/attachment.html>
More information about the cfe-users
mailing list