================
@@ -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));
----------------
qiongsiwu wrote:

Could you help me understand why the removed code `TFS.view(FilePathDir)` is 
equivalent to the new code where we call `TFS.view(std::nullopt);`? 

https://github.com/llvm/llvm-project/pull/181424
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to