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

List:       cfe-dev
Subject:    Re: [cfe-dev] Disable #error?
From:       Sean Silva <silvas () purdue ! edu>
Date:       2014-01-23 19:19:32
Message-ID: CAHnXoamDW6kFZqPZyXuuO0GbXqHnOaajbXa3PsLkvyMVTnj7gQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Wed, Jan 22, 2014 at 3:41 AM, Jacob Carlborg <doob@me.com> wrote:

> On 2014-01-22 00:52, Sean Silva wrote:
>
>  Check it's SourceLocation (or whatever the libclang equivalent is). What
>> information do you need other than file and line?
>>
>
> How do I know if the origin of a declaration is in the current library or
> a completely different library?
>

By what file it is declared in? How else would you determine this? You can
get the complete file path of the containing file with <
http://clang.llvm.org/doxygen/classclang_1_1SourceManager.html#a1b7402699ef496ecc9b2db28a83f0c1b
>.

-- Sean Silva


>
> I need to somehow check the path of the header where the declaration
> originates from and somehow match it against the current working directory.
> Seems quite fragile, or do you have any other suggestion.
>
>
> --
> /Jacob Carlborg
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>

[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, \
Jan 22, 2014 at 3:41 AM, Jacob Carlborg <span dir="ltr">&lt;<a \
href="mailto:doob@me.com" target="_blank">doob@me.com</a>&gt;</span> wrote:<br> \
<blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div \
class="im">On 2014-01-22 00:52, Sean Silva wrote:<br>

<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 Check it&#39;s SourceLocation (or whatever the libclang equivalent is). What<br>
information do you need other than file and line?<br>
</blockquote>
<br></div>
How do I know if the origin of a declaration is in the current library or a \
completely different library?<br></blockquote><div><br></div><div>By what file it is \
declared in? How else would you determine this? You can get the complete file path of \
the containing file with &lt;<a \
href="http://clang.llvm.org/doxygen/classclang_1_1SourceManager.html#a1b7402699ef496ec \
c9b2db28a83f0c1b">http://clang.llvm.org/doxygen/classclang_1_1SourceManager.html#a1b7402699ef496ecc9b2db28a83f0c1b</a>&gt;.</div>
 <div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 <br>
I need to somehow check the path of the header where the declaration originates from \
and somehow match it against the current working directory. Seems quite fragile, or \
do you have any other suggestion.<div class=""><div class="h5"> <br>
<br>
-- <br>
/Jacob Carlborg<br>
<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">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/<u></u>mailman/listinfo/cfe-dev</a><br> \
</div></div></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