[PATCH] D95043: [clangd] Use Dirty Filesystem for cross file rename.

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 9 01:51:59 PST 2021


njames93 added inline comments.


================
Comment at: clang-tools-extra/clangd/refactor/Rename.h:40
 
+  // The filesystem to query when performing cross file renames.
+  llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS;
----------------
sammccall wrote:
> Index + FS are both only used for cross-file renames at this point.
> 
> (We used to support a single-file rename mode where the index was used to validate that the symbol wasn't used elsewhere, but that's gone now)
> 
> I think we should document this, and assert that they're either both set (cross-file) or neither is.
I wasn't sure the best way to approach this, but i agree, this is probably the safest. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95043/new/

https://reviews.llvm.org/D95043



More information about the cfe-commits mailing list