[cfe-dev] get FieldDecl from FunctionDecl

Alejandro Jimenez whilealex at gmail.com
Tue Nov 5 13:23:44 PST 2013


Hello!

I got lost on documentation about FunctionDecl.

If I have

struct myStruct
{
   int param; <--- this is stored in a FieldDecl object
};
Question1?
in which Decl Object this structure is stored?

Now when I have

int foo(myStruct X) <--- this is stored in FunctionDecl


My problem is that I want to validate the FieldDecl object on a function
signature, so I want to iterate over this FieldDecl objects if
possible when reading a FunctionDecl class. Any ideas or examples how this
FieldDecl can be accessed from a FunctionDecl object.

Alejandro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131105/4f21d5dc/attachment.html>


More information about the cfe-dev mailing list