[PATCH] D71345: [clangd] Fall back to selecting token-before-cursor if token-after-cursor fails.

Nathan Ridge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 13 07:20:51 PST 2019


nridge added a comment.

In D71345#1783092 <https://reviews.llvm.org/D71345#1783092>, @sammccall wrote:

> (though personally I'd find it frustrating to have no way to target `b` in `a+b+c`).


(For completeness, there is a way to target `b` in `a+b+c`: by selecting `b` (such that your selection range has length 1 rather than 0). Then, neither `+` node will enclose the selection range, but the `b` token will.)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71345





More information about the cfe-commits mailing list