[cfe-dev] [AST] Multiple declaration

Krystyna Gajczyk via cfe-dev cfe-dev at lists.llvm.org
Tue May 31 02:11:19 PDT 2016


Hi,

I have a question about something in AST which I found to be kind of
awkward. When I have in my code:

typedef bla1, bla2, bla3;

or

typedef bla1;
typedef bla2;
typedef bla3;

the AST is the same for both possibilities. Why multiple declaration in one
typedef has no  DeclStmt as a parent? It has DeclStmt parent only if
typedef is inside of a function. Is there any other way to check if
declaration is single or not?

Regards,
Krystyna Gajczyk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160531/ecf45727/attachment.html>


More information about the cfe-dev mailing list