[cfe-dev] Can clangtool handle "-I"?

Yafei Liu via cfe-dev cfe-dev at lists.llvm.org
Tue Aug 4 01:23:52 PDT 2020

I'm writing a tool using AST matcher, and I need to pass the path of the
clang built-in heads to my tool (or it will error me that "'stddef.h' file
not found"), so I add `-I/path/to/the/headers` to my tool, but the program
said that "Unknown command line argument

So is there any built-in OptionCategory that can handle "-I" parameters?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200804/afbbb9a8/attachment.html>

More information about the cfe-dev mailing list