Different requesting modules can have different lookup results, so don't
cache results across modules.
Fixes a regression introduced in reviews.llvm.org/D132779.
Test case based on one provided by Jan Svoboda.
| Paths 
 |  Differential  D156000  
Track the RequestingModule in the HeaderSearch LookupFile cache. ClosedPublic Authored by rsmith on Jul 21 2023, 2:55 PM. 
Details Summary Different requesting modules can have different lookup results, so don't Fixes a regression introduced in reviews.llvm.org/D132779. Test case based on one provided by Jan Svoboda. 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Jul 21 2023, 3:39 PM This revision was landed with ongoing or failed builds.Jul 21 2023, 3:50 PM Closed by commit rG7c5e4efb099e: Track the RequestingModule in the HeaderSearch LookupFile cache. (authored by rsmith).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 543107 clang/include/clang/Lex/HeaderSearch.h
 clang/lib/Lex/HeaderSearch.cpp
 clang/test/Modules/lookup-file-cache.cpp
 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||