[cfe-dev] context of file given start and end StartLocation

Chris Lattner clattner at apple.com
Mon Aug 16 08:50:54 PDT 2010


On Aug 15, 2010, at 7:25 PM, manavender reddy wrote:

> Hi,
> 
> I was wondering is it possible to get text from file given start and end locations (SourceLocation).

Sure, use the SourceManager::getCharacterData method.

-Chris





More information about the cfe-dev mailing list