[PATCH] D117107: [clangd] Elide even more checks in SelectionTree.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 13 05:56:39 PST 2022


sammccall added a comment.

PTAL



================
Comment at: clang-tools-extra/clangd/Selection.cpp:350
+            return *Offset < First;
+          StartInvalid = false;
+          return false;
----------------
sammccall wrote:
> hokein wrote:
> > this should be `true`. 
> Oh shoot, now the assert is firing, I must have missed some cases :-(
> Need to fix this.
OK, this was just not handling EOF token location (which offsetInSelFile rejects, correctly I think)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117107



More information about the cfe-commits mailing list