https://github.com/jansvoboda11 commented: It seems like this is not actually returning the set of (what Clang calls) visible modules. Can you clarify what the desired semantics actually is? https://github.com/llvm/llvm-project/pull/147969