[llvm] [clang] [clang][DependencyScanner] Remove unused -ivfsoverlay files (PR #73734)
Michael Spencer via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 29 13:19:14 PST 2023
================
@@ -142,6 +142,21 @@ std::vector<bool> HeaderSearch::computeUserEntryUsage() const {
return UserEntryUsage;
}
+std::vector<bool> HeaderSearch::computeVFSUsage() const {
+ std::vector<bool> VFSUsage;
+ llvm::vfs::FileSystem &RootFS = FileMgr.getVirtualFileSystem();
+ // TODO: This only works if the `RedirectingFileSystem`s were all created by
----------------
Bigcheese wrote:
We could set a bit, and then just skip over VFSs without the bit. That would work even if people manually pass in a VFS with an extra `RedirectingFileSystem`, and we have a check later that would fire if `createVFSFromOverlayFiles ` wasn't used at all.
https://github.com/llvm/llvm-project/pull/73734
More information about the cfe-commits
mailing list