[cfe-dev] Disable #error?
Sean Silva
silvas at purdue.edu
Thu Jan 23 11:19:32 PST 2014
On Wed, Jan 22, 2014 at 3:41 AM, Jacob Carlborg <doob at 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 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/20140123/55973482/attachment.html>
More information about the cfe-dev
mailing list