SourceRange for FieldDecls

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.

Hi,

See http://clang.llvm.org/docs/InternalsManual.html#SourceRange :slight_smile:

Nico

There it is (: !

Thanks!