[PATCH] Module lookup from includer dir

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[PATCH] Module lookup from includer dir

Axel Naumann

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.

cfe-dev mailing list
[hidden email]

clang-modules-includerdir-file-lookup.diff (3K) Download Attachment