[cfe-dev] Getting the location of the identifier in TagDecl and RecordDecl

Lukhnos Liu lukhnos at lukhnos.org
Fri May 25 13:21:41 PDT 2012

On May 25, 2012, at 12:13 PM, Yang Chen wrote:
> You may want to use getLocation().
> Also, in your example, seems using tok::identifier with getLocForEndOfToken is more appropriate?
> - Yang

I actually tried that, but it also gave me an invalid location. Is there any possible cause for that?

getLocation() works -- thanks!


More information about the cfe-dev mailing list