[clang] [clang][DependencyScanning] Track modules that resolve from "shared" locations (PR #130634)
Cyndy Ishida via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 17 14:18:18 PDT 2025
================
@@ -739,6 +795,12 @@ ModuleDepCollectorPP::handleTopLevelModule(const Module *M) {
MDC.ScanInstance.getASTReader()->visitInputFileInfos(
*MF, /*IncludeSystem=*/true,
[&](const serialization::InputFileInfo &IFI, bool IsSystem) {
+ if (MD.IsShareable) {
+ auto FullFilePath = ASTReader::ResolveImportedPath(
+ PathBuf, IFI.UnresolvedImportedFilename, MF->BaseDirectory);
+ MD.IsShareable = isPathInSharedDir(SharedDirs, *FullFilePath);
+ PathBuf.resize_for_overwrite(256);
----------------
cyndyishida wrote:
I thought I was running into the assertion failure in `ResolveImportedPath`, but I can't reproduce it now.
https://github.com/llvm/llvm-project/pull/130634
More information about the cfe-commits
mailing list