[cfe-dev] Bugs 2746 and 3261

Paolo Bolzoni bolzoni at cs.unipr.it
Tue Jan 13 08:24:49 PST 2009


On Mon, 12 Jan 2009 21:42:28 +0100
Roberto Bagnara <bagnara at cs.unipr.it> wrote:

> > For PR3261, I'm not sure, but you might be able to pull some tricks
> > with location information.
> 
> Paolo, can you please look at that?

I am not sure that Eli meant, types do not have location information (at
least in the form of SourceLocation).

So when I am visiting a enum or struct type and I use getDecl(), I can get
the source location from the declaration, but I can't know if the source
point is where I am or not.

Am I wrong?

pb



More information about the cfe-dev mailing list