[clang] NFCI: Split `HeaderSearch::findAllModulesForHeader()`
authorJan Svoboda <jan_svoboda@apple.com>
Wed, 31 May 2023 05:58:49 +0000 (22:58 -0700)
committerJan Svoboda <jan_svoboda@apple.com>
Thu, 1 Jun 2023 17:11:26 +0000 (10:11 -0700)
commit2e1ec4c737f93925e29e4037e758b940c6fef448
tree2082852d1bf0ce8e547e060068ad53077625f2fa
parentf09729042d8f99e1b896f6a04ebf6f842f6cc7ad
[clang] NFCI: Split `HeaderSearch::findAllModulesForHeader()`

This mimics the `ModuleMap` API and enables D151854, where the `AllowCreation = true` function needs `FileEntryRef` but `AllowCreation = false` functions is happy with plain `FileEntry`. No functional change intended.

Reviewed By: benlangmuir

Differential Revision: https://reviews.llvm.org/D151853
clang/include/clang/Lex/HeaderSearch.h
clang/include/clang/Lex/ModuleMap.h
clang/lib/Lex/HeaderSearch.cpp
clang/lib/Lex/ModuleMap.cpp
clang/lib/Serialization/ASTWriter.cpp