[PATCH] Correctly implement -include search logic.
Manuel Klimek
klimek at google.com
Thu Aug 7 06:57:15 PDT 2014
Hi rsmith, nicholas,
According to the gcc docs, -include uses the current working directory for
the lookup instead of the main source file.
This patch gets rid of NormalizeIncludePath (which relied on an implementation
detail of FileManager / FileEntry for the include path logic to work), and
instead hands the correct lookup information down to LookupFile.
This will allow us to change the FileEntry's behavior regarding its Name
caching.
http://reviews.llvm.org/D4823
Files:
include/clang/Lex/HeaderSearch.h
lib/Frontend/InitPreprocessor.cpp
lib/Frontend/Rewrite/InclusionRewriter.cpp
lib/Lex/HeaderSearch.cpp
lib/Lex/PPDirectives.cpp
lib/Serialization/ASTReader.cpp
test/Frontend/print-header-includes.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4823.12281.patch
Type: text/x-patch
Size: 12877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140807/a9836316/attachment.bin>
More information about the cfe-commits
mailing list