[cfe-dev] Matching Type to template
Daniel Dilts via cfe-dev
cfe-dev at lists.llvm.org
Wed Mar 16 14:07:29 PDT 2016
I have a type that I have gotten with this expression:
callExpr->getArg(i)->IgnoreImplicit()->getType()
I am matching it against a set of types that I want to process. Currently
I am doing a string compare with the result of getAsString() and the
desired type. This works for trivial types (int, float, etc.) but it
doesn't scale to more complex types.
How would I test to see if the type is an instantiation of std::vector, and
find the element type of the vector?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160316/a99d3e53/attachment.html>
More information about the cfe-dev
mailing list