[cfe-dev] How to get source range from MacroInfo?

Chris Lattner clattner at apple.com
Mon Apr 20 13:24:15 PDT 2009


On Apr 20, 2009, at 12:42 PM, Alexei Svitkine wrote:

> What's the best way to get the source range information from a  
> MacroInfo from the Preprocessor?
>
> The start location is available, but how would one go about getting  
> the end location for the macro definition?

We don't currently store this, but it would make sense to add.  Please  
prepare a patch, thanks!

-Chris



More information about the cfe-dev mailing list