[llvm-dev] SourceMgr include relative to current file

Russell Wallace via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 22 05:43:12 PDT 2015


SourceMgr provides AddIncludeFile which I'm thinking of using for parsing
the TPTP language.

As far as I can see, AddIncludeFile only deals with #include <...> style,
i.e. only search the include directories. I don't see any code for dealing
with #include "...", i.e. first look relative to the current file.

Is there something I'm missing? How does clang handle this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150922/2ca23182/attachment.html>


More information about the llvm-dev mailing list