[cfe-dev] SourceRange for FieldDecls

Vladimir Kirillov proger at uaoug.org.ua
Fri Oct 29 03:36:30 PDT 2010


Hello, cfe-dev!
There's a question:

Given a FieldDecl i'm trying to detect whether a certain macro was
expanded within the declaration (for instance, a macro was used to
specify an array size within a struct).

I'm retrieving a SourceRange of the FD, however it reports
the end to be equal to the beginning:
range: struct.c:29:11 -- struct.c:29:11


Is this the right way?

Thanks.



More information about the cfe-dev mailing list