[cfe-dev] Disable #error?

Sean Silva silvas at purdue.edu
Fri Jan 24 17:22:11 PST 2014


On Fri, Jan 24, 2014 at 9:19 AM, Jacob Carlborg <doob at me.com> wrote:

> On 2014-01-23 21:11, Sean Silva wrote:
>
>  There is no main_preprocessed.h as far as clang is concerned (unless you
>> manually create it, but then clang leaves #line's to keep track of where
>> things are from).
>>
>
> I was just for illustration.
>
>  If you look at the SourceLocation for `struct List`, it will tell you
>> that the declaration is in
>> `/home/foo/libcollection/__include/collection/list/list.h`.
>>
>
> I seem to have very hard time to explain myself here. Perhaps I'm missing
> something obvious here but how do I know that "/home/foo/libcollection/
> include/collection/list/list.h" is not in the in the "/home/foo/libmain"
> path?


Because then it would start with "/home/foo/libmain" instead of
"/home/foo/libcollection" ;)

-- Sean Silva


>
>
> --
> /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/20140124/b0165c64/attachment.html>


More information about the cfe-dev mailing list