sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang-tools-extra/clangd/XRefs.cpp:170
+  // outside the main file.
+  L.range = halfOpenToRange(
+      SM, CharSourceRange::getCharRange(
----------------
(nit: consider extracting a variable for end loc or token length just for 
readability)


================
Comment at: clang-tools-extra/clangd/XRefs.cpp:449
+    DocumentHighlight DH;
+    DH.range = halfOpenToRange(SM, Ref.SpelledTok.range(SM).toCharRange(SM));
+    if (Ref.Role & index::SymbolRoleSet(index::SymbolRole::Write))
----------------
Ref.range(SM)


================
Comment at: clang-tools-extra/clangd/XRefs.cpp:525
+      Location Result;
+      Result.range =
+          halfOpenToRange(SM, Ref.SpelledTok.range(SM).toCharRange(SM));
----------------
Ref.range(SM)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75474



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to