[cfe-dev] How to set header directory search path for virtually mapped files using `runToolOnCodeWithArgs`?

Manuel Klimek klimek at google.com
Sat Jan 3 06:50:21 PST 2015


Well, you need to specify the -I paths as necessary... Can you give a full
command line you're trying and perhaps a code snippet how you're specifying
the headers?

On Sat Jan 03 2015 at 12:42:00 PM Ounan Ding <ounanding at gmail.com> wrote:

> Hi,
> I was using `runToolOnCodeWithArgs` for unittesting.
> There are some virtual headers in my test case.
> I pass these headers with their file names to the argument
> `VirtualMappedFiles` of `runToolOnCodeWithArgs`.
> But clang complains that these headers do not exist.
>
> I have searched through all the testing code of clang but find nobody is
> using the `VirtualMappedFiles` argument.
> Can you help me?
> Or maybe it is suggested to use lit for my case?
>
> Thank you.
>
> -----------------------------------
> clang revision: 16964fe0b057b11e7c93afe47964ddf0d33aa7e6
>
> _______________________________________________
> 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/20150103/9a006f6b/attachment.html>


More information about the cfe-dev mailing list