[cfe-dev] Easy way to find out if the SourceLoc is in main file
klimek at google.com
Thu Nov 29 01:31:43 PST 2012
Is SourceManager::isFromMainFile what you're looking for?
On Thu, Nov 29, 2012 at 9:03 AM, Ramneek Handa <ramneekhanda at gmail.com>wrote:
> Hi Guys,
> I know there is a function to find out if SourceLoc is in system headers
> and also if it is before some other SourceLoc.
> My Question is there anyway to tell if it is in the main file that we are
> parsing (typically a cpp but could be a header)?
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev