[clang] [clang-tools-extra] [clang][deps] Make the service provide the VFS (PR #181424)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 17 10:57:12 PST 2026


================
@@ -109,9 +109,7 @@ ModuleDependencyScanner::scan(PathRef FilePath,
 
   using namespace clang::tooling;
 
-  llvm::SmallString<128> FilePathDir(FilePath);
-  llvm::sys::path::remove_filename(FilePathDir);
-  DependencyScanningTool ScanningTool(Service, TFS.view(FilePathDir));
----------------
jansvoboda11 wrote:

Passing the input file directory to `TFS.view()` doesn't do anything besides setting the view's CWD. The scanner immediately overwrites it with the actual CWD as provided by the compilation database.

https://github.com/llvm/llvm-project/pull/181424


More information about the cfe-commits mailing list