In memory VFS cannot handle aceesssing the same file with different paths.
This diff just stops using VFS for modulemap files.
Fixes PR47839
Differential D89886
[clang-tidy] Fix redefinition of module in the same module.modulemap file DmitryPolukhin on Oct 21 2020, 7:58 AM. Authored by
Details In memory VFS cannot handle aceesssing the same file with different paths. Fixes PR47839
Diff Detail
Event TimelineComment Actions Looks good!
Comment Actions Oh, I was not able to create small reproducer that without including large Apple Frameworks with modules :( My hypothesis that it is side effect of module cache that triggers module load before it is referenced from sources. I tested it on reproducer from PR47839 + my real internal example.
|
Looking at the relevant code I find special file names like "module.map", "module_private.map", "module.private.modulemap". Is this problem relevant for any of those?