[cfe-dev] Checking Datatype of ParmVarDecl

Tobi Popoola via cfe-dev cfe-dev at lists.llvm.org
Wed Jul 8 12:08:01 PDT 2020


Hi,


Is there a way to check the struct type of a ParmVarDecl object.  Here is a snippet of what I have been trying to do so far


auto ParamStructType = VarDecl->getOriginalType().getPointeeCXXRecordDec();

// trying to check if ParamStructType is some 'struct foo’


Tobi 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200708/2f1bab41/attachment.html>


More information about the cfe-dev mailing list