[cfe-dev] Errors in local system headers when using clang libTooling tool

Milian Wolff via cfe-dev cfe-dev at lists.llvm.org
Fri May 4 13:45:15 PDT 2018


On Freitag, 4. Mai 2018 22:16:54 CEST Eberhard Gräther via cfe-dev wrote:
> Hello Steven,
> 
> I was a little confused by your response at first, but I think I figured it
> out.
> 
> In my llvm build directory I found the compiler headers matching the clang
> version of my tool:
> 
> .../clang-llvm/build_release/lib/clang/6.0.0/include
> 
> If I use the path to those in the system header include paths of my tool
> then the errors are gone. I guess that means I need to ship those headers
> with my tool and make sure they are used instead of the local ones?

Yes, that is correct. See also:

http://lists.llvm.org/pipermail/cfe-dev/2012-December/026621.html
http://lists.llvm.org/pipermail/cfe-dev/2018-April/057683.html

Hope that helps!

Cheers

-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180504/356f4452/attachment.sig>


More information about the cfe-dev mailing list