[cfe-dev] [PATCH] Module lookup from includer dir

Axel Naumann Axel.Naumann at cern.ch
Fri Jan 10 05:46:45 PST 2014


HeaderSearch::LookupFile() looks for the file in the includers' dirs
first. But it doesn't bother to check whether a module exists for it.

Attached patch fixes that - but in a clumsy way; I'd prefer to reduce
the code duplication between DirectoryLookup::LookupFile() and
HeaderSearch::LookupFile() rather than increasing it.

The attached test tests this - sadly also in a clumsy way :-) Please
suggest improvements!

Cheers, Axel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-modules-includerdir-file-lookup.diff
Type: text/x-patch
Size: 3933 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140110/abd8ca6e/attachment.bin>

More information about the cfe-dev mailing list