[cfe-dev] Easy way to find out if the SourceLoc is in main file

Manuel Klimek 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)?
>
> Regards,
> Ramneek
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121129/f3441689/attachment.html>


More information about the cfe-dev mailing list