[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    Re: [cfe-dev] Easy way to find out if the SourceLoc is in main file
From:       Manuel Klimek <klimek () google ! com>
Date:       2012-11-29 9:31:43
Message-ID: CAOsfVvmRgA1nMq6B7u-1CX62DhG23MyuyjMtuP-0DP8NpbQDtw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Is SourceManager::isFromMainFile what you're looking for?


On Thu, Nov 29, 2012 at 9:03 AM, Ramneek Handa <ramneekhanda@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@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>

[Attachment #5 (text/html)]

<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt">Is \
SourceManager::isFromMainFile what you&#39;re looking for?<div \
class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 29, 2012 at 9:03 AM, \
Ramneek Handa <span dir="ltr">&lt;<a href="mailto:ramneekhanda@gmail.com" \
target="_blank">ramneekhanda@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">  <div>
                    Hi Guys,
                </div><div>  I know there is a function to find out if SourceLoc is \
in system headers and also if it is before some other SourceLoc. \
</div><div><br></div><div>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)?</div>

                <div><div><br></div><div>Regards,</div><div>Ramneek</div></div>
            <br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" \
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br> \
<br></blockquote></div><br></div></div>



_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic