[cfe-dev] SourceRange for FieldDecls

Nico Weber thakis at chromium.org
Fri Oct 29 08:15:34 PDT 2010


Hi,

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

Nico

On Fri, Oct 29, 2010 at 3:36 AM, Vladimir Kirillov <proger at uaoug.org.ua> wrote:
> 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.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



More information about the cfe-dev mailing list