[llvm-branch-commits] [clang] [clang][HeaderSearch] Introduce API to find a module's module map without loading (PR #235835)
Cyndy Ishida via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Oct 28 09:00:32 PDT 2026
================
@@ -861,6 +884,10 @@ class HeaderSearch {
Module *loadFrameworkModule(StringRef Name, DirectoryEntryRef Dir,
bool IsSystem, bool ImplicitlyDiscovered);
+ /// Parse the module map of the framework directory \p Dir.
+ void parseFrameworkModuleMap(DirectoryEntryRef Dir, bool IsSystem,
+ bool ImplicitlyDiscovered, bool Load);
----------------
cyndyishida wrote:
perhaps but it is behavior preserving. I looked providing a return value but not sure that callers can act on it without changing behavior. e.g. A framework with a valid public map and a broken private map would be reported invalid even though the module is found, today that resolves the public module still but checking against the result of this function wouldn't.
It's not something I want to change right now. I can add a doc comment though if you prefer.
https://github.com/llvm/llvm-project/pull/235835
More information about the llvm-branch-commits
mailing list