[PATCH] D72071: [clangd] Add correctness checks for index-based rename

Kirill Bobyrev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 2 02:43:50 PST 2020


kbobyrev added a comment.

@sammccall `Indexed.size() > Lexed.size()` is one of the assumptions that I think might not hold in real-world scenarios. I was reading patch heuristics code a lot and trying to understand whether anything breaks when this check is not in place, but I couldn't come up with some cases, so I thought it'd be OK to remove it.

I have written down some thoughts on the topic in the issue I opened on GitHub:

https://github.com/clangd/clangd/issues/238

We have briefly discussed range patching heuristics in D71598 <https://reviews.llvm.org/D71598>, @kadircet has more context if you are interested.

I'd be happy to discuss more details once I'm back, let me know if you have any thoughts/comments on the issue.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72071





More information about the cfe-commits mailing list