[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
Hi,

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]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

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